nxt_cop 1.0.14 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -1
- data/CHANGELOG.md +22 -0
- data/Gemfile.lock +21 -16
- data/README.md +10 -0
- data/default.yml +66 -3
- data/lib/nxt_cop/version.rb +1 -1
- data/nxt_cop.gemspec +2 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64310b05a2d784b51686df4dc7cc35e81e9ebe0b575b817bb9a4265fa8f5fe7e
|
4
|
+
data.tar.gz: 56eb0b4ac48e95508c4e042ec72e02f2c7f8f74b227cecb8f3aa7cd58aa17061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba56942235bc0f2e67aaf6dbde527320cdb253e7ddbd790cdbfd1f6b98110a8dc53b325e63a52ad8ab1f312d55742ff4fb534cbc6c197fc48dff9d917d7d93b1
|
7
|
+
data.tar.gz: 3468be10fb701f0bf42343b1d50abf83765ec8f7b6fc10937954a4f0e355d060550024cd39995777ed36557da799b3670c15b83fff16f8918a3cdf61dbddd618
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
# v1.0.17 2022-08-19
|
2
|
+
|
3
|
+
## What's Changed
|
4
|
+
* Adjust severity of the recently added Lint/SymbolConversion cop ([#45](https://github.com/nxt-insurance/nxt_cop/pull/45))
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.15...v1.0.16
|
7
|
+
|
8
|
+
# v1.0.16 2022-07-07
|
9
|
+
|
10
|
+
## What's Changed
|
11
|
+
* Add RSpec/Focus cop ([#38](https://github.com/nxt-insurance/nxt_cop/pull/38))
|
12
|
+
* Configure recently added cops ([#39](https://github.com/nxt-insurance/nxt_cop/pull/39))
|
13
|
+
|
14
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.15...v1.0.16
|
15
|
+
|
16
|
+
# v1.0.15 2022-05-18
|
17
|
+
|
18
|
+
## What's Changed
|
19
|
+
* Don't enforce trailing comma in hash literals rule ([#30](https://github.com/nxt-insurance/nxt_cop/pull/30))
|
20
|
+
|
21
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.14...v1.0.15
|
22
|
+
|
1
23
|
# v1.0.14 2022-05-04
|
2
24
|
|
3
25
|
## What's Changed
|
data/Gemfile.lock
CHANGED
@@ -1,50 +1,55 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nxt_cop (1.0.
|
5
|
-
rubocop (
|
4
|
+
nxt_cop (1.0.17)
|
5
|
+
rubocop (~> 1.35.0)
|
6
6
|
rubocop-rails (~> 2.8)
|
7
|
+
rubocop-rspec (~> 2.12)
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
activesupport (7.0.
|
12
|
+
activesupport (7.0.3.1)
|
12
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
14
|
i18n (>= 1.6, < 2)
|
14
15
|
minitest (>= 5.1)
|
15
16
|
tzinfo (~> 2.0)
|
16
17
|
ast (2.4.2)
|
17
18
|
concurrent-ruby (1.1.10)
|
18
|
-
i18n (1.
|
19
|
+
i18n (1.12.0)
|
19
20
|
concurrent-ruby (~> 1.0)
|
20
|
-
|
21
|
+
json (2.6.2)
|
22
|
+
minitest (5.16.3)
|
21
23
|
parallel (1.22.1)
|
22
|
-
parser (3.1.2.
|
24
|
+
parser (3.1.2.1)
|
23
25
|
ast (~> 2.4.1)
|
24
|
-
rack (2.2.
|
26
|
+
rack (2.2.4)
|
25
27
|
rainbow (3.1.1)
|
26
28
|
rake (13.0.6)
|
27
|
-
regexp_parser (2.
|
29
|
+
regexp_parser (2.5.0)
|
28
30
|
rexml (3.2.5)
|
29
|
-
rubocop (1.
|
31
|
+
rubocop (1.35.0)
|
32
|
+
json (~> 2.3)
|
30
33
|
parallel (~> 1.10)
|
31
|
-
parser (>= 3.1.
|
34
|
+
parser (>= 3.1.2.1)
|
32
35
|
rainbow (>= 2.2.2, < 4.0)
|
33
36
|
regexp_parser (>= 1.8, < 3.0)
|
34
|
-
rexml
|
35
|
-
rubocop-ast (>= 1.
|
37
|
+
rexml (>= 3.2.5, < 4.0)
|
38
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
36
39
|
ruby-progressbar (~> 1.7)
|
37
40
|
unicode-display_width (>= 1.4.0, < 3.0)
|
38
|
-
rubocop-ast (1.
|
41
|
+
rubocop-ast (1.21.0)
|
39
42
|
parser (>= 3.1.1.0)
|
40
|
-
rubocop-rails (2.
|
43
|
+
rubocop-rails (2.15.2)
|
41
44
|
activesupport (>= 4.2.0)
|
42
45
|
rack (>= 1.1)
|
43
46
|
rubocop (>= 1.7.0, < 2.0)
|
47
|
+
rubocop-rspec (2.12.1)
|
48
|
+
rubocop (~> 1.31)
|
44
49
|
ruby-progressbar (1.11.0)
|
45
|
-
tzinfo (2.0.
|
50
|
+
tzinfo (2.0.5)
|
46
51
|
concurrent-ruby (~> 1.0)
|
47
|
-
unicode-display_width (2.
|
52
|
+
unicode-display_width (2.2.0)
|
48
53
|
|
49
54
|
PLATFORMS
|
50
55
|
ruby
|
data/README.md
CHANGED
@@ -65,6 +65,16 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
65
65
|
|
66
66
|
## Release a new version
|
67
67
|
|
68
|
+
```shell
|
69
|
+
bundle config set gem.push_key rubygems
|
70
|
+
```
|
71
|
+
|
72
|
+
Add to `~/.gem/credentials` (create if it doesn't exist):
|
73
|
+
|
74
|
+
```shell
|
75
|
+
:rubygems: <your Rubygems API key>
|
76
|
+
```
|
77
|
+
|
68
78
|
To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
69
79
|
|
70
80
|
## Contributing
|
data/default.yml
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
require:
|
1
|
+
require:
|
2
|
+
- rubocop-rails
|
3
|
+
- rubocop-rspec
|
2
4
|
AllCops:
|
3
5
|
Exclude:
|
4
6
|
# generated files
|
@@ -75,6 +77,8 @@ Lint/SelfAssignment:
|
|
75
77
|
Enabled: true
|
76
78
|
Lint/StructNewOverride:
|
77
79
|
Enabled: true
|
80
|
+
Lint/SymbolConversion:
|
81
|
+
EnforcedStyle: consistent
|
78
82
|
Lint/TopLevelReturnWithArgument:
|
79
83
|
Enabled: true
|
80
84
|
Lint/TrailingCommaInAttributeDeclaration:
|
@@ -92,7 +96,7 @@ Style/StringLiterals:
|
|
92
96
|
Style/SymbolArray:
|
93
97
|
Enabled: true
|
94
98
|
Style/TrailingCommaInHashLiteral:
|
95
|
-
Enabled:
|
99
|
+
Enabled: false
|
96
100
|
Style/TrailingCommaInArguments:
|
97
101
|
Enabled: true
|
98
102
|
Style/WordArray:
|
@@ -101,9 +105,68 @@ Style/HashSyntax:
|
|
101
105
|
Enabled: true
|
102
106
|
EnforcedShorthandSyntax: either
|
103
107
|
Security:
|
104
|
-
|
108
|
+
EnabledByDefault: true
|
105
109
|
Style/Semicolon:
|
106
110
|
Exclude:
|
107
111
|
- spec/**/*
|
108
112
|
Rails/TimeZone:
|
109
113
|
Enabled: true
|
114
|
+
RSpec:
|
115
|
+
Enabled: false
|
116
|
+
RSpec/Focus:
|
117
|
+
Enabled: true
|
118
|
+
Lint/AmbiguousAssignment:
|
119
|
+
Enabled: true
|
120
|
+
Lint/DeprecatedConstants:
|
121
|
+
Enabled: true
|
122
|
+
Lint/AmbiguousRange:
|
123
|
+
Enabled: true
|
124
|
+
Lint/AmbiguousOperatorPrecedence:
|
125
|
+
Enabled: true
|
126
|
+
Lint/TripleQuotes:
|
127
|
+
Enabled: true
|
128
|
+
Lint/ConstantOverwrittenInRescue:
|
129
|
+
Enabled: true
|
130
|
+
Lint/NonAtomicFileOperation:
|
131
|
+
Enabled: true
|
132
|
+
Lint/UnmodifiedReduceAccumulator:
|
133
|
+
Enabled: true
|
134
|
+
Lint/OrAssignmentToConstant:
|
135
|
+
Enabled: true
|
136
|
+
Lint/RedundantDirGlobSort:
|
137
|
+
Enabled: true
|
138
|
+
Lint/RequireRangeParentheses:
|
139
|
+
Enabled: true
|
140
|
+
|
141
|
+
# These checks are valid, but better left to programmer's discretion, as the effects of such code are harmless.
|
142
|
+
Lint/DuplicateBranch:
|
143
|
+
Enabled: false
|
144
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
145
|
+
Enabled: false
|
146
|
+
Lint/EmptyBlock:
|
147
|
+
Enabled: false
|
148
|
+
Lint/EmptyClass:
|
149
|
+
Enabled: false
|
150
|
+
Lint/EmptyInPattern:
|
151
|
+
Enabled: false
|
152
|
+
Lint/UnexpectedBlockArity:
|
153
|
+
Enabled: false
|
154
|
+
|
155
|
+
# These code patterns are rare/nonexistent in our code, so checking for them is a waste of time
|
156
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
157
|
+
Enabled: false
|
158
|
+
Lint/LambdaWithoutLiteralBlock:
|
159
|
+
Enabled: false
|
160
|
+
Lint/NoReturnInBeginEndBlocks:
|
161
|
+
Enabled: false
|
162
|
+
Lint/NumberedParameterAssignment:
|
163
|
+
Enabled: false
|
164
|
+
Lint/RefinementImportMethods:
|
165
|
+
Enabled: false
|
166
|
+
Lint/RequireRelativeSelfPath:
|
167
|
+
Enabled: false
|
168
|
+
Lint/ToEnumArguments:
|
169
|
+
Enabled: false
|
170
|
+
Lint/UselessRuby2Keywords:
|
171
|
+
Enabled: false
|
172
|
+
|
data/lib/nxt_cop/version.rb
CHANGED
data/nxt_cop.gemspec
CHANGED
@@ -32,8 +32,9 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ['lib']
|
34
34
|
|
35
|
-
spec.add_dependency 'rubocop', '1.
|
35
|
+
spec.add_dependency 'rubocop', '~> 1.35.0'
|
36
36
|
spec.add_dependency 'rubocop-rails', '~> 2.8'
|
37
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.12'
|
37
38
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
38
39
|
spec.add_development_dependency 'rake', '~> 13.0'
|
39
40
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nxt_cop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Livingstone
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.35.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.35.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.12'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.12'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|