nxt_cop 1.0.15 → 1.0.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efa9b8c9814cf6ad986c1fb4c6ed929c763a10edbf1ac76ae4ff7b8d1f50b861
4
- data.tar.gz: 651d2007d4e70d1fea8390999c8bcef2eb653aea3a713194bfdb99f9f4ec8770
3
+ metadata.gz: 172fe054c1e977717f59e9b5f592ca20b606ddc9298dd4e287ebed530fa40e1c
4
+ data.tar.gz: c2733ff291bb17007f4a43f0765145caebd0d53d65fb20edb28047c813ea51c3
5
5
  SHA512:
6
- metadata.gz: 15da21fc7baf7a789d033d37f2262986b0880521feb1bb44a43322240b6208ec099bb7af8518097a8ecbcb38f6cf6079a76be83338bbd86f89d4e9edc9ac1a71
7
- data.tar.gz: bea53d38306ead281a51a5a0b2e8e7d3f754a6fd832ac5b874ebcee7ab221a08eec60299b015f8ee4c5166a962050b8a719c0b091a9c0a343b56dbe6bb5aa780
6
+ metadata.gz: 24748dc7001303cd13113f6435f4ea74e06b5ed54808ff2bfc13f217cbadba0d9a0975b9030a619cea632ef32a8cedbd197065fefbbdb924493496e04f61dec6
7
+ data.tar.gz: eabccde517710e8021fecbc31649d222f4196bc10b3961da641e7097510aaa5a5aea096cae17d35c764d38730fd50a0e01b47d80f9efe85d8dab4a156221f5eb
data/.rubocop.yml CHANGED
@@ -1,2 +1 @@
1
1
  inherit_from: default.yml
2
- require: rubocop-rails
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
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
+
1
9
  # v1.0.15 2022-05-18
2
10
 
3
11
  ## What's Changed
data/Gemfile.lock CHANGED
@@ -1,14 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_cop (1.0.15)
5
- rubocop (= 1.28.2)
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.2.4)
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)
@@ -17,34 +18,38 @@ GEM
17
18
  concurrent-ruby (1.1.10)
18
19
  i18n (1.10.0)
19
20
  concurrent-ruby (~> 1.0)
20
- minitest (5.15.0)
21
+ json (2.6.2)
22
+ minitest (5.16.2)
21
23
  parallel (1.22.1)
22
24
  parser (3.1.2.0)
23
25
  ast (~> 2.4.1)
24
- rack (2.2.3)
26
+ rack (2.2.4)
25
27
  rainbow (3.1.1)
26
28
  rake (13.0.6)
27
- regexp_parser (2.3.1)
29
+ regexp_parser (2.5.0)
28
30
  rexml (3.2.5)
29
- rubocop (1.28.2)
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.17.0, < 2.0)
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.17.0)
41
+ rubocop-ast (1.18.0)
39
42
  parser (>= 3.1.1.0)
40
- rubocop-rails (2.14.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
50
  tzinfo (2.0.4)
46
51
  concurrent-ruby (~> 1.0)
47
- unicode-display_width (2.1.0)
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: rubocop-rails
1
+ require:
2
+ - rubocop-rails
3
+ - rubocop-rspec
2
4
  AllCops:
3
5
  Exclude:
4
6
  # generated files
@@ -101,9 +103,68 @@ Style/HashSyntax:
101
103
  Enabled: true
102
104
  EnforcedShorthandSyntax: either
103
105
  Security:
104
- Enabled: true
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
+
@@ -1,3 +1,3 @@
1
1
  module NxtCop
2
- VERSION = '1.0.15'.freeze
2
+ VERSION = '1.0.16'.freeze
3
3
  end
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.28.2'
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.15
4
+ version: 1.0.16
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-05-18 00:00:00.000000000 Z
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.28.2
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.28.2
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