1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Inherit from standard rules in default config

This commit is contained in:
Matt Jankowski 2024-06-21 12:25:03 -04:00
parent 88b61cfc25
commit 614329707f
3 changed files with 8 additions and 28 deletions

View file

@ -12,8 +12,6 @@ AllCops:
inherit_from:
- .rubocop/layout.yml
- .rubocop/metrics.yml
- .rubocop/naming.yml
- .rubocop/rails.yml
- .rubocop/rspec_rails.yml
- .rubocop/rspec.yml
@ -22,11 +20,19 @@ inherit_from:
- .rubocop_todo.yml
- .rubocop/strict.yml
inherit_gem:
standard: config/base.yml
standard-performance: config/base.yml
standard-rails: config/base.yml
inherit_mode:
merge:
- Exclude
require:
- standard
- standard-performance
- standard-rails
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails

View file

@ -1,23 +0,0 @@
---
Metrics/AbcSize:
Exclude:
- lib/mastodon/cli/*.rb
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Exclude:
- lib/mastodon/cli/*.rb
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/ParameterLists:
CountKeywordArgs: false

View file

@ -1,3 +0,0 @@
---
Naming/BlockForwarding:
EnforcedStyle: explicit