Skip to content

Commit 7bf9570

Browse files
committed
Update rubocop rules and autocorrect
1 parent 459d721 commit 7bf9570

File tree

62 files changed

+325
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+325
-310
lines changed

.rubocop.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
inherit_from: .rubocop_todo.yml
22

3-
require:
3+
plugins:
44
- rubocop-capybara
55
- rubocop-rspec
66
- rubocop-rails
@@ -69,7 +69,7 @@ Metrics/ClassLength:
6969
- "app/services/spotlight/exhibit_import_export_service.rb"
7070
- "lib/generators/spotlight/**/*" # Generators tend to have longer class lengths due to their lengthy public API
7171

72-
Naming/PredicatePrefix:
72+
Naming/PredicateName:
7373
Exclude:
7474
- "app/models/concerns/spotlight/ar_light.rb"
7575

@@ -512,3 +512,41 @@ RSpec/VerifiedDoubleReference: # new in 3.1
512512
Enabled: true
513513
Rails/EnumSyntax: # new in 2.26
514514
Enabled: true
515+
Lint/ArrayLiteralInRegexp: # new in 1.71
516+
Enabled: true
517+
Lint/ConstantReassignment: # new in 1.70
518+
Enabled: true
519+
Lint/CopDirectiveSyntax: # new in 1.72
520+
Enabled: true
521+
Lint/RedundantTypeConversion: # new in 1.72
522+
Enabled: true
523+
Lint/SharedMutableDefault: # new in 1.70
524+
Enabled: true
525+
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
526+
Enabled: true
527+
Lint/UselessConstantScoping: # new in 1.72
528+
Enabled: true
529+
Style/ComparableBetween: # new in 1.74
530+
Enabled: true
531+
Style/HashFetchChain: # new in 1.75
532+
Enabled: true
533+
Style/HashSlice: # new in 1.71
534+
Enabled: true
535+
Style/ItAssignment: # new in 1.70
536+
Enabled: true
537+
Style/ItBlockParameter: # new in 1.75
538+
Enabled: true
539+
Style/RedundantFormat: # new in 1.72
540+
Enabled: true
541+
Capybara/FindAllFirst: # new in 2.22
542+
Enabled: true
543+
Capybara/NegationMatcherAfterVisit: # new in 2.22
544+
Enabled: true
545+
Rails/MultipleRoutePaths: # new in 2.29
546+
Enabled: true
547+
Rails/StrongParametersExpect: # new in 2.29
548+
Enabled: true
549+
Capybara/SpecificMatcher: # new in 2.12
550+
Enabled: true
551+
Capybara/RSpec/HaveSelector: # new in 2.19
552+
Enabled: true

0 commit comments

Comments
 (0)