forked from marcoroth/herb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
134 lines (109 loc) · 2.33 KB
/
.rubocop.yml
File metadata and controls
134 lines (109 loc) · 2.33 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
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
Metrics/MethodLength:
Max: 20
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/cli.rb
- lib/herb/project.rb
- templates/template.rb
- test/fork_helper.rb
- test/snapshot_utils.rb
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
- templates/template.rb
- test/fork_helper.rb
- test/snapshot_utils.rb
Metrics/ClassLength:
Exclude:
- lib/herb/cli.rb
- lib/herb/project.rb
- lib/herb/visitor.rb
- test/**/*_test.rb
Metrics/BlockLength:
Max: 30
Exclude:
- Rakefile
- "*.gemspec"
- "**/*.rake"
- lib/herb/project.rb
- test/**/*_test.rb
Metrics/ParameterLists:
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/errors.rb
Metrics/PerceivedComplexity:
Exclude:
- lib/herb/ast/nodes.rb
- lib/herb/cli.rb
- lib/herb/project.rb
- test/snapshot_utils.rb
Layout/LineLength:
Max: 120
Exclude:
- test/**/*_test.rb
- lib/herb/token.rb
- lib/herb/ast/nodes.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
Security/MarshalLoad:
Exclude:
- test/fork_helper.rb