ci: use more permissive rubocop / codeclimate settings.
This commit is contained in:
@@ -1,17 +1,25 @@
|
|||||||
version: 2
|
version: 2
|
||||||
checks:
|
checks:
|
||||||
argument-count:
|
argument-count:
|
||||||
|
enabled: false
|
||||||
|
complex-logic:
|
||||||
config:
|
config:
|
||||||
threshold: 4
|
threshold: 8
|
||||||
file-lines:
|
file-lines:
|
||||||
config:
|
config:
|
||||||
threshold: 500
|
threshold: 1000
|
||||||
|
method-complexity:
|
||||||
|
config:
|
||||||
|
threshold: 15
|
||||||
method-count:
|
method-count:
|
||||||
config:
|
enabled: false
|
||||||
threshold: 40
|
|
||||||
method-lines:
|
method-lines:
|
||||||
|
enabled: false
|
||||||
|
nested-control-flow:
|
||||||
config:
|
config:
|
||||||
threshold: 100
|
threshold: 4
|
||||||
|
return-statements:
|
||||||
|
enabled: false
|
||||||
plugins:
|
plugins:
|
||||||
eslint:
|
eslint:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
15
.rubocop.yml
15
.rubocop.yml
@@ -1,8 +1,9 @@
|
|||||||
|
# some of these settings are overriden in also test/.rubocop.yml
|
||||||
|
|
||||||
require:
|
require:
|
||||||
- rubocop-rails
|
- rubocop-rails
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.7.0
|
|
||||||
NewCops: enable
|
NewCops: enable
|
||||||
Exclude:
|
Exclude:
|
||||||
- "bin/*"
|
- "bin/*"
|
||||||
@@ -41,14 +42,22 @@ Layout/SpaceInsideHashLiteralBraces:
|
|||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Metrics/BlockLength:
|
||||||
|
Max: 50
|
||||||
|
ExcludedMethods:
|
||||||
|
- concerning
|
||||||
|
- context
|
||||||
|
- should
|
||||||
|
|
||||||
Metrics/BlockNesting:
|
Metrics/BlockNesting:
|
||||||
|
CountBlocks: false
|
||||||
Max: 4
|
Max: 4
|
||||||
|
|
||||||
Metrics/ClassLength:
|
Metrics/ClassLength:
|
||||||
Max: 500
|
Max: 500
|
||||||
|
|
||||||
Metrics/CyclomaticComplexity:
|
Metrics/CyclomaticComplexity:
|
||||||
Max: 10
|
Enabled: false
|
||||||
|
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
Max: 100
|
Max: 100
|
||||||
@@ -60,7 +69,7 @@ Metrics/ParameterLists:
|
|||||||
Max: 4
|
Max: 4
|
||||||
|
|
||||||
Metrics/PerceivedComplexity:
|
Metrics/PerceivedComplexity:
|
||||||
Enabled: false
|
Max: 20
|
||||||
|
|
||||||
Lint/InheritException:
|
Lint/InheritException:
|
||||||
EnforcedStyle: standard_error
|
EnforcedStyle: standard_error
|
||||||
|
|||||||
5
test/.rubocop.yml
Normal file
5
test/.rubocop.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
inherit_from:
|
||||||
|
- ../.rubocop.yml
|
||||||
|
|
||||||
|
Metrics/ClassLength:
|
||||||
|
Enabled: false
|
||||||
Reference in New Issue
Block a user