lcgstyle 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/chefstyle.yml +55 -0
- data/lib/lcgstyle/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc02e8d9bc1bfc0c9ae1016e9b35ad4f7c9d36b8
|
4
|
+
data.tar.gz: 2097d7d115f520481145fbbe8082e5b0636059b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acb07cb3e984f30d999ccbb9bc7a2df94a72ef28a7ac645ac0a58cf26ac43c2bfbea3333a9b375dca70e2d3281e2ddc20df2086a0314363a38b56ee160a39d02
|
7
|
+
data.tar.gz: c6f1703ad11ba725f8213101c2c32d8494ead64c7e63b75336122a74ced529b61c34c7ac6532c413d32efe414ec1d88d9da427b2bd8f4193a725072c5620db6d
|
data/config/chefstyle.yml
CHANGED
@@ -14,6 +14,8 @@ Lint/Debugger:
|
|
14
14
|
Enabled: true
|
15
15
|
Lint/DefEndAlignment:
|
16
16
|
Enabled: true
|
17
|
+
Lint/DuplicateCaseCondition:
|
18
|
+
Enabled: true
|
17
19
|
Lint/DuplicateMethods:
|
18
20
|
Enabled: true
|
19
21
|
Lint/DuplicatedKey:
|
@@ -24,6 +26,8 @@ Lint/ElseLayout:
|
|
24
26
|
Enabled: true
|
25
27
|
Lint/EmptyEnsure:
|
26
28
|
Enabled: true
|
29
|
+
Lint/EmptyExpression:
|
30
|
+
Enabled: true
|
27
31
|
Lint/EmptyInterpolation:
|
28
32
|
Enabled: true
|
29
33
|
Lint/EndAlignment:
|
@@ -38,6 +42,8 @@ Lint/FormatParameterMismatch:
|
|
38
42
|
Enabled: true
|
39
43
|
Lint/ImplicitStringConcatenation:
|
40
44
|
Enabled: true
|
45
|
+
Lint/InheritException:
|
46
|
+
Enabled: true
|
41
47
|
Lint/InvalidCharacterLiteral:
|
42
48
|
Enabled: true
|
43
49
|
Lint/LiteralInCondition:
|
@@ -60,6 +66,8 @@ Lint/StringConversionInInterpolation:
|
|
60
66
|
Enabled: true
|
61
67
|
Lint/UnderscorePrefixedVariableName:
|
62
68
|
Enabled: true
|
69
|
+
Lint/UnifiedInteger:
|
70
|
+
Enabled: true
|
63
71
|
Lint/UnreachableCode:
|
64
72
|
Enabled: true
|
65
73
|
Lint/UselessAccessModifier:
|
@@ -138,6 +146,8 @@ Performance/Sample:
|
|
138
146
|
Enabled: true
|
139
147
|
Performance/Size:
|
140
148
|
Enabled: true
|
149
|
+
Performance/SortWithBlock:
|
150
|
+
Enabled: true
|
141
151
|
Performance/StartWith:
|
142
152
|
Enabled: true
|
143
153
|
Performance/StringReplacement:
|
@@ -184,6 +194,8 @@ Metrics/AbcSize:
|
|
184
194
|
Enabled: false
|
185
195
|
Metrics/BlockNesting:
|
186
196
|
Enabled: false
|
197
|
+
Metrics/BlockLength:
|
198
|
+
Enabled: false
|
187
199
|
Metrics/ClassLength:
|
188
200
|
Enabled: false
|
189
201
|
Metrics/CyclomaticComplexity:
|
@@ -230,6 +242,8 @@ Style/CommandLiteral:
|
|
230
242
|
Enabled: true
|
231
243
|
Style/ConstantName:
|
232
244
|
Enabled: true
|
245
|
+
Style/DefWithParenthesis:
|
246
|
+
Enabled: true
|
233
247
|
Style/ElseAlignment:
|
234
248
|
Enabled: true
|
235
249
|
Style/EmptyLineBetweenDefs:
|
@@ -274,8 +288,12 @@ Style/MethodDefParentheses:
|
|
274
288
|
Enabled: true
|
275
289
|
Style/MultilineBlockLayout:
|
276
290
|
Enabled: true
|
291
|
+
Style/MultilineIfModifer:
|
292
|
+
Enabled: true
|
277
293
|
Style/MultilineIfThen:
|
278
294
|
Enabled: true
|
295
|
+
Style/MultilineMemoization:
|
296
|
+
Enabled: true
|
279
297
|
Style/MultilineMethodDefinitionBraceLayout:
|
280
298
|
Enabled: true
|
281
299
|
Style/MultilineOperationIndentation:
|
@@ -289,6 +307,14 @@ Style/NestedModifier:
|
|
289
307
|
Enabled: true
|
290
308
|
Style/NestedTernaryOperator:
|
291
309
|
Enabled: true
|
310
|
+
Style/NilComparison:
|
311
|
+
Enabled: true
|
312
|
+
Style/NonNilCheck:
|
313
|
+
Enabled: true
|
314
|
+
# `foo.zero?` is slower and substantially more annoying to read than `foo == 0`
|
315
|
+
Style/NumericPredicate:
|
316
|
+
Enabled: true
|
317
|
+
EnforcedStyle: comparison
|
292
318
|
Style/OneLineConditional:
|
293
319
|
Enabled: true
|
294
320
|
Style/OpMethod:
|
@@ -307,6 +333,7 @@ Style/PercentLiteralDelimiters:
|
|
307
333
|
PreferredDelimiters:
|
308
334
|
'%': '{}'
|
309
335
|
'%i': '{}'
|
336
|
+
'%I': '{}'
|
310
337
|
'%q': '{}'
|
311
338
|
'%Q': '{}'
|
312
339
|
'%r': '{}'
|
@@ -322,6 +349,10 @@ Style/RedundantFreeze:
|
|
322
349
|
Enabled: true
|
323
350
|
Style/RescueEnsureAlignment:
|
324
351
|
Enabled: true
|
352
|
+
Style/SafeNavigation:
|
353
|
+
Enabled: true
|
354
|
+
Style/SelfAssignment:
|
355
|
+
Enabled: true
|
325
356
|
Style/Semicolon:
|
326
357
|
AllowAsExpressionSeparator: true
|
327
358
|
Enabled: true
|
@@ -353,12 +384,18 @@ Style/SpaceBeforeSemicolon:
|
|
353
384
|
Enabled: true
|
354
385
|
Style/SpaceAroundKeyword:
|
355
386
|
Enabled: true
|
387
|
+
Style/SpaceInLambdaLiteral:
|
388
|
+
Enabled: true
|
389
|
+
Style/SpaceInsideArrayPercentLiteral:
|
390
|
+
Enabled: true
|
356
391
|
Style/SpaceInsideBlockBraces:
|
357
392
|
Enabled: true
|
358
393
|
Style/SpaceInsideHashLiteralBraces:
|
359
394
|
Enabled: true
|
360
395
|
Style/SpaceInsideRangeLiteral:
|
361
396
|
Enabled: true
|
397
|
+
Style/SpaceInsideStringInterpolation:
|
398
|
+
Enabled: true
|
362
399
|
Style/StabbyLambdaParentheses:
|
363
400
|
Enabled: true
|
364
401
|
# core chef community prefers double quotes over single quotes
|
@@ -391,6 +428,8 @@ Style/UnneededCapitalW:
|
|
391
428
|
# Enabled: true
|
392
429
|
Style/VariableName:
|
393
430
|
Enabled: true
|
431
|
+
Style/VariableInterpolation:
|
432
|
+
Enabled: true
|
394
433
|
Style/WhenThen:
|
395
434
|
Enabled: true
|
396
435
|
Style/WhileUntilDo:
|
@@ -408,6 +447,8 @@ Style/WordArray:
|
|
408
447
|
# This is a cop that we /should/ have enabled, but tactically we can't really enable.
|
409
448
|
Style/Documentation:
|
410
449
|
Enabled: false
|
450
|
+
Style/DocumentationMethod:
|
451
|
+
Enabled: false
|
411
452
|
|
412
453
|
# this makes whitespace formatting of DSL code impossible
|
413
454
|
Style/SpaceBeforeFirstArg:
|
@@ -467,3 +508,17 @@ Style/AsciiComments:
|
|
467
508
|
# Parens around ternaries often make them more readable and reduces cognitive load over operator precidence
|
468
509
|
Style/TernaryParentheses:
|
469
510
|
Enabled: false
|
511
|
+
|
512
|
+
# Underscores in numbers are super ugly for port numbers, freebsd versions, etc.
|
513
|
+
# If we could mandate that this gets turned on only for numbers >= 1e9 which require three _'s then maybe.
|
514
|
+
Style/NumericLiterals:
|
515
|
+
Enabled: false
|
516
|
+
|
517
|
+
# I tend to find this more readable than long elsif chains
|
518
|
+
Style/EmptyCaseCondition:
|
519
|
+
Enabled: false
|
520
|
+
|
521
|
+
# This didn't quite do what we need
|
522
|
+
Style/MultilineArrayBraceLayout:
|
523
|
+
Enabled: false
|
524
|
+
|
data/lib/lcgstyle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lcgstyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|