-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
98 lines (75 loc) · 1.59 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
require:
- rubocop-performance
- rubocop-rails
Rails:
Enabled: true
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
Exclude:
- vendor/**/*
- db/**/*
- tmp/**/*
- bin/**/*
- node_modules/**/*
- config/initializers/simple_form_bootstrap.rb
NewCops: enable
ExtraDetails: true
TargetRubyVersion: 3.2
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/LineLength:
Max: 160
Exclude:
- config/**/*
Metrics/AbcSize:
Max: 20
Exclude:
- app/models/ability.rb
Metrics/BlockLength:
CountComments: false
Max: 25
Exclude:
- config/**/*
Metrics/MethodLength:
CountComments: false
Max: 20
Performance/AncestorsInclude:
Enabled: false
Performance/BigDecimalWithNumericArgument:
Enabled: false
Performance/RedundantSortBlock:
Enabled: false
Performance/RedundantStringChars:
Enabled: false
Performance/ReverseFirst:
Enabled: false
Performance/SortReverse:
Enabled: false
Performance/Squeeze:
Enabled: false
Performance/StringInclude:
Enabled: false
Rails/InverseOf:
Enabled: false
Rails/LexicallyScopedActionFilter:
Exclude:
- app/controllers/concerns/*
Security/Open:
Exclude:
- app/models/user.rb
Style/ClassAndModuleChildren:
Description: 'Checks style of children classes and modules.'
Enabled: true
EnforcedStyle: nested
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
Style/ExpandPathArguments:
Exclude:
- Rakefile
- test/test_helper.rb
Style/FrozenStringLiteralComment:
Enabled: false
Style/SymbolArray:
Enabled: false