Bump rubocop

This commit is contained in:
Benjamin Neff 2023-06-26 03:16:19 +02:00
parent dbc095c895
commit d180cd2eaf
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
3 changed files with 23 additions and 15 deletions

View file

@ -1,7 +1,7 @@
require: rubocop-rails require: rubocop-rails
AllCops: AllCops:
TargetRubyVersion: 2.7 TargetRubyVersion: 3.0
NewCops: enable NewCops: enable
Exclude: Exclude:
- "bin/**/*" - "bin/**/*"
@ -39,7 +39,7 @@ Metrics/PerceivedComplexity:
# Some blocks are longer. # Some blocks are longer.
Metrics/BlockLength: Metrics/BlockLength:
ExcludedMethods: AllowedMethods:
- "namespace" - "namespace"
- "create_table" - "create_table"
Exclude: Exclude:
@ -168,6 +168,11 @@ Style/Documentation:
Naming/BinaryOperatorParameterName: Naming/BinaryOperatorParameterName:
Enabled: false Enabled: false
# Defining constants in tests is fine, and it's good to have them close to the test where they are used.
Lint/ConstantDefinitionInBlock:
Exclude:
- "spec/**/*"
# There are valid cases, for example debugging Cucumber steps, # There are valid cases, for example debugging Cucumber steps,
# also they'll fail CI anyway # also they'll fail CI anyway
Lint/Debugger: Lint/Debugger:

View file

@ -204,8 +204,8 @@ group :development do
gem "pronto-haml", "0.11.1", require: false gem "pronto-haml", "0.11.1", require: false
gem "pronto-rubocop", "0.11.5", require: false gem "pronto-rubocop", "0.11.5", require: false
gem "pronto-scss", "0.11.0", require: false gem "pronto-scss", "0.11.0", require: false
gem "rubocop", "0.93.1", require: false gem "rubocop", "1.53.1", require: false
gem "rubocop-rails", "2.9.1", require: false gem "rubocop-rails", "2.20.2", require: false
# Debugging # Debugging
gem "pry" gem "pry"

View file

@ -396,6 +396,7 @@ GEM
multi_json multi_json
jwt (2.7.1) jwt (2.7.1)
kostya-sigar (2.0.10) kostya-sigar (2.0.10)
language_server-protocol (3.17.0.3)
leaflet-rails (1.9.3) leaflet-rails (1.9.3)
rails (>= 4.2.0) rails (>= 4.2.0)
listen (3.7.1) listen (3.7.1)
@ -635,21 +636,23 @@ GEM
rspec-mocks (~> 3.10) rspec-mocks (~> 3.10)
rspec-support (~> 3.10) rspec-support (~> 3.10)
rspec-support (3.11.0) rspec-support (3.11.0)
rubocop (0.93.1) rubocop (1.53.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 2.7.1.5) parser (>= 3.2.2.3)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8) regexp_parser (>= 1.8, < 3.0)
rexml rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 0.6.0) rubocop-ast (>= 1.28.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0) unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0) rubocop-ast (1.29.0)
parser (>= 3.2.1.0) parser (>= 3.2.1.0)
rubocop-rails (2.9.1) rubocop-rails (2.20.2)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
rack (>= 1.1) rack (>= 1.1)
rubocop (>= 0.90.0, < 2.0) rubocop (>= 1.33.0, < 2.0)
ruby-oembed (0.16.1) ruby-oembed (0.16.1)
ruby-progressbar (1.13.0) ruby-progressbar (1.13.0)
ruby-vips (2.1.4) ruby-vips (2.1.4)
@ -751,7 +754,7 @@ GEM
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.8.2) unf_ext (0.0.8.2)
unicode-display_width (1.8.0) unicode-display_width (2.4.2)
uuid (2.3.9) uuid (2.3.9)
macaddr (~> 1.0) macaddr (~> 1.0)
valid (1.2.0) valid (1.2.0)
@ -878,8 +881,8 @@ DEPENDENCIES
rqrcode (= 2.2.0) rqrcode (= 2.2.0)
rspec-json_expectations (~> 2.1) rspec-json_expectations (~> 2.1)
rspec-rails (= 5.1.2) rspec-rails (= 5.1.2)
rubocop (= 0.93.1) rubocop (= 1.53.1)
rubocop-rails (= 2.9.1) rubocop-rails (= 2.20.2)
ruby-oembed (= 0.16.1) ruby-oembed (= 0.16.1)
rubyzip (= 2.3.2) rubyzip (= 2.3.2)
sassc-rails (= 2.1.2) sassc-rails (= 2.1.2)