|
|
@ -32,7 +32,6 @@ Layout/FirstHashElementIndentation:
|
|
|
|
EnforcedStyle: consistent
|
|
|
|
EnforcedStyle: consistent
|
|
|
|
|
|
|
|
|
|
|
|
Layout/LineLength:
|
|
|
|
Layout/LineLength:
|
|
|
|
Max: 140 # RuboCop default 120
|
|
|
|
|
|
|
|
AllowedPatterns:
|
|
|
|
AllowedPatterns:
|
|
|
|
# Allow comments to be long lines
|
|
|
|
# Allow comments to be long lines
|
|
|
|
- !ruby/regexp / \# .*$/
|
|
|
|
- !ruby/regexp / \# .*$/
|
|
|
@ -47,13 +46,11 @@ Lint/UselessAccessModifier:
|
|
|
|
- class_methods
|
|
|
|
- class_methods
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 34 # RuboCop default 17
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/**/*cli*.rb'
|
|
|
|
- 'lib/**/*cli*.rb'
|
|
|
|
- db/*migrate/**/*
|
|
|
|
- db/*migrate/**/*
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Max: 55 # Default 25
|
|
|
|
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
Exclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
@ -63,30 +60,23 @@ Metrics/BlockNesting:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/ClassLength:
|
|
|
|
Metrics/ClassLength:
|
|
|
|
Max: 500 # Default 100
|
|
|
|
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
Exclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Max: 12 # Default 7
|
|
|
|
|
|
|
|
Exclude:
|
|
|
|
Exclude:
|
|
|
|
- lib/mastodon/*cli*.rb
|
|
|
|
- lib/mastodon/*cli*.rb
|
|
|
|
- db/*migrate/**/*
|
|
|
|
- db/*migrate/**/*
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Max: 25 # RuboCop default 10
|
|
|
|
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
Exclude:
|
|
|
|
Exclude:
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
- 'lib/mastodon/*_cli.rb'
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
Max: 200 # Default 100
|
|
|
|
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
CountAsOne: [array, heredoc]
|
|
|
|
|
|
|
|
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
|
|
|
|
Max: 16 # RuboCop default 8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rails/HttpStatus:
|
|
|
|
Rails/HttpStatus:
|
|
|
|
EnforcedStyle: numeric
|
|
|
|
EnforcedStyle: numeric
|
|
|
|
|
|
|
|
|
|
|
|