summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-09-19 15:01:27 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-09-19 15:01:27 +0200
commit23d5501500fe705685e3230faaac1a0ba19e4e0a (patch)
tree3caa82fb5003166d70f9120c4278a0e300228402 /rubocop
parentec33016bcd07f3806f071d574299079b67cb0a93 (diff)
downloadgitlab-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.rb1
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 ...)