-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.rubocop.yml
More file actions
80 lines (63 loc) · 2.04 KB
/
Copy path.rubocop.yml
File metadata and controls
80 lines (63 loc) · 2.04 KB
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
inherit_from: .rubocop_todo.yml
plugins:
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-factory_bot
- rubocop-capybara
AllCops:
TargetRubyVersion: 3.4
NewCops: enable
Exclude:
- 'db/schema.rb'
- 'db/migrate/*.rb'
- 'bin/*'
- 'vendor/**/*'
- 'node_modules/**/*'
Rails:
Enabled: true
# the listed actions are defined in the CrudActions concern or inherited from
# Devise; the cop cannot see actions that are not lexically defined in the class
Rails/LexicallyScopedActionFilter:
Enabled: false
# goal_1 .. goal_35 are actual database columns on kids and the assessments;
# symbols referencing them cannot use normalcase
Naming/VariableNumber:
AllowedPatterns:
- '\Agoal_\d+\z'
# documentation comments on every class are not part of this codebase's style
Style/Documentation:
Enabled: false
# the presence validations on belongs_to associations are not redundant here:
# simple_form ignores the conditional validator that belongs_to generates, so
# removing the explicit validation drops the required marker (*) from the forms
Rails/RedundantPresenceValidationOnBelongsTo:
Enabled: false
RSpec:
Enabled: true
# the spec suite consistently uses before blocks with instance variables
# instead of let; rewriting ~600 occurrences is not worth the churn
RSpec/InstanceVariable:
Enabled: false
# acceptance scenarios deliberately walk through a flow and assert several
# things along the way; one-expectation-per-example does not fit this suite
RSpec/MultipleExpectations:
Enabled: false
RSpec/ExampleLength:
Enabled: false
# context descriptions are written in free-form (often German) prose
RSpec/ContextWording:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NestedGroups:
Enabled: false
# the mentor fixtures are rendered by the React component under test and
# referenced via super() in nested let overrides, which the cop cannot see
RSpec/LetSetup:
Exclude:
- 'spec/requests/show_kid_mentors_schedules_spec.rb'
FactoryBot:
Enabled: true
Capybara:
Enabled: true