-
-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy path.rubocop.yml
More file actions
170 lines (143 loc) · 3.23 KB
/
.rubocop.yml
File metadata and controls
170 lines (143 loc) · 3.23 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.0
Exclude:
- 'pkg/**/*'
- 'vendor/**/*'
- 'tmp/**/*'
- 'node_modules/**/*'
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes
Style/WordArray:
Enabled: false
Style/SymbolArray:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/GlobalVars:
Exclude:
- ext/herb/extconf.rb
Style/AccessorGrouping:
Exclude:
- lib/herb/errors.rb
- lib/herb/ast/nodes.rb
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: diff_comma
Metrics/CyclomaticComplexity:
Max: 15
Exclude:
- lib/herb/project.rb
- lib/herb/ast/nodes.rb
- lib/herb/cli.rb
- lib/herb/engine.rb
- lib/herb/engine/**/*.rb
Metrics/MethodLength:
Max: 20
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/cli.rb
- lib/herb/project.rb
- lib/herb/engine.rb
- lib/herb/engine/**/*.rb
- templates/template.rb
- test/fork_helper.rb
- test/snapshot_utils.rb
- bin/**/*
Metrics/AbcSize:
Exclude:
- lib/herb/ast/node.rb
- lib/herb/ast/nodes.rb
- lib/herb/cli.rb
- lib/herb/errors.rb
- lib/herb/project.rb
- lib/herb/engine.rb
- lib/herb/engine/**/*.rb
- templates/template.rb
- test/fork_helper.rb
- test/snapshot_utils.rb
- test/engine/rails_compatibility_test.rb
- bin/**/*
Metrics/ClassLength:
Exclude:
- lib/herb/cli.rb
- lib/herb/project.rb
- lib/herb/visitor.rb
- lib/herb/engine.rb
- lib/herb/engine/**/*.rb
- bin/**/*
- test/**/*_test.rb
Metrics/ModuleLength:
Exclude:
- test/**/*.rb
- templates/**/*.rb
Metrics/BlockLength:
Max: 30
Exclude:
- Rakefile
- "*.gemspec"
- "**/*.rake"
- lib/herb/cli.rb
- lib/herb/project.rb
- test/**/*_test.rb
- bin/**/*
Metrics/ParameterLists:
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/errors.rb
- lib/herb/engine/validators/security_validator.rb
Metrics/PerceivedComplexity:
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/cli.rb
- lib/herb/project.rb
- lib/herb/engine.rb
- lib/herb/engine/**/*.rb
- templates/template.rb
- test/**/*.rb
- bin/**/*
Layout/LineLength:
Max: 120
Exclude:
- test/**/*_test.rb
- lib/herb/token.rb
- lib/herb/ast/nodes.rb
- lib/herb/engine/error_formatter.rb
- lib/herb/engine/debug_visitor.rb
- lib/herb/engine/parser_error_overlay.rb
- lib/herb/engine/validation_error_overlay.rb
Layout/EmptyLines:
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/errors.rb
Layout/EmptyLinesAroundModuleBody:
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/errors.rb
Layout/EmptyLinesAroundClassBody:
Exclude:
- lib/herb/visitor.rb
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/LeadingCommentSpace:
Enabled: false
Security/Eval:
Exclude:
- Rakefile
- lib/herb/cli.rb
- test/**/*.rb
- bin/erubi-render
Security/MarshalLoad:
Exclude:
- test/fork_helper.rb
Lint/UnderscorePrefixedVariableName:
Exclude:
- test/engine/secure_compiler_test.rb