mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Our rubocop config hides all current violations. It allows us to have a passing rubocop run on the current code and improve it gradually. It detects new violations, but doesn't annoy us with all the existing ones. Code Climate has its own way of remembering all current violations which is more sophisticated than ours. The new config for Code Climate doesn't hide any violations so that Code Climate can give us a realistic score of code quality and warn us about every new violation. Splitting the configuration into the main three parts gives a quicker overview and makes maintaining the parts easier.
46 lines
925 B
YAML
46 lines
925 B
YAML
version: "2"
|
|
plugins:
|
|
rubocop:
|
|
enabled: true
|
|
channel: "rubocop-0-57"
|
|
config:
|
|
file: ".rubocop_styleguide.yml"
|
|
scss-lint:
|
|
enabled: true
|
|
checks:
|
|
ImportantRule:
|
|
enabled: false
|
|
VendorPrefix:
|
|
enabled: false
|
|
duplication:
|
|
enabled: true
|
|
exclude_patterns:
|
|
- "db/**"
|
|
- "config/initializers/active_record_postgresql_referential_integrity_patch.rb"
|
|
checks:
|
|
argument-count:
|
|
enabled: false
|
|
complex-logic:
|
|
enabled: false
|
|
file-lines:
|
|
enabled: false
|
|
method-complexity:
|
|
enabled: false
|
|
method-count:
|
|
enabled: false
|
|
method-lines:
|
|
enabled: false
|
|
nested-control-flow:
|
|
enabled: false
|
|
return-statements:
|
|
enabled: false
|
|
similar-code:
|
|
enabled: false
|
|
identical-code:
|
|
enabled: false
|
|
exclude_patterns:
|
|
- "spec/**/*"
|
|
- "vendor/**/*"
|
|
- "app/assets/javascripts/shared/*"
|
|
- "app/assets/javascripts/jquery-migrate-1.0.0.js"
|