mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Ignore Metrics/BlockLength for specs and Rails/HasAndBelongsToMany
This commit is contained in:
@@ -1304,6 +1304,8 @@ Lint/Void:
|
||||
# Configuration parameters: CountComments, ExcludedMethods.
|
||||
Metrics/BlockLength:
|
||||
Max: 672
|
||||
Exclude:
|
||||
- 'spec/**/*'
|
||||
|
||||
# Offense count: 1
|
||||
Performance/Caller:
|
||||
@@ -1411,6 +1413,8 @@ Rails/HasAndBelongsToMany:
|
||||
Exclude:
|
||||
- 'app/models/enterprise.rb'
|
||||
- 'app/models/enterprise_group.rb'
|
||||
- 'app/models/order_cycle.rb'
|
||||
- 'app/models/schedule.rb'
|
||||
- 'app/models/spree/line_item_decorator.rb'
|
||||
- 'app/models/spree/payment_method_decorator.rb'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user