nxt_cop 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/default.yml +2 -261
- data/lib/nxt_cop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36425e542055540a840b751553cd953353fafe70dc6201101dfb5c72432cba54
|
4
|
+
data.tar.gz: 14770d51c1893f141891cf0df314b5b0af32bbd5539a862ab0868b9bc7061729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1325eb79a605393bf2c985bade464459b6e035d57e8c5b3e02d638e28ff6f6f973f899ae5d006189d95216ce2908f2e2abf7db244617b33bf52bc6ed4538a0
|
7
|
+
data.tar.gz: '008136f537dd440edb75742c3c1219180dd33cd745644fa1fc489b4fa2234b1d846e7668bf83c880152f8ee5bca671945dd8a6a39796d0986cfd0ca111e16e43'
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/default.yml
CHANGED
@@ -30,26 +30,17 @@ AllCops:
|
|
30
30
|
DisabledByDefault: false
|
31
31
|
NewCops: disable # to avoid warnings. TODO: remove this setting and add new cops from the warning.
|
32
32
|
|
33
|
-
|
34
|
-
# but for some reason 'DisableByDefault' is set to 'true' above.
|
35
|
-
# Removing this configuration leads to a lot of violations triggered
|
36
|
-
# by other cops that are not auto-correctable.
|
33
|
+
|
37
34
|
Layout/ArgumentAlignment:
|
38
35
|
EnforcedStyle: with_fixed_indentation
|
39
36
|
Layout/ArrayAlignment:
|
40
37
|
EnforcedStyle: with_fixed_indentation
|
41
|
-
Layout/HashAlignment:
|
42
|
-
EnforcedHashRocketStyle: key
|
43
38
|
Layout/ParameterAlignment:
|
44
39
|
EnforcedStyle: with_fixed_indentation
|
45
40
|
Layout/MultilineArrayLineBreaks:
|
46
41
|
Enabled: true
|
47
|
-
Layout/MultilineBlockLayout:
|
48
|
-
Enabled: true
|
49
42
|
Layout/MultilineHashKeyLineBreaks:
|
50
43
|
Enabled: true
|
51
|
-
Layout/MultilineHashBraceLayout:
|
52
|
-
Enabled: true
|
53
44
|
Layout/FirstMethodArgumentLineBreak:
|
54
45
|
Enabled: true
|
55
46
|
Layout/MultilineMethodCallBraceLayout:
|
@@ -74,120 +65,22 @@ Layout/FirstArrayElementIndentation:
|
|
74
65
|
EnforcedStyle: consistent
|
75
66
|
Layout/FirstArrayElementLineBreak:
|
76
67
|
Enabled: true
|
77
|
-
Layout/IndentationWidth:
|
78
|
-
Enabled: true
|
79
|
-
Layout/ClosingParenthesisIndentation:
|
80
|
-
Enabled: true
|
81
|
-
Layout/FirstArgumentIndentation:
|
82
|
-
Enabled: true
|
83
|
-
Layout/ElseAlignment:
|
84
|
-
Enabled: true
|
85
|
-
Layout/FirstHashElementIndentation:
|
86
|
-
Enabled: true
|
87
|
-
Layout/AssignmentIndentation:
|
88
|
-
Enabled: true
|
89
|
-
Layout/CaseIndentation:
|
90
|
-
Enabled: true
|
91
|
-
Layout/MultilineArrayBraceLayout:
|
92
|
-
Enabled: true
|
93
|
-
Layout/BeginEndAlignment:
|
94
|
-
Enabled: true
|
95
|
-
Layout/CommentIndentation:
|
96
|
-
Enabled: true
|
97
|
-
Layout/DotPosition:
|
98
|
-
EnforcedStyle: leading
|
99
|
-
Layout/EmptyLineAfterGuardClause:
|
100
|
-
Enabled: true
|
101
|
-
Layout/IndentationConsistency:
|
102
|
-
Enabled: true
|
103
68
|
Layout/MultilineMethodParameterLineBreaks:
|
104
69
|
Enabled: true
|
105
|
-
Layout/SpaceBeforeBlockBraces:
|
106
|
-
Enabled: true
|
107
|
-
Layout/SpaceInsideBlockBraces:
|
108
|
-
Enabled: true
|
109
|
-
Layout/SpaceInsideHashLiteralBraces:
|
110
|
-
Enabled: true
|
111
|
-
Layout/TrailingEmptyLines:
|
112
|
-
Enabled: true
|
113
|
-
Layout/EmptyLinesAroundClassBody:
|
114
|
-
EnforcedStyle: no_empty_lines
|
115
|
-
Layout/EmptyLinesAroundBlockBody:
|
116
|
-
EnforcedStyle: no_empty_lines
|
117
|
-
Layout/TrailingWhitespace:
|
118
|
-
AllowInHeredoc: false
|
119
|
-
Layout/SpaceBeforeComma:
|
120
|
-
Enabled: true
|
121
|
-
Layout/SpaceAfterComma:
|
122
|
-
Enabled: true
|
123
|
-
Layout/EmptyLines:
|
124
|
-
Enabled: true
|
125
|
-
Layout/EmptyLineAfterMagicComment:
|
126
|
-
Enabled: true
|
127
70
|
|
128
71
|
Lint:
|
129
72
|
Enabled: true
|
130
73
|
Lint/AmbiguousBlockAssociation:
|
131
74
|
Exclude:
|
132
75
|
- spec/**/*
|
133
|
-
Lint/BinaryOperatorWithIdenticalOperands:
|
134
|
-
Enabled: true
|
135
|
-
Lint/ConstantDefinitionInBlock:
|
136
|
-
Enabled: true
|
137
|
-
Lint/DeprecatedOpenSSLConstant:
|
138
|
-
Enabled: true
|
139
|
-
Lint/DuplicateElsifCondition:
|
140
|
-
Enabled: true
|
141
|
-
Lint/DuplicateRequire:
|
142
|
-
Enabled: true
|
143
|
-
Lint/DuplicateRescueException:
|
144
|
-
Enabled: true
|
145
|
-
Lint/EmptyConditionalBody:
|
146
|
-
Enabled: true
|
147
|
-
Lint/EmptyFile:
|
148
|
-
Enabled: true
|
149
|
-
Lint/FloatComparison:
|
150
|
-
Enabled: true
|
151
|
-
Lint/IdentityComparison:
|
152
|
-
Enabled: true
|
153
76
|
Lint/Loop:
|
154
77
|
Enabled: false
|
155
78
|
Lint/MissingSuper:
|
156
79
|
Enabled: false
|
157
|
-
Lint/MixedRegexpCaptureTypes:
|
158
|
-
Enabled: true
|
159
|
-
Lint/OutOfRangeRegexpRef:
|
160
|
-
Enabled: true
|
161
|
-
Lint/RaiseException:
|
162
|
-
Enabled: true
|
163
|
-
Lint/SelfAssignment:
|
164
|
-
Enabled: true
|
165
|
-
Lint/StructNewOverride:
|
166
|
-
Enabled: true
|
167
80
|
Lint/SymbolConversion:
|
168
81
|
EnforcedStyle: consistent
|
169
|
-
Lint/TopLevelReturnWithArgument:
|
170
|
-
Enabled: true
|
171
|
-
Lint/TrailingCommaInAttributeDeclaration:
|
172
|
-
Enabled: true
|
173
|
-
Lint/UnreachableLoop:
|
174
|
-
Enabled: true
|
175
|
-
Lint/UselessMethodDefinition:
|
176
|
-
Enabled: true
|
177
|
-
Lint/UselessTimes:
|
178
|
-
Enabled: true
|
179
|
-
Style/MutableConstant:
|
180
|
-
Enabled: true
|
181
|
-
Style/StringLiterals:
|
182
|
-
Enabled: true
|
183
|
-
Style/SymbolArray:
|
184
|
-
Enabled: true
|
185
82
|
Style/TrailingCommaInHashLiteral:
|
186
83
|
Enabled: false
|
187
|
-
Style/TrailingCommaInArguments:
|
188
|
-
Enabled: true
|
189
|
-
Style/WordArray:
|
190
|
-
Enabled: true
|
191
84
|
Style/HashSyntax:
|
192
85
|
Enabled: true
|
193
86
|
EnforcedShorthandSyntax: either
|
@@ -246,7 +139,7 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
246
139
|
Enabled: false
|
247
140
|
Lint/LambdaWithoutLiteralBlock:
|
248
141
|
Enabled: false
|
249
|
-
Lint/NoReturnInBeginEndBlocks:
|
142
|
+
Lint/NoReturnInBeginEndBlocks: # ❌ ENABLE THIS!
|
250
143
|
Enabled: false
|
251
144
|
Lint/NumberedParameterAssignment:
|
252
145
|
Enabled: false
|
@@ -513,155 +406,3 @@ Style/EmptyElse:
|
|
513
406
|
Enabled: false
|
514
407
|
Style/MixinUsage: # Enable and then manually disable offenses?
|
515
408
|
Enabled: false
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
# ✅ Enabled in 2.0 version (activated by "enable all rules by default')
|
520
|
-
# Let's keep commented list here for visibility for a while
|
521
|
-
#
|
522
|
-
#Layout/SpaceInsideParens:
|
523
|
-
# Enabled: false
|
524
|
-
#Layout/SpaceBeforeFirstArg:
|
525
|
-
# Enabled: false
|
526
|
-
#Layout/ExtraSpacing:
|
527
|
-
# Enabled: false
|
528
|
-
#Layout/SpaceAfterColon:
|
529
|
-
# Enabled: false
|
530
|
-
#Rails/PluralizationGrammar:
|
531
|
-
# Enabled: false
|
532
|
-
#Layout/SpaceAroundMethodCallOperator:
|
533
|
-
# Enabled: false
|
534
|
-
#Style/RedundantFreeze:
|
535
|
-
# Enabled: false
|
536
|
-
#Layout/SpaceInLambdaLiteral:
|
537
|
-
# Enabled: false
|
538
|
-
#Layout/LeadingCommentSpace:
|
539
|
-
# Enabled: false
|
540
|
-
#Layout/DefEndAlignment:
|
541
|
-
# Enabled: false
|
542
|
-
#Style/RedundantRegexpEscape:
|
543
|
-
# Enabled: false
|
544
|
-
#Layout/HeredocIndentation:
|
545
|
-
# Enabled: false
|
546
|
-
#Layout/ClosingHeredocIndentation:
|
547
|
-
# Enabled: false
|
548
|
-
#Layout/LeadingEmptyLines:
|
549
|
-
# Enabled: false
|
550
|
-
#Layout/EmptyLinesAroundAccessModifier:
|
551
|
-
# Enabled: false
|
552
|
-
#Style/NegatedIf:
|
553
|
-
# Enabled: false
|
554
|
-
#Style/CommentAnnotation:
|
555
|
-
# Enabled: false
|
556
|
-
#Layout/MultilineOperationIndentation:
|
557
|
-
# Enabled: false
|
558
|
-
#Style/ExpandPathArguments:
|
559
|
-
# Enabled: false
|
560
|
-
#Layout/EmptyLinesAroundMethodBody:
|
561
|
-
# Enabled: false
|
562
|
-
#Style/RedundantReturn:
|
563
|
-
# Enabled: false
|
564
|
-
#Style/GlobalStdStream:
|
565
|
-
# Enabled: false
|
566
|
-
#Style/FloatDivision:
|
567
|
-
# Enabled: false
|
568
|
-
#Style/RescueStandardError:
|
569
|
-
# Enabled: false
|
570
|
-
#Style/NilComparison:
|
571
|
-
# Enabled: false
|
572
|
-
#Style/RedundantFetchBlock:
|
573
|
-
# Enabled: false
|
574
|
-
#Style/Encoding:
|
575
|
-
# Enabled: false
|
576
|
-
#Style/EmptyLiteral:
|
577
|
-
# Enabled: false
|
578
|
-
#Layout/SpaceInsideReferenceBrackets:
|
579
|
-
# Enabled: false
|
580
|
-
#Style/EmptyLambdaParameter:
|
581
|
-
# Enabled: false
|
582
|
-
#Style/TernaryParentheses:
|
583
|
-
# Enabled: false
|
584
|
-
#Naming/MethodName:
|
585
|
-
# Enabled: false
|
586
|
-
#Style/SlicingWithRange:
|
587
|
-
# Enabled: false
|
588
|
-
#Style/EmptyCaseCondition:
|
589
|
-
# Enabled: false
|
590
|
-
#Style/SoleNestedConditional:
|
591
|
-
# Enabled: false
|
592
|
-
#Rails/FindEach:
|
593
|
-
# Enabled: false
|
594
|
-
#Style/RedundantFileExtensionInRequire:
|
595
|
-
# Enabled: false
|
596
|
-
#Layout/SpaceInsideArrayLiteralBrackets:
|
597
|
-
# Enabled: false
|
598
|
-
#Style/HashAsLastArrayItem:
|
599
|
-
# Enabled: false
|
600
|
-
#Lint/RedundantCopDisableDirective:
|
601
|
-
# Enabled: false
|
602
|
-
#Layout/SpaceAroundKeyword:
|
603
|
-
# Enabled: false
|
604
|
-
#Style/KeywordParametersOrder:
|
605
|
-
# Enabled: false
|
606
|
-
#Style/BlockComments:
|
607
|
-
# Enabled: false
|
608
|
-
#Style/AndOr:
|
609
|
-
# Enabled: false
|
610
|
-
#Style/EachWithObject:
|
611
|
-
# Enabled: false
|
612
|
-
#Layout/SpaceAroundBlockParameters:
|
613
|
-
# Enabled: false
|
614
|
-
#Style/MultilineTernaryOperator:
|
615
|
-
# Enabled: false
|
616
|
-
#Style/RedundantParentheses:
|
617
|
-
# Enabled: false
|
618
|
-
#Security/JSONLoad:
|
619
|
-
# Enabled: false
|
620
|
-
#Style/MethodCallWithoutArgsParentheses:
|
621
|
-
# Enabled: false
|
622
|
-
#Style/CommentedKeyword:
|
623
|
-
# Enabled: false
|
624
|
-
#Style/MultilineIfModifier:
|
625
|
-
# Enabled: false
|
626
|
-
#Style/IfInsideElse:
|
627
|
-
# Enabled: false
|
628
|
-
#Style/AccessorGrouping:
|
629
|
-
# Enabled: false
|
630
|
-
#Layout/BlockEndNewline:
|
631
|
-
# Enabled: false
|
632
|
-
#Rails/RedundantForeignKey:
|
633
|
-
# Enabled: false
|
634
|
-
#Style/UnlessElse:
|
635
|
-
# Enabled: false
|
636
|
-
#Layout/EmptyLinesAroundModuleBody:
|
637
|
-
# Enabled: false
|
638
|
-
#Rails/RakeEnvironment:
|
639
|
-
# Enabled: false
|
640
|
-
#Layout/EmptyLinesAroundArguments:
|
641
|
-
# Enabled: false
|
642
|
-
#Style/EachForSimpleLoop:
|
643
|
-
# Enabled: false
|
644
|
-
#Style/ClassCheck:
|
645
|
-
# Enabled: false
|
646
|
-
#Style/NestedParenthesizedCalls:
|
647
|
-
# Enabled: false
|
648
|
-
#Style/LineEndConcatenation:
|
649
|
-
# Enabled: false
|
650
|
-
#Style/ParallelAssignment:
|
651
|
-
# Enabled: false
|
652
|
-
#Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
653
|
-
# Enabled: false
|
654
|
-
#Layout/SpaceAroundEqualsInParameterDefault:
|
655
|
-
# Enabled: false
|
656
|
-
#Style/YodaCondition:
|
657
|
-
# Enabled: false
|
658
|
-
#Layout/SpaceInsideStringInterpolation:
|
659
|
-
# Enabled: false
|
660
|
-
#Style/EmptyMethod:
|
661
|
-
# Enabled: false
|
662
|
-
#Layout/EmptyLineBetweenDefs:
|
663
|
-
# Enabled: false
|
664
|
-
#Naming/ConstantName:
|
665
|
-
# Enabled: false
|
666
|
-
#Rails/RelativeDateConstant:
|
667
|
-
# Enabled: false
|
data/lib/nxt_cop/version.rb
CHANGED