Commit 9e4e1aee authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'bvl-remove-unused-regex' into 'master'

Remove unused constant

See merge request gitlab-org/gitlab-ce!21810
parents 68c52551 23d55015
...@@ -6,7 +6,6 @@ module RuboCop ...@@ -6,7 +6,6 @@ module RuboCop
MSG = "Don't use ruby interpolation \#{} inside translated strings, instead use \%{}" MSG = "Don't use ruby interpolation \#{} inside translated strings, instead use \%{}"
TRANSLATION_METHODS = ':_ :s_ :N_ :n_' TRANSLATION_METHODS = ':_ :s_ :N_ :n_'
RUBY_INTERPOLATION_REGEX = /.*\#\{.*\}/
def_node_matcher :translation_method?, <<~PATTERN def_node_matcher :translation_method?, <<~PATTERN
(send nil? {#{TRANSLATION_METHODS}} $dstr ...) (send nil? {#{TRANSLATION_METHODS}} $dstr ...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment