Skip to content

Commit

Permalink
Enable NewCops and ignore DuplicateBranch false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
highb committed Feb 26, 2021
1 parent d375109 commit 39dea90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require:

AllCops:
TargetRubyVersion: 2.5
NewCops: enable

Metrics/BlockLength:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/i18n/rails_i18n/decorate_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def regexp_from_string_type
when 'sentence' then SENTENCE_REGEXP
when 'fragmented_sentence' then FRAGMENTED_SENTENCE_REGEXP
when 'fragment' then FRAGMENT_REGEXP
else
else # rubocop:disable Lint/DuplicateBranch
SENTENCE_REGEXP
end
end
Expand Down

0 comments on commit 39dea90

Please sign in to comment.