forked from umanni/Fullstack-Developer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
105 lines (105 loc) · 2.06 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
103
104
105
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- ".pryrc"
- ".irbrc"
- Rakefile
- "app/assets/**/*"
- "bin/*"
- "coverage/*"
- "spec/fixtures/**/*"
- "spec/**/*helper.rb"
- "spec/support/**/*.rb"
- "db/**/*.rb"
- "**/schema.rb"
- "lib/tasks/"
TargetRubyVersion: 3.0
Bundler/OrderedGems:
Enabled: false
Layout/ArrayAlignment:
Enabled: true
Layout/HashAlignment:
Enabled: true
Layout/HeredocIndentation:
Enabled: true
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
Layout/ParameterAlignment:
Enabled: true
Layout/LineLength:
Max: 120
Exclude:
- "db/**/*.rb"
- "config/**/*.rb"
Metrics/AbcSize:
Enabled: true
Max: 20
Metrics/BlockLength:
Enabled: true
Exclude:
- "config/routes.rb"
- "config/initializers/shrine.rb"
- "config/initializers/simple_form_bootstrap.rb"
Metrics/ClassLength:
Enabled: true
Max: 150
Metrics/MethodLength:
Enabled: true
Max: 25
Rails:
Enabled: true
Rails/EnvironmentVariableAccess:
Enabled: true
Rails/FilePath:
Enabled: true
Exclude:
- "config/initializers/management.rb"
Rails/InverseOf:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
RSpec/AnyInstance:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/LetSetup:
Enabled: false
RSpec/MessageChain:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/NestedGroups:
Max: 7
RSpec/VerifiedDoubleReference:
Enabled: true
Exclude:
- "spec/channels/application_cable/connection_spec.rb"
Style/AndOr:
Enabled: false
Style/Documentation:
Enabled: true
Exclude:
- "config/application.rb"
Style/ExponentialNotation:
Enabled: false
Style/FrozenStringLiteralComment:
EnforcedStyle: always
Style/GuardClause:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true