-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
66 lines (53 loc) · 1.22 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
require:
- rubocop-rails
- rubocop-performance
- rubocop-rspec # if you are using RSpec for testing
AllCops:
NewCops: enable
DisplayCopNames: true
TargetRubyVersion: 3.1.2
Exclude:
- 'bin/**/*'
- 'db/schema.rb'
- 'node_modules/**/*'
- 'spec/dummy/**/*' # excluding dummy app in engine
- 'vendor/**/*'
Rails:
Enabled: true
# If using RSpec, enable these settings:
RSpec:
Language:
Describe:
- describe
- xdescribe
- fdescribe
- context
- xcontext
- fcontext
Layout/LineLength:
Max: 120 # or your desired maximum line length
Metrics/BlockLength:
Exclude:
- 'config/**/*'
- 'spec/**/*'
IgnoredMethods:
- 'describe'
- 'context'
- 'included'
Metrics/MethodLength:
Max: 15 # or your desired max method length
Exclude:
- 'migrations/**/*'
Metrics/AbcSize:
Max: 20 # or your desired ABC size limit
Metrics/CyclomaticComplexity:
Max: 7 # or your desired complexity
Metrics/PerceivedComplexity:
Max: 8 # or your desired perceived complexity
Style/Documentation:
Enabled: false
Rails/InverseOf:
Enabled: false
Rails/ReversibleMigration:
Enabled: false
# Any other specific rules or overrides for your code style go below.