Exclude ViewComponents from MissingSuper rule as it's unnecessary

Source: https://viewcomponent.org/#whats-a-viewcomponent
This commit is contained in:
Jean-Baptiste Bellet
2022-04-15 14:36:42 +02:00
parent 8825ff2711
commit b60eeb8dc4
2 changed files with 4 additions and 5 deletions

View File

@@ -105,6 +105,10 @@ Lint/UselessAssignment:
Exclude:
- spec/**/*
Lint/MissingSuper:
Exclude:
- 'app/components/**/*'
Metrics/AbcSize:
Max: 30 # default 17

View File

@@ -366,11 +366,6 @@ Lint/IneffectiveAccessModifier:
Exclude:
- 'app/models/spree/user.rb'
# Offense count: 2
Lint/MissingSuper:
Exclude:
- 'app/components/distributor_title_component.rb'
- 'app/components/example_component.rb'
# Offense count: 1
# Cop supports --auto-correct.