diff --git a/.rubocop.yml b/.rubocop.yml index b3cc9d86d..d7b548944 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -201,6 +201,9 @@ Style/RedundantFreeze: Style/SymbolProc: Enabled: true +Style/SymbolArray: + Enabled: false + # Use `foo {}` not `foo{}`. Layout/SpaceBeforeBlockBraces: Enabled: true @@ -321,4 +324,18 @@ Performance/DeletePrefix: Enabled: true Performance/DeleteSuffix: - Enabled: true \ No newline at end of file + Enabled: true + +Metrics/ModuleLength: + Enabled: false + +Metrics/ClassLength: + Enabled: false + +Metrics/MethodLength: + Exclude: + - 'app/abilities/**/*' + +Metrics/AbcSize: + Exclude: + - 'app/abilities/**/*' \ No newline at end of file diff --git a/Gemfile b/Gemfile index c97d4a8eb..d24e6e02c 100644 --- a/Gemfile +++ b/Gemfile @@ -120,7 +120,7 @@ group :development, :docker_development do # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem "spring" gem "spring-watcher-listen", "~> 2.0.0" - gem "rubocop", "~> 0.93", require: false + gem "rubocop", "~> 1.50", require: false gem "rubocop-packaging", require: false gem "rubocop-performance", require: false gem "rubocop-rails", require: false diff --git a/Gemfile.lock b/Gemfile.lock index dd090e8af..5f8fb5465 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -304,6 +304,7 @@ GEM js-routes (1.4.9) railties (>= 4) sprockets-rails + json (2.6.3) jsonapi-renderer (0.2.2) kaminari (1.2.2) activesupport (>= 4.1.0) @@ -377,7 +378,7 @@ GEM options (2.3.2) orm_adapter (0.5.0) pairing_heap (3.0.0) - parallel (1.22.1) + parallel (1.23.0) parser (3.2.2.0) ast (~> 2.4.1) pdf-reader (2.11.0) @@ -458,7 +459,7 @@ GEM ffi (~> 1.0) redis-client (0.14.1) connection_pool - regexp_parser (2.7.0) + regexp_parser (2.8.0) request_store (1.5.1) rack (>= 1.4) responders (3.1.0) @@ -499,15 +500,16 @@ GEM rspec-mocks (~> 3.11) rspec-support (~> 3.11) rspec-support (3.12.0) - rubocop (0.93.1) + rubocop (1.50.2) + json (~> 2.3) parallel (~> 1.10) - parser (>= 2.7.1.5) + parser (>= 3.2.0.0) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8) - rexml - rubocop-ast (>= 0.6.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) + unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.28.0) parser (>= 3.2.1.0) rubocop-packaging (0.5.1) @@ -629,7 +631,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.8.2) - unicode-display_width (1.8.0) + unicode-display_width (2.4.2) warden (1.2.9) rack (>= 2.0.9) web-console (4.2.0) @@ -718,7 +720,7 @@ DEPENDENCIES rgl rqrcode rspec-rails - rubocop (~> 0.93) + rubocop (~> 1.50) rubocop-packaging rubocop-performance rubocop-rails