nxt_cop 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +18 -18
- data/default.yml +34 -0
- data/lib/nxt_cop/version.rb +1 -1
- data/nxt_cop.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbd4cf87a6cdec2af74789d277deed6b7827251b00237a6aa031bcafabef5737
|
|
4
|
+
data.tar.gz: 1edc20eb4e39f0f7d9a9e3e9b9d2c770b4fc7817a2b3e8814dd87132770947b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51e915c704f32e3fa571b3cc3e8dd4d5d57d09fad40e81010424b75b85ddc06e6c5e12f8ee7a3efc059787cd2802d42d68fa55e379223390a46705921cb7fb65
|
|
7
|
+
data.tar.gz: 7f34022a50fa24a7536ce367e018880d033b6a5cc6c247a50ed89c97b0cde2c0721f9992e28344ff10b54d83b6028592883d18341fbd5a7b80d36578b62ca19e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v2.0.2 2024-01-10
|
|
2
|
+
## What's Changed
|
|
3
|
+
* Disable more cops depending on the code style in our backend-services
|
|
4
|
+
|
|
5
|
+
* **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v2.0.1...v2.0.2
|
|
6
|
+
|
|
7
|
+
# v2.0.1 2024-01-10
|
|
8
|
+
## What's Changed
|
|
9
|
+
* Disable more cops depending on the code style in our backend-services
|
|
10
|
+
|
|
11
|
+
* **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v2.0.0...v2.0.1
|
|
12
|
+
|
|
1
13
|
# v2.0.0 2023-11-28
|
|
2
14
|
## What's Changed
|
|
3
15
|
* Enabled all cops by default
|
data/Gemfile.lock
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nxt_cop (2.0.
|
|
5
|
-
rubocop (~> 1.
|
|
4
|
+
nxt_cop (2.0.2)
|
|
5
|
+
rubocop (~> 1.60.0)
|
|
6
6
|
rubocop-rails (~> 2.8)
|
|
7
7
|
rubocop-rspec (~> 2.12)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activesupport (7.1.
|
|
12
|
+
activesupport (7.1.3)
|
|
13
13
|
base64
|
|
14
14
|
bigdecimal
|
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
@@ -21,50 +21,50 @@ GEM
|
|
|
21
21
|
tzinfo (~> 2.0)
|
|
22
22
|
ast (2.4.2)
|
|
23
23
|
base64 (0.2.0)
|
|
24
|
-
bigdecimal (3.1.
|
|
25
|
-
concurrent-ruby (1.2.
|
|
24
|
+
bigdecimal (3.1.6)
|
|
25
|
+
concurrent-ruby (1.2.3)
|
|
26
26
|
connection_pool (2.4.1)
|
|
27
27
|
drb (2.2.0)
|
|
28
28
|
ruby2_keywords
|
|
29
29
|
i18n (1.14.1)
|
|
30
30
|
concurrent-ruby (~> 1.0)
|
|
31
|
-
json (2.
|
|
31
|
+
json (2.7.1)
|
|
32
32
|
language_server-protocol (3.17.0.3)
|
|
33
|
-
minitest (5.
|
|
33
|
+
minitest (5.21.2)
|
|
34
34
|
mutex_m (0.2.0)
|
|
35
|
-
parallel (1.
|
|
36
|
-
parser (3.
|
|
35
|
+
parallel (1.24.0)
|
|
36
|
+
parser (3.3.0.4)
|
|
37
37
|
ast (~> 2.4.1)
|
|
38
38
|
racc
|
|
39
39
|
racc (1.7.3)
|
|
40
40
|
rack (3.0.8)
|
|
41
41
|
rainbow (3.1.1)
|
|
42
42
|
rake (13.1.0)
|
|
43
|
-
regexp_parser (2.
|
|
43
|
+
regexp_parser (2.9.0)
|
|
44
44
|
rexml (3.2.6)
|
|
45
|
-
rubocop (1.
|
|
45
|
+
rubocop (1.60.1)
|
|
46
46
|
json (~> 2.3)
|
|
47
47
|
language_server-protocol (>= 3.17.0)
|
|
48
48
|
parallel (~> 1.10)
|
|
49
|
-
parser (>= 3.
|
|
49
|
+
parser (>= 3.3.0.2)
|
|
50
50
|
rainbow (>= 2.2.2, < 4.0)
|
|
51
51
|
regexp_parser (>= 1.8, < 3.0)
|
|
52
52
|
rexml (>= 3.2.5, < 4.0)
|
|
53
|
-
rubocop-ast (>= 1.
|
|
53
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
|
54
54
|
ruby-progressbar (~> 1.7)
|
|
55
55
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
56
56
|
rubocop-ast (1.30.0)
|
|
57
57
|
parser (>= 3.2.1.0)
|
|
58
|
-
rubocop-capybara (2.
|
|
58
|
+
rubocop-capybara (2.20.0)
|
|
59
|
+
rubocop (~> 1.41)
|
|
60
|
+
rubocop-factory_bot (2.25.1)
|
|
59
61
|
rubocop (~> 1.41)
|
|
60
|
-
rubocop-
|
|
61
|
-
rubocop (~> 1.33)
|
|
62
|
-
rubocop-rails (2.22.2)
|
|
62
|
+
rubocop-rails (2.23.1)
|
|
63
63
|
activesupport (>= 4.2.0)
|
|
64
64
|
rack (>= 1.1)
|
|
65
65
|
rubocop (>= 1.33.0, < 2.0)
|
|
66
66
|
rubocop-ast (>= 1.30.0, < 2.0)
|
|
67
|
-
rubocop-rspec (2.
|
|
67
|
+
rubocop-rspec (2.26.1)
|
|
68
68
|
rubocop (~> 1.40)
|
|
69
69
|
rubocop-capybara (~> 2.17)
|
|
70
70
|
rubocop-factory_bot (~> 2.22)
|
data/default.yml
CHANGED
|
@@ -429,6 +429,40 @@ Style/RedundantInterpolation:
|
|
|
429
429
|
Enabled: false
|
|
430
430
|
Style/ZeroLengthPredicate:
|
|
431
431
|
Enabled: false
|
|
432
|
+
Style/NegatedIf: # sometimes "if !var" just reads better
|
|
433
|
+
Enabled: false
|
|
434
|
+
Style/NilComparison: # we don't have a good reason to enforce this
|
|
435
|
+
Enabled: false
|
|
436
|
+
Style/GlobalStdStream: # autocorrection is unsafe because STDOUT and $stdout may point to different objects
|
|
437
|
+
Enabled: false
|
|
438
|
+
Style/MultilineTernaryOperator:
|
|
439
|
+
Enabled: false
|
|
440
|
+
Style/RedundantReturn:
|
|
441
|
+
Enabled: false
|
|
442
|
+
Style/ClassCheck:
|
|
443
|
+
Enabled: false
|
|
444
|
+
Style/LineEndConcatenation:
|
|
445
|
+
Enabled: false
|
|
446
|
+
Style/RedundantFetchBlock:
|
|
447
|
+
Enabled: false
|
|
448
|
+
Style/FloatDivision:
|
|
449
|
+
Enabled: false
|
|
450
|
+
Layout/MultilineOperationIndentation:
|
|
451
|
+
Enabled: false
|
|
452
|
+
Style/SoleNestedConditional:
|
|
453
|
+
Enabled: false
|
|
454
|
+
Rails/FindEach:
|
|
455
|
+
Enabled: false
|
|
456
|
+
Style/RedundantParentheses:
|
|
457
|
+
Enabled: false
|
|
458
|
+
Style/IfInsideElse:
|
|
459
|
+
Enabled: false
|
|
460
|
+
Style/EmptyCaseCondition:
|
|
461
|
+
Enabled: false
|
|
462
|
+
Style/TernaryParentheses:
|
|
463
|
+
EnforcedStyle: require_parentheses_when_complex
|
|
464
|
+
Style/HashLikeCase:
|
|
465
|
+
Enabled: false
|
|
432
466
|
|
|
433
467
|
# 🤔 Should we enable these cops or not? They look useful but require alignment within the team
|
|
434
468
|
Style/OpenStructUse:
|
data/lib/nxt_cop/version.rb
CHANGED
data/nxt_cop.gemspec
CHANGED
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
|
|
34
34
|
spec.required_ruby_version = '>= 3.2'
|
|
35
35
|
|
|
36
|
-
spec.add_dependency 'rubocop', '~> 1.
|
|
36
|
+
spec.add_dependency 'rubocop', '~> 1.60.0'
|
|
37
37
|
spec.add_dependency 'rubocop-rails', '~> 2.8'
|
|
38
38
|
spec.add_dependency 'rubocop-rspec', '~> 2.12'
|
|
39
39
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
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.0.
|
|
4
|
+
version: 2.0.2
|
|
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-01-
|
|
11
|
+
date: 2024-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: 1.60.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
26
|
+
version: 1.60.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-rails
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|