-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.rubocop.yml
75 lines (69 loc) · 1.79 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
require:
- rubocop-factory_bot
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
AllCops:
TargetRubyVersion: 3.3
DisplayCopNames: true
Exclude:
- 'db/migrate/**'
- 'db/schema.rb'
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
NewCops: enable
################################## Layout #################################
Layout/LineLength:
Max: 120
################################## Metrics ################################
Metrics/AbcSize:
# Assignment Branch condition size
Max: 30
Metrics/BlockNesting:
# Configuration parameters: CountBlocks.
Max: 4
Metrics/BlockLength:
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
Exclude:
- 'config/**/*'
- 'spec/**/*'
Max: 120
Metrics/ClassLength:
Max: 200
Metrics/CyclomaticComplexity:
Max: 15
Metrics/MethodLength:
# Configuration parameters: CountComments.
Max: 15
Metrics/PerceivedComplexity:
Max: 15
################################## Rails ##################################
Rails:
Enabled: true
################################## RSpec ##################################
RSpec/DescribeClass:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/MessageSpies:
Enabled: false
RSpec/MultipleMemoizedHelpers: # new in 1.43
Max: 6
RSpec/NestedGroups:
Enabled: false
RSpec/NoExpectationExample: # NOTE: disabled due to shoulda-matchers usage
Enabled: false
################################## Style ##################################
Style/ClassAndModuleChildren:
# Disable checking compact/nesting class/modules style
Enabled: false
Style/Documentation:
# Disable documentations, leave it on the programmer’s conscience
Enabled: false
Style/MixinUsage:
Exclude:
- 'bin/*'
Style/StderrPuts:
Exclude:
- 'bin/*'