diff options
| author | Lin Jen-Shin <godfat@godfat.org> | 2018-09-19 14:26:31 +0000 |
|---|---|---|
| committer | Lin Jen-Shin <godfat@godfat.org> | 2018-09-19 14:26:31 +0000 |
| commit | 9e4e1aee500b44e2568fc439ae53077967ebb0c3 (patch) | |
| tree | a4bbce2acc5d70ad5e2bc9a556827592ba88d604 | |
| parent | 68c525512a64e8fffcdc8c3f56b366f5dfcfaa70 (diff) | |
| parent | 23d5501500fe705685e3230faaac1a0ba19e4e0a (diff) | |
| download | gitlab-ce-9e4e1aee500b44e2568fc439ae53077967ebb0c3.tar.gz | |
Merge branch 'bvl-remove-unused-regex' into 'master'
Remove unused constant
See merge request gitlab-org/gitlab-ce!21810
| -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 ...) |
