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