-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
112 lines (88 loc) · 1.69 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
106
107
108
109
110
111
112
inherit_from: .rubocop_todo.yml
require: rubocop-rake
AllCops:
NewCops: enable
TargetRubyVersion: 3.1
Gemspec/RequireMFA:
Enabled: false
Layout/CommentIndentation:
AllowForAlignment: true
Layout/DotPosition:
EnforcedStyle: trailing
Layout/HashAlignment:
EnforcedHashRocketStyle: table
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented_relative_to_receiver
Lint/AmbiguousRegexpLiteral:
Enabled: false
Metrics/AbcSize:
CountRepeatedAttributes: false
Max: 20
AllowedMethods:
- generate_config
- parse_metadata
- prettify_single_quotes
- read_title_and_author
- render
- render_anthology
- transform
- transform_chapter
- transform_volume
- validate_volumes
- visit_span
- visit_body
- write_anthology
- write_footnote
- write_volume
Metrics/BlockLength:
Max: 30
Metrics/BlockNesting:
Max: 4
Metrics/ClassLength:
CountAsOne:
- array
- hash
- heredoc
Max: 500
Metrics/CyclomaticComplexity:
AllowedMethods:
- prettify_single_quotes
- span_close
- span_open
- visit_span
- visit_body
- visit_text
- write_anthology
Metrics/MethodLength:
CountAsOne:
- array
- hash
- heredoc
Max: 35
AllowedMethods:
- visit_span
Metrics/ModuleLength:
Max: 200
Metrics/PerceivedComplexity:
AllowedMethods:
- prettify_single_quotes
- visit_span
- write_anthology
Style/AndOr:
Enabled: false
Style/ColonMethodCall:
Enabled: false
Style/HashSyntax:
EnforcedStyle: no_mixed_keys
Style/NegatedIf:
Enabled: false
Style/Not:
Enabled: false
Style/OpenStructUse:
Enabled: false
Style/StringConcatenation:
Mode: conservative
Style/SymbolArray:
EnforcedStyle: brackets
Style/WordArray:
EnforcedStyle: brackets