diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-09-19 15:01:27 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-09-19 15:01:27 +0200 |
commit | 23d5501500fe705685e3230faaac1a0ba19e4e0a (patch) | |
tree | 3caa82fb5003166d70f9120c4278a0e300228402 /rubocop | |
parent | ec33016bcd07f3806f071d574299079b67cb0a93 (diff) | |
download | gitlab-ce-23d5501500fe705685e3230faaac1a0ba19e4e0a.tar.gz |
Remove unused constantbvl-remove-unused-regex
This removes an unused constant from the
`RubyInterpolationInTranslation`. The constant was used in a first
implementation of this class.
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/ruby_interpolation_in_translation.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/rubocop/cop/ruby_interpolation_in_translation.rb b/rubocop/cop/ruby_interpolation_in_translation.rb index b9411fcfd6c..c431b4a1977 100644 --- a/rubocop/cop/ruby_interpolation_in_translation.rb +++ b/rubocop/cop/ruby_interpolation_in_translation.rb @@ -6,7 +6,6 @@ module RuboCop MSG = "Don't use ruby interpolation \#{} inside translated strings, instead use \%{}" TRANSLATION_METHODS = ':_ :s_ :N_ :n_' - RUBY_INTERPOLATION_REGEX = /.*\#\{.*\}/ def_node_matcher :translation_method?, <<~PATTERN (send nil? {#{TRANSLATION_METHODS}} $dstr ...) |