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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0aa842f12fc52becc03c69ab9b31ed84490cef95cfab304e560afdaedc076dab
4
- data.tar.gz: 6f5a9aa11731b24bbe97107efec680a5e7aa7753752419c69b4f3051ea605ee5
3
+ metadata.gz: 36425e542055540a840b751553cd953353fafe70dc6201101dfb5c72432cba54
4
+ data.tar.gz: 14770d51c1893f141891cf0df314b5b0af32bbd5539a862ab0868b9bc7061729
5
5
  SHA512:
6
- metadata.gz: 7bcca20a477fd8130a27aa595f0eb39cd548502d6f6accd75a8cef97931e0f2b7627244be6776b72afb8b0f231f1716146a74c23151968ce9c5e36e1b66f36ac
7
- data.tar.gz: fa16aa38b4f39b64b8592774f5306ad08692a0058090f070e57f7ed794ffe9624ef3ff5e9c755ef77388ba8d4c2444632e79b013529c9199b21eee141e67aaae
6
+ metadata.gz: 0e1325eb79a605393bf2c985bade464459b6e035d57e8c5b3e02d638e28ff6f6f973f899ae5d006189d95216ce2908f2e2abf7db244617b33bf52bc6ed4538a0
7
+ data.tar.gz: '008136f537dd440edb75742c3c1219180dd33cd745644fa1fc489b4fa2234b1d846e7668bf83c880152f8ee5bca671945dd8a6a39796d0986cfd0ca111e16e43'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v2.3.0 2024-02-09
2
+ ## What's Changed
3
+ - Tree shake the config (no rules change)
4
+
1
5
  # v2.2.0 2024-01-30
2
6
  ## What's Changed
3
7
  - Add rubocop-factory_bot
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_cop (2.2.0)
4
+ nxt_cop (2.3.0)
5
5
  rubocop (~> 1.60.0)
6
6
  rubocop-rails (~> 2.8)
7
7
  rubocop-rspec (~> 2.12)
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
- # A bunch of these layout cops are enabled by default,
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
@@ -1,3 +1,3 @@
1
1
  module NxtCop
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nxt_cop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Livingstone