Skip to content

Commit 44366a8

Browse files
committed
Disable some Style cops inline
1 parent e245d5a commit 44366a8

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,6 @@ Style/ClassAndModuleChildren:
155155
- 'app/models/ahoy/event.rb'
156156
- 'lib/monkey_patches/octet_stream_override.rb'
157157

158-
# Offense count: 1
159-
Style/DoubleNegation:
160-
Exclude:
161-
- 'app/models/source_file.rb'
162-
163-
# Offense count: 1
164-
# Configuration parameters: EnforcedStyle.
165-
# SupportedStyles: annotated, template, unannotated
166-
Style/FormatStringToken:
167-
Exclude:
168-
- 'spec/requests/admin/events_spec.rb'
169-
170158
# Offense count: 17
171159
# Configuration parameters: MinBodyLength.
172160
Style/GuardClause:

app/models/source_file.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ def to_jq_upload
5757
end
5858

5959
def is_image? # rubocop:todo Naming/PredicateName
60+
# rubocop:todo Style/DoubleNegation
6061
!!file_content_type.try(:match, /image/)
62+
# rubocop:enable Style/DoubleNegation
6163
end
6264

6365
#---- start S3 related methods -----

spec/requests/admin/events_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
# Default is to return data for the previous month.
2222
expect(JSON.parse(response.body).keys)
23+
# rubocop:todo Style/FormatStringToken
2324
.to include(*(1..31).map { |i| format("Dec %d 2018", i) })
25+
# rubocop:enable Style/FormatStringToken
2426
end
2527

2628
it "filters by date" do

0 commit comments

Comments
 (0)