simplycop 1.14.6 → 1.14.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplycop.yml +9 -1754
- data/.simplycop_bundler.yml +18 -0
- data/.simplycop_gemspec.yml +28 -0
- data/.simplycop_layout.yml +311 -0
- data/.simplycop_lint.yml +415 -0
- data/.simplycop_metrics.yml +38 -0
- data/.simplycop_migration.yml +2 -0
- data/.simplycop_naming.yml +81 -0
- data/.simplycop_rspec.yml +53 -15
- data/.simplycop_security.yml +30 -0
- data/.simplycop_style.yml +824 -0
- data/catalog-info.yaml +2 -2
- data/docs/index.md +20 -1
- data/lib/simplycop/version.rb +1 -1
- metadata +9 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
Bundler/DuplicatedGem:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
Bundler/GemComment:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Bundler/GemFilename:
|
8
|
+
Enabled: true
|
9
|
+
|
10
|
+
# To discuss: Suggest true but 103 fails on Chopin, 10 on Rater
|
11
|
+
Bundler/GemVersion:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Bundler/InsecureProtocolSource:
|
15
|
+
Enabled: true
|
16
|
+
|
17
|
+
Bundler/OrderedGems:
|
18
|
+
Enabled: true
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# To discuss: Suggest true but 3 fails on Chopin, 21 on Rater
|
2
|
+
Gemspec/DependencyVersion:
|
3
|
+
Enabled: false
|
4
|
+
|
5
|
+
# TODO: 1 autocorrectable in Rater and it would pass
|
6
|
+
Gemspec/DeprecatedAttributeAssignment:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
# 2 fails on Chopin, 10 on Rater, so override if necessary
|
10
|
+
Gemspec/DevelopmentDependencies:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Gemspec/DuplicatedAssignment:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Gemspec/OrderedDependencies:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
# TODO: Suggest true but 4 fails on Chopin, 3 on Rater, overridden to false on Chopin
|
20
|
+
Gemspec/RequireMFA:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
# Will need Chopin override
|
24
|
+
Gemspec/RequiredRubyVersion:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Gemspec/RubyVersionGlobalsUsage:
|
28
|
+
Enabled: true
|
@@ -0,0 +1,311 @@
|
|
1
|
+
Layout/AccessModifierIndentation:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
Layout/ArgumentAlignment:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Layout/ArrayAlignment:
|
8
|
+
Enabled: true
|
9
|
+
|
10
|
+
Layout/AssignmentIndentation:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
Layout/BeginEndAlignment:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Layout/BlockAlignment:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Layout/BlockEndNewline:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
Layout/CaseIndentation:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
# Discussion needed about preferred structure. Dozens of fails on each repo if we stick with default, all but 4 on Chopin are autocorrectable
|
26
|
+
# Worth agreeing a style?
|
27
|
+
Layout/ClassStructure:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Layout/ClosingHeredocIndentation:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Layout/ClosingParenthesisIndentation:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Layout/CommentIndentation:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Layout/ConditionPosition:
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Layout/DefEndAlignment:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
Layout/DotPosition:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Layout/ElseAlignment:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
Layout/EmptyComment:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
Layout/EmptyLineAfterGuardClause:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
# Needs Chopin override
|
58
|
+
Layout/EmptyLineAfterMagicComment:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
Layout/EmptyLineAfterMultilineCondition:
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
Layout/EmptyLineBetweenDefs:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
Layout/EmptyLines:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
Layout/EmptyLinesAroundAccessModifier:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Layout/EmptyLinesAroundArguments:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Layout/EmptyLinesAroundBeginBody:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Layout/EmptyLinesAroundBlockBody:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Layout/EmptyLinesAroundClassBody:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
Layout/EmptyLinesAroundMethodBody:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Layout/EmptyLinesAroundModuleBody:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
Layout/EndAlignment:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Layout/EndOfLine:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Layout/ExtraSpacing:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Layout/FirstArgumentIndentation:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Layout/FirstArrayElementIndentation:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Layout/FirstArrayElementLineBreak:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
Layout/FirstHashElementIndentation:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Layout/FirstHashElementLineBreak:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Layout/FirstMethodArgumentLineBreak:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
# Needs Chopin override
|
125
|
+
Layout/FirstMethodParameterLineBreak:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
Layout/FirstParameterIndentation:
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Layout/HashAlignment:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
Layout/HeredocArgumentClosingParenthesis:
|
135
|
+
Enabled: true
|
136
|
+
|
137
|
+
Layout/HeredocIndentation:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Layout/IndentationConsistency:
|
141
|
+
Enabled: true
|
142
|
+
|
143
|
+
Layout/IndentationStyle:
|
144
|
+
Enabled: true
|
145
|
+
|
146
|
+
Layout/IndentationWidth:
|
147
|
+
Enabled: true
|
148
|
+
|
149
|
+
Layout/InitialIndentation:
|
150
|
+
Enabled: true
|
151
|
+
|
152
|
+
Layout/LeadingCommentSpace:
|
153
|
+
Enabled: true
|
154
|
+
|
155
|
+
Layout/LeadingEmptyLines:
|
156
|
+
Enabled: true
|
157
|
+
|
158
|
+
# Overridden to false in Chopin
|
159
|
+
Layout/LineContinuationLeadingSpace:
|
160
|
+
Enabled: true
|
161
|
+
|
162
|
+
# Overridden to false in Chopin
|
163
|
+
Layout/LineContinuationSpacing:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
# Overridden to false in Chopin
|
167
|
+
Layout/LineEndStringConcatenationIndentation:
|
168
|
+
Enabled: true
|
169
|
+
|
170
|
+
# To discuss: configure line length? At default 120: 6805 fails on Chopin, 3 on Rater, 179 on CoCo
|
171
|
+
# Typically overridden/"to-do"-ed
|
172
|
+
Layout/LineLength:
|
173
|
+
Enabled: true
|
174
|
+
|
175
|
+
Layout/MultilineArrayBraceLayout:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
Layout/MultilineArrayLineBreaks:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
# To discuss: 100s of fails on each repo but autocorrectable
|
182
|
+
Layout/MultilineAssignmentLayout:
|
183
|
+
Enabled: false
|
184
|
+
|
185
|
+
Layout/MultilineBlockLayout:
|
186
|
+
Enabled: true
|
187
|
+
|
188
|
+
Layout/MultilineHashBraceLayout:
|
189
|
+
Enabled: true
|
190
|
+
|
191
|
+
# To discuss: 100s of fails on each repo but autocorrectable gp
|
192
|
+
Layout/MultilineHashKeyLineBreaks:
|
193
|
+
Enabled: false
|
194
|
+
|
195
|
+
# To discuss: 1000s of fails on each repo but autocorrectable
|
196
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
197
|
+
Enabled: false
|
198
|
+
|
199
|
+
Layout/MultilineMethodCallBraceLayout:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
Layout/MultilineMethodCallIndentation:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
# To discuss: 100s of fails on each repo but autocorrectable
|
209
|
+
Layout/MultilineMethodParameterLineBreaks:
|
210
|
+
Enabled: false
|
211
|
+
|
212
|
+
Layout/MultilineOperationIndentation:
|
213
|
+
Enabled: true
|
214
|
+
|
215
|
+
Layout/ParameterAlignment:
|
216
|
+
Enabled: true
|
217
|
+
|
218
|
+
# For discussion: 1000s of fails, all autocorrectable
|
219
|
+
Layout/RedundantLineBreak:
|
220
|
+
Enabled: false
|
221
|
+
|
222
|
+
Layout/RescueEnsureAlignment:
|
223
|
+
Enabled: true
|
224
|
+
|
225
|
+
# For discussion: 1000s of fails, all autocorrectable
|
226
|
+
Layout/SingleLineBlockChain:
|
227
|
+
Enabled: false
|
228
|
+
|
229
|
+
Layout/SpaceAfterColon:
|
230
|
+
Enabled: true
|
231
|
+
|
232
|
+
Layout/SpaceAfterComma:
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
Layout/SpaceAfterMethodName:
|
236
|
+
Enabled: true
|
237
|
+
|
238
|
+
Layout/SpaceAfterNot:
|
239
|
+
Enabled: true
|
240
|
+
|
241
|
+
Layout/SpaceAfterSemicolon:
|
242
|
+
Enabled: true
|
243
|
+
|
244
|
+
Layout/SpaceAroundBlockParameters:
|
245
|
+
Enabled: true
|
246
|
+
|
247
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
248
|
+
Enabled: true
|
249
|
+
|
250
|
+
Layout/SpaceAroundKeyword:
|
251
|
+
Enabled: true
|
252
|
+
|
253
|
+
Layout/SpaceAroundMethodCallOperator:
|
254
|
+
Enabled: true
|
255
|
+
|
256
|
+
Layout/SpaceAroundOperators:
|
257
|
+
Enabled: true
|
258
|
+
|
259
|
+
Layout/SpaceBeforeBlockBraces:
|
260
|
+
Enabled: true
|
261
|
+
|
262
|
+
Layout/SpaceBeforeBrackets:
|
263
|
+
Enabled: true
|
264
|
+
|
265
|
+
Layout/SpaceBeforeComma:
|
266
|
+
Enabled: true
|
267
|
+
|
268
|
+
Layout/SpaceBeforeComment:
|
269
|
+
Enabled: true
|
270
|
+
|
271
|
+
Layout/SpaceBeforeFirstArg:
|
272
|
+
Enabled: true
|
273
|
+
|
274
|
+
Layout/SpaceBeforeSemicolon:
|
275
|
+
Enabled: true
|
276
|
+
|
277
|
+
Layout/SpaceInLambdaLiteral:
|
278
|
+
Enabled: true
|
279
|
+
|
280
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
281
|
+
Enabled: true
|
282
|
+
|
283
|
+
Layout/SpaceInsideArrayPercentLiteral:
|
284
|
+
Enabled: true
|
285
|
+
|
286
|
+
Layout/SpaceInsideBlockBraces:
|
287
|
+
Enabled: true
|
288
|
+
|
289
|
+
Layout/SpaceInsideHashLiteralBraces:
|
290
|
+
Enabled: true
|
291
|
+
|
292
|
+
Layout/SpaceInsideParens:
|
293
|
+
Enabled: true
|
294
|
+
|
295
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
296
|
+
Enabled: true
|
297
|
+
|
298
|
+
Layout/SpaceInsideRangeLiteral:
|
299
|
+
Enabled: true
|
300
|
+
|
301
|
+
Layout/SpaceInsideReferenceBrackets:
|
302
|
+
Enabled: true
|
303
|
+
|
304
|
+
Layout/SpaceInsideStringInterpolation:
|
305
|
+
Enabled: true
|
306
|
+
|
307
|
+
Layout/TrailingEmptyLines:
|
308
|
+
Enabled: true
|
309
|
+
|
310
|
+
Layout/TrailingWhitespace:
|
311
|
+
Enabled: true
|