From a0f0ca0c13d6ed702cd5f2f4e3c6a2ba11faf916 Mon Sep 17 00:00:00 2001 From: Jyri-Petteri Paloposki Date: Tue, 22 Feb 2022 23:11:54 +0200 Subject: [PATCH] Relax the Rubocop limits a bit to make CodeClimate more useful --- .rubocop.yml | 17 +++++++++++++++++ Gemfile | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 8785daf6..03441c91 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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 diff --git a/Gemfile b/Gemfile index 7cf39ef2..f636de24 100644 --- a/Gemfile +++ b/Gemfile @@ -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'