nxt_cop 1.0.13 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +0 -1
- data/CHANGELOG.md +25 -0
- data/Gemfile.lock +22 -17
- data/default.yml +65 -4
- data/lib/nxt_cop/version.rb +1 -1
- data/nxt_cop.gemspec +2 -1
- metadata +26 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 172fe054c1e977717f59e9b5f592ca20b606ddc9298dd4e287ebed530fa40e1c
|
4
|
+
data.tar.gz: c2733ff291bb17007f4a43f0765145caebd0d53d65fb20edb28047c813ea51c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24748dc7001303cd13113f6435f4ea74e06b5ed54808ff2bfc13f217cbadba0d9a0975b9030a619cea632ef32a8cedbd197065fefbbdb924493496e04f61dec6
|
7
|
+
data.tar.gz: eabccde517710e8021fecbc31649d222f4196bc10b3961da641e7097510aaa5a5aea096cae17d35c764d38730fd50a0e01b47d80f9efe85d8dab4a156221f5eb
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
# v1.0.16 2022-07-07
|
2
|
+
|
3
|
+
## What's Changed
|
4
|
+
* Add RSpec/Focus cop ([#38](https://github.com/nxt-insurance/nxt_cop/pull/38))
|
5
|
+
* Configure recently added cops ([#39](https://github.com/nxt-insurance/nxt_cop/pull/39))
|
6
|
+
|
7
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.15...v1.0.16
|
8
|
+
|
9
|
+
# v1.0.15 2022-05-18
|
10
|
+
|
11
|
+
## What's Changed
|
12
|
+
* Don't enforce trailing comma in hash literals rule ([#30](https://github.com/nxt-insurance/nxt_cop/pull/30))
|
13
|
+
|
14
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.14...v1.0.15
|
15
|
+
|
16
|
+
# v1.0.14 2022-05-04
|
17
|
+
|
18
|
+
## What's Changed
|
19
|
+
* 🚨 [security] Upgrade rubocop: 0.92.0 → 1.25.1 (major) by @depfu in https://github.com/nxt-insurance/nxt_cop/pull/19
|
20
|
+
* Upgrade rubocop: 1.25.1 → 1.28.2 (minor) by @depfu in https://github.com/nxt-insurance/nxt_cop/pull/26
|
21
|
+
* Allow including repos use their own ruby version by @shalvah-gs in https://github.com/nxt-insurance/nxt_cop/pull/27
|
22
|
+
* Update rubocop-rails: 2.13.2 → 2.14.2 (minor) by @depfu in https://github.com/nxt-insurance/nxt_cop/pull/22
|
23
|
+
|
24
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.13...v1.0.14
|
25
|
+
|
1
26
|
# v1.0.12 2020-12-29
|
2
27
|
|
3
28
|
### Update Gems
|
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.16)
|
5
|
+
rubocop (~> 1.31.2)
|
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)
|
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
|
-
concurrent-ruby (1.1.
|
18
|
-
i18n (1.
|
18
|
+
concurrent-ruby (1.1.10)
|
19
|
+
i18n (1.10.0)
|
19
20
|
concurrent-ruby (~> 1.0)
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
json (2.6.2)
|
22
|
+
minitest (5.16.2)
|
23
|
+
parallel (1.22.1)
|
24
|
+
parser (3.1.2.0)
|
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.31.2)
|
32
|
+
json (~> 2.3)
|
30
33
|
parallel (~> 1.10)
|
31
34
|
parser (>= 3.1.0.0)
|
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.18.0, < 2.0)
|
36
39
|
ruby-progressbar (~> 1.7)
|
37
40
|
unicode-display_width (>= 1.4.0, < 3.0)
|
38
|
-
rubocop-ast (1.
|
39
|
-
parser (>= 3.
|
40
|
-
rubocop-rails (2.
|
41
|
+
rubocop-ast (1.18.0)
|
42
|
+
parser (>= 3.1.1.0)
|
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
50
|
tzinfo (2.0.4)
|
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/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
|
@@ -11,7 +13,6 @@ AllCops:
|
|
11
13
|
- db/migrate/*
|
12
14
|
- vendor/**/*
|
13
15
|
- node_modules/**/*
|
14
|
-
TargetRubyVersion: 2.6
|
15
16
|
DisabledByDefault: true
|
16
17
|
Layout/DotPosition:
|
17
18
|
EnforcedStyle: trailing
|
@@ -93,17 +94,77 @@ Style/StringLiterals:
|
|
93
94
|
Style/SymbolArray:
|
94
95
|
Enabled: true
|
95
96
|
Style/TrailingCommaInHashLiteral:
|
96
|
-
Enabled:
|
97
|
+
Enabled: false
|
97
98
|
Style/TrailingCommaInArguments:
|
98
99
|
Enabled: true
|
99
100
|
Style/WordArray:
|
100
101
|
Enabled: true
|
101
102
|
Style/HashSyntax:
|
102
103
|
Enabled: true
|
104
|
+
EnforcedShorthandSyntax: either
|
103
105
|
Security:
|
104
|
-
|
106
|
+
EnabledByDefault: true
|
105
107
|
Style/Semicolon:
|
106
108
|
Exclude:
|
107
109
|
- spec/**/*
|
108
110
|
Rails/TimeZone:
|
109
111
|
Enabled: true
|
112
|
+
RSpec:
|
113
|
+
Enabled: false
|
114
|
+
RSpec/Focus:
|
115
|
+
Enabled: true
|
116
|
+
Lint/AmbiguousAssignment:
|
117
|
+
Enabled: true
|
118
|
+
Lint/DeprecatedConstants:
|
119
|
+
Enabled: true
|
120
|
+
Lint/AmbiguousRange:
|
121
|
+
Enabled: true
|
122
|
+
Lint/AmbiguousOperatorPrecedence:
|
123
|
+
Enabled: true
|
124
|
+
Lint/TripleQuotes:
|
125
|
+
Enabled: true
|
126
|
+
Lint/ConstantOverwrittenInRescue:
|
127
|
+
Enabled: true
|
128
|
+
Lint/NonAtomicFileOperation:
|
129
|
+
Enabled: true
|
130
|
+
Lint/SymbolConversion:
|
131
|
+
Enabled: true
|
132
|
+
Lint/UnmodifiedReduceAccumulator:
|
133
|
+
Enabled: true
|
134
|
+
Lint/OrAssignmentToConstant:
|
135
|
+
Enabled: true
|
136
|
+
Lint/RedundantDirGlobSort:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
# These checks are valid, but better left to programmer's discretion, as the effects are harmless.
|
140
|
+
Lint/DuplicateBranch:
|
141
|
+
Enabled: false
|
142
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
143
|
+
Enabled: false
|
144
|
+
Lint/EmptyBlock:
|
145
|
+
Enabled: false
|
146
|
+
Lint/EmptyClass:
|
147
|
+
Enabled: false
|
148
|
+
Lint/EmptyInPattern:
|
149
|
+
Enabled: false
|
150
|
+
Lint/UnexpectedBlockArity:
|
151
|
+
Enabled: false
|
152
|
+
|
153
|
+
# These code patterns are rare/nonexistent in our code, so checking for them is a waste of time
|
154
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
155
|
+
Enabled: false
|
156
|
+
Lint/LambdaWithoutLiteralBlock:
|
157
|
+
Enabled: false
|
158
|
+
Lint/NoReturnInBeginEndBlocks:
|
159
|
+
Enabled: false
|
160
|
+
Lint/NumberedParameterAssignment:
|
161
|
+
Enabled: false
|
162
|
+
Lint/RefinementImportMethods:
|
163
|
+
Enabled: false
|
164
|
+
Lint/RequireRelativeSelfPath:
|
165
|
+
Enabled: false
|
166
|
+
Lint/ToEnumArguments:
|
167
|
+
Enabled: false
|
168
|
+
Lint/UselessRuby2Keywords:
|
169
|
+
Enabled: false
|
170
|
+
|
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.31.2'
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Livingstone
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-08 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.31.2
|
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.31.2
|
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
|
@@ -66,8 +80,8 @@ dependencies:
|
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '13.0'
|
69
|
-
description:
|
70
|
-
email:
|
83
|
+
description:
|
84
|
+
email:
|
71
85
|
executables: []
|
72
86
|
extensions: []
|
73
87
|
extra_rdoc_files: []
|
@@ -95,7 +109,7 @@ metadata:
|
|
95
109
|
homepage_uri: https://github.com/nxt-insurance/nxt_cop
|
96
110
|
source_code_uri: https://github.com/nxt-insurance/nxt_cop
|
97
111
|
changelog_uri: https://github.com/nxt-insurance/nxt_cop/CHANGELOG.md
|
98
|
-
post_install_message:
|
112
|
+
post_install_message:
|
99
113
|
rdoc_options: []
|
100
114
|
require_paths:
|
101
115
|
- lib
|
@@ -110,8 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
124
|
- !ruby/object:Gem::Version
|
111
125
|
version: '0'
|
112
126
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
-
signing_key:
|
127
|
+
rubygems_version: 3.3.11
|
128
|
+
signing_key:
|
115
129
|
specification_version: 4
|
116
130
|
summary: Getsafe shared Rubocop.
|
117
131
|
test_files: []
|