-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.rubocop.yml
52 lines (52 loc) · 1.04 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
inherit_mode:
merge:
- Exclude
AllCops:
NewCops: enable
Exclude:
- 'test/*.rb'
SuggestExtensions: false
TargetRubyVersion: '3.0'
# ~~~ Layout ~~~
Layout/HashAlignment:
Include:
- 'lib/**/*.rb'
Layout/LineLength:
Include:
- 'lib/**/*.rb'
Exclude:
- 'lib/ctf_party/cgi.rb'
# ~~~ Lint ~~~
# ~~~ Metrics ~~~
Metrics/AbcSize:
Enabled: false
Metrics/BlockNesting:
Exclude:
- 'bin/*'
Metrics/ClassLength:
Max: 200
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Max: 30
Metrics/PerceivedComplexity:
Max: 10
# ~~~ Naming ~~~
Naming/InclusiveLanguage:
Enabled: false
Naming/VariableNumber:
Enabled: false # too much false positive
# ~~~ Style ~~~
Style/AccessorGrouping:
Enabled: false # for yard
Style/BisectedAttrAccessor:
Enabled: false # for yard
Style/ClassVars:
Enabled: false
Style/Documentation:
Enabled: false
Style/RedundantReturn:
Enabled: false
# it's style!
Gemspec/AddRuntimeDependency:
Enabled: false # https://github.com/rubocop/rubocop/pull/13030#discussion_r1674791776