Skip to content

Commit e504661

Browse files
committed
Make Performance/DeletePrefix and Performance/DeleteSuffix aware of multiline
Follow up to #326 (comment). For now this repository can be set to `SafeMultiline: false`.
1 parent 2e66c5c commit e504661

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ Metrics/ModuleLength:
111111
Exclude:
112112
- 'spec/**/*.rb'
113113

114+
Performance/DeletePrefix:
115+
SafeMultiline: false
116+
117+
Performance/DeleteSuffix:
118+
SafeMultiline: false
119+
114120
# This disabling is a workaround for https://github.com/rubocop-hq/rubocop-rails/issues/374.
115121
RSpec/FactoryBot/CreateList:
116122
Enabled: false

0 commit comments

Comments
 (0)