mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 05:34:04 +00:00
Merge pull request #1449 from sunny-b/master
Enable Performance/StringReplacement Rubocop cop
This commit is contained in:
commit
7741d43d17
2 changed files with 7 additions and 7 deletions
|
|
@ -104,7 +104,7 @@ Style/TrailingBlankLines:
|
|||
Style/TrailingWhitespace:
|
||||
Enabled: true
|
||||
|
||||
#This cop checks for numeric comparisons that can be replaced by a predicate method.
|
||||
# This cop checks for numeric comparisons that can be replaced by a predicate method.
|
||||
Style/ZeroLengthPredicate:
|
||||
Enabled: true
|
||||
|
||||
|
|
@ -183,3 +183,9 @@ Rails:
|
|||
# Avoid use of old-style attribute validation
|
||||
Rails/Validation:
|
||||
Enabled: true
|
||||
|
||||
#################### Performance ###############################
|
||||
|
||||
# Identifies places where gsub can be replaced by tr or delete.
|
||||
Performance/StringReplacement:
|
||||
Enabled: true
|
||||
|
|
|
|||
|
|
@ -48,12 +48,6 @@ Metrics/ModuleLength:
|
|||
Metrics/PerceivedComplexity:
|
||||
Max: 15
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Performance/StringReplacement:
|
||||
Exclude:
|
||||
- 'spec/support/save_feature_failures.rb'
|
||||
|
||||
# Offense count: 13
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles, Include.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue