forked from unboxed/bops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
102 lines (78 loc) · 1.67 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
inherit_from: .rubocop_todo.yml
inherit_mode:
merge:
- Exclude
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.7.5
NewCops: enable
Exclude:
- 'bops-applicants/**/*'
- 'lib/package_builder.rb'
- 'config/environments/**'
- 'config/puma.rb'
Performance/CollectionLiteralInLoop:
Exclude:
- spec/models/planning_application_spec.rb
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/Documentation:
Enabled: false
Style/GuardClause:
Exclude:
- db/migrate/20210308183431_add_service_name_to_active_storage_blobs.active_storage.rb
# be a bit kinder with our metrics
Metrics/BlockLength:
Max: 100
Exclude:
- spec/**/*
- config/routes.rb
Metrics/MethodLength:
Max: 20
Layout/LineLength:
Exclude:
- spec/**/*
Lint/AmbiguousBlockAssociation:
Exclude:
- spec/models/review_policy_class_spec.rb
# we tend to use update_all in migrations
Rails/SkipsModelValidations:
Exclude:
- db/migrate/*.rb
# Rspec
RSpec/MultipleExpectations:
Enabled: false
Rails/NotNullColumn:
Exclude:
- db/migrate/20221116234525_add_review_mark_to_review_policy_classes.rb
Rails/RedundantPresenceValidationOnBelongsTo:
Exclude:
- app/models/validation_request.rb
RSpec/ExampleLength:
Enabled: false
RSpec/NestedGroups:
Max: 5
RSpec/InstanceVariable:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/ContextWording:
Prefixes:
- as
- before
- when
- with
- without
RSpec/MessageSpies:
Enabled: false
RSpec/StubbedMock:
Enabled: false
Lint/MissingSuper:
Exclude:
- app/components/**/*.rb