nxt_cop 1.0.19 → 1.1.1

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: 776b1471e620c2f1474a9583ab2c628d21eb85050137cde4b4b6e13ad2c06bf4
4
- data.tar.gz: 1c04eb15f2c589ce51368ab93195c8695b41738489ffbfdf577dc567261dac5d
3
+ metadata.gz: 6112111fba4374f2a6b3e77138ca365affbcae5970e6f7a92810686afe2b48f4
4
+ data.tar.gz: 6de5fe935225f782701848106935879661176c05268c556eca5839382c4e5180
5
5
  SHA512:
6
- metadata.gz: ccadcf8126fed669f138ed255b709d0ef10d734e64983251690dcd012b27c8ffd681e0ebe4d7236e56321f96b72bf843df3adc7f11c98a7da4d48d8b58e68a86
7
- data.tar.gz: 5b34adebc0e4eea7195c55b2e206037286d0a7d38b16303fb39d397f49ac04c0e1802671ccecd5daa725f19282fd926a0899cb5499e371b838faf7b05123f0a6
6
+ metadata.gz: 1905c5002d100702f6df402b5c1d6e05f8c05e5c88638179148c4affbf7699b6add7c3fa4d5cab2efc7cf2ae1560c4308cdcec78b7716051277b8e1f77edd432
7
+ data.tar.gz: ffdd34e5872c47f2f50d39109556164ba04e760a949cc2c06ac735e1f8f56c7871726798fb8b9f5f4cccacacac62586e4dadd7a437014b60fca7782e91110b7e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # v1.1.1 2023-05-23
2
+ ## What's Changed
3
+ * Add `Lint/DuplicateMatchPattern`
4
+ * Add `Layout/EmptyLineAfterMagicComment`
5
+
6
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.1.0...v1.1.1
7
+
8
+ # v1.1.0 2023-05-05
9
+ ## What's Changed
10
+ * Change `DotPosition` to enforce leading dots for method invocation
11
+ * Add multiple autocorrectable layout cops
12
+
13
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.19...v1.1.0
14
+
1
15
  # v1.0.19 2023-04-04
2
16
 
3
17
  ## What's Changed
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_cop (1.0.19)
5
- rubocop (~> 1.49.0)
4
+ nxt_cop (1.1.1)
5
+ rubocop (~> 1.51.0)
6
6
  rubocop-rails (~> 2.8)
7
7
  rubocop-rspec (~> 2.12)
8
8
 
@@ -16,19 +16,19 @@ GEM
16
16
  tzinfo (~> 2.0)
17
17
  ast (2.4.2)
18
18
  concurrent-ruby (1.2.2)
19
- i18n (1.12.0)
19
+ i18n (1.13.0)
20
20
  concurrent-ruby (~> 1.0)
21
21
  json (2.6.3)
22
22
  minitest (5.18.0)
23
- parallel (1.22.1)
24
- parser (3.2.2.0)
23
+ parallel (1.23.0)
24
+ parser (3.2.2.1)
25
25
  ast (~> 2.4.1)
26
26
  rack (3.0.7)
27
27
  rainbow (3.1.1)
28
28
  rake (13.0.6)
29
- regexp_parser (2.7.0)
29
+ regexp_parser (2.8.0)
30
30
  rexml (3.2.5)
31
- rubocop (1.49.0)
31
+ rubocop (1.51.0)
32
32
  json (~> 2.3)
33
33
  parallel (~> 1.10)
34
34
  parser (>= 3.2.0.0)
@@ -38,17 +38,20 @@ GEM
38
38
  rubocop-ast (>= 1.28.0, < 2.0)
39
39
  ruby-progressbar (~> 1.7)
40
40
  unicode-display_width (>= 2.4.0, < 3.0)
41
- rubocop-ast (1.28.0)
41
+ rubocop-ast (1.28.1)
42
42
  parser (>= 3.2.1.0)
43
- rubocop-capybara (2.17.1)
43
+ rubocop-capybara (2.18.0)
44
44
  rubocop (~> 1.41)
45
- rubocop-rails (2.18.0)
45
+ rubocop-factory_bot (2.23.1)
46
+ rubocop (~> 1.33)
47
+ rubocop-rails (2.19.1)
46
48
  activesupport (>= 4.2.0)
47
49
  rack (>= 1.1)
48
50
  rubocop (>= 1.33.0, < 2.0)
49
- rubocop-rspec (2.19.0)
51
+ rubocop-rspec (2.22.0)
50
52
  rubocop (~> 1.33)
51
53
  rubocop-capybara (~> 2.17)
54
+ rubocop-factory_bot (~> 2.22)
52
55
  ruby-progressbar (1.13.0)
53
56
  tzinfo (2.0.6)
54
57
  concurrent-ruby (~> 1.0)
data/default.yml CHANGED
@@ -3,7 +3,6 @@ require:
3
3
  - rubocop-rspec
4
4
  AllCops:
5
5
  Exclude:
6
- # generated files
7
6
  - bin/guard
8
7
  - bin/rspec
9
8
  - bin/rubocop
@@ -15,16 +14,78 @@ AllCops:
15
14
  - node_modules/**/*
16
15
  DisabledByDefault: true
17
16
 
17
+ # A bunch of these layout cops are enabled by default,
18
+ # but for some reason 'DisableByDefault' is set to 'true' above.
19
+ # Removing this configuration leads to a lot of violations triggered
20
+ # by other cops that are not auto-correctable.
21
+ Layout/ArgumentAlignment:
22
+ EnforcedStyle: with_fixed_indentation
23
+ Layout/ArrayAlignment:
24
+ EnforcedStyle: with_fixed_indentation
25
+ Layout/HashAlignment:
26
+ EnforcedHashRocketStyle: key
27
+ Layout/ParameterAlignment:
28
+ EnforcedStyle: with_fixed_indentation
29
+ Layout/MultilineArrayLineBreaks:
30
+ Enabled: true
31
+ Layout/MultilineBlockLayout:
32
+ Enabled: true
33
+ Layout/MultilineHashKeyLineBreaks:
34
+ Enabled: true
35
+ Layout/MultilineHashBraceLayout:
36
+ Enabled: true
37
+ Layout/FirstMethodArgumentLineBreak:
38
+ Enabled: true
39
+ Layout/MultilineMethodCallBraceLayout:
40
+ EnforcedStyle: new_line
41
+ Layout/MultilineMethodCallIndentation:
42
+ EnforcedStyle: indented
43
+ Layout/MultilineMethodDefinitionBraceLayout:
44
+ EnforcedStyle: new_line
45
+ Layout/SpaceAroundOperators:
46
+ AllowForAlignment: false
47
+ Layout/SpaceBeforeBrackets:
48
+ Enabled: true
49
+ Layout/FirstMethodParameterLineBreak:
50
+ Enabled: true
51
+ Layout/EndAlignment:
52
+ EnforcedStyleAlignWith: start_of_line
53
+ Layout/BlockAlignment:
54
+ EnforcedStyleAlignWith: start_of_block
55
+ Layout/FirstHashElementLineBreak:
56
+ Enabled: true
57
+ Layout/FirstArrayElementIndentation:
58
+ EnforcedStyle: consistent
59
+ Layout/FirstArrayElementLineBreak:
60
+ Enabled: true
61
+ Layout/IndentationWidth:
62
+ Enabled: true
63
+ Layout/ClosingParenthesisIndentation:
64
+ Enabled: true
65
+ Layout/FirstArgumentIndentation:
66
+ Enabled: true
67
+ Layout/ElseAlignment:
68
+ Enabled: true
69
+ Layout/FirstHashElementIndentation:
70
+ Enabled: true
71
+ Layout/AssignmentIndentation:
72
+ Enabled: true
73
+ Layout/CaseIndentation:
74
+ Enabled: true
75
+ Layout/MultilineArrayBraceLayout:
76
+ Enabled: true
77
+ Layout/BeginEndAlignment:
78
+ Enabled: true
79
+ Layout/CommentIndentation:
80
+ Enabled: true
18
81
  Layout/DotPosition:
19
- EnforcedStyle: trailing
82
+ EnforcedStyle: leading
20
83
  Layout/EmptyLineAfterGuardClause:
21
84
  Enabled: true
22
85
  Layout/IndentationConsistency:
23
86
  Enabled: true
24
- Layout/IndentationStyle:
87
+ Layout/MultilineMethodParameterLineBreaks:
25
88
  Enabled: true
26
- Layout/MultilineMethodCallIndentation:
27
- EnforcedStyle: indented_relative_to_receiver
28
89
  Layout/SpaceBeforeBlockBraces:
29
90
  Enabled: true
30
91
  Layout/SpaceInsideBlockBraces:
@@ -45,6 +106,8 @@ Layout/SpaceAfterComma:
45
106
  Enabled: true
46
107
  Layout/EmptyLines:
47
108
  Enabled: true
109
+ Layout/EmptyLineAfterMagicComment:
110
+ Enabled: true
48
111
 
49
112
  Lint:
50
113
  Enabled: true
@@ -179,4 +242,9 @@ Lint/ToEnumArguments:
179
242
  Enabled: false
180
243
  Lint/UselessRuby2Keywords:
181
244
  Enabled: false
182
-
245
+ Lint/DuplicateMagicComment:
246
+ Enabled: true
247
+ Lint/UselessRescue:
248
+ Enabled: false
249
+ Lint/DuplicateMatchPattern:
250
+ Enabled: true
@@ -1,3 +1,3 @@
1
1
  module NxtCop
2
- VERSION = '1.0.19'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
data/nxt_cop.gemspec CHANGED
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'nxt_cop/version'
@@ -32,7 +31,7 @@ Gem::Specification.new do |spec|
32
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
32
  spec.require_paths = ['lib']
34
33
 
35
- spec.add_dependency 'rubocop', '~> 1.49.0'
34
+ spec.add_dependency 'rubocop', '~> 1.51.0'
36
35
  spec.add_dependency 'rubocop-rails', '~> 2.8'
37
36
  spec.add_dependency 'rubocop-rspec', '~> 2.12'
38
37
  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: 1.0.19
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Livingstone
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-05-23 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.49.0
19
+ version: 1.51.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.49.0
26
+ version: 1.51.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.4.6
127
+ rubygems_version: 3.4.10
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Getsafe shared Rubocop.