This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
162 lines (137 loc) · 2.73 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
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
Style/FrozenStringLiteralComment:
Enabled: true
Metrics/ClassLength:
Enabled: false
AllCops:
Exclude:
- 'vendor/**/*'
- 'db/**/*'
- 'bin/**/*'
- 'Gemfile'
- 'Gemfile.lock'
- 'Rakefile'
- 'Guardfile'
- 'node_modules/**/*'
- 'config/**/*'
- 'tmp/**/*'
TargetRubyVersion: 3
NewCops: enable
Metrics/LineLength:
# This will disable the rule completely, regardless what other options you put
Enabled: false
# Change the default 80 chars limit value
Max: 120
# If you want the rule only apply to a specific folder/file
Include:
- "app/**/*"
# If you want the rule not to apply to a specific folder/file
Exclude:
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/SymbolArray:
Enabled: true
Exclude:
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/Documentation:
Enabled: false
Metrics/AbcSize:
Max: 150
Metrics/MethodLength:
Max: 70
Metrics/BlockLength:
Max: 110
AllowedMethods: ["describe", "context"]
Exclude:
- "config/environments/*"
- "config/routes.rb"
- "db/schema.rb"
- "Gemfile"
- "bin/*"
- "config/routes/*"
- "lib/tasks/mrg_node.rake"
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/HashSyntax:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Layout/HashAlignment:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Layout/FirstHashElementIndentation:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/StringLiterals:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/NumericLiterals:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Layout/EmptyLinesAroundBlockBody:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/WordArray:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/ExpandPathArguments:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/MixinUsage:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Layout/EmptyLines:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Layout/SpaceInsideArrayLiteralBrackets:
Exclude:
- config/environments/*
- "db/schema.rb"
- "Gemfile"
- "bin/*"
Style/ClassAndModuleChildren:
Exclude:
- "test/*"
Metrics/CyclomaticComplexity:
Max: 50
Metrics/PerceivedComplexity:
Max: 50
Layout/TrailingEmptyLines:
Enabled: true
Style/GlobalVars:
Enabled: false