Merge pull request #2746 from TracksApp/rubocop_limits

Relax the Rubocop limits a bit to make CodeClimate more useful
This commit is contained in:
Jyri-Petteri Paloposki 2022-02-22 23:35:44 +02:00 committed by GitHub
commit d820d6af9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View file

@ -16,3 +16,20 @@ Style/StringLiterals:
Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation
Metrics/AbcSize:
Max: 100
Metrics/CyclomaticComplexity:
Max: 100
Metrics/MethodLength:
Max: 100
CountAsOne: ['array', 'hash', 'heredoc']
Metrics/ModuleLength:
Max: 300
CountAsOne: ['array', 'hash', 'heredoc']
Metrics/ClassLength:
Max: 300
Metrics/ParameterLists:
Max: 20
Metrics/PerceivedComplexity:
Max: 100

View file

@ -61,8 +61,8 @@ group :test do
gem 'codeclimate-test-reporter', '1.0.7', group: :test, require: nil
gem 'database_cleaner'
gem 'factory_bot_rails'
gem 'mocha', :require => false
gem 'minitest-stub-const'
gem 'mocha', :require => false
gem 'rails-controller-testing'
gem 'rails-dom-testing', '~> 2.0.0'
gem 'rspec-expectations'