nxt_cop 1.0.18 → 1.1.0

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: 6e74a264746f59bb552116446bddd4bef5a845e348ecc0e0f6c0d836c972130f
4
- data.tar.gz: decc3193febf8c9e6cae676e9caf3b44f4f6e9c9a49a9fe6c65249e26f4280c5
3
+ metadata.gz: 5067903d2ae9b6e7152a4930cf9d57429bc967c075c6ead08428bc0ff2e57d87
4
+ data.tar.gz: 82025fde4add3e81410debc65d1ea2af0bd37d60ac4f23be098808dec4dd449a
5
5
  SHA512:
6
- metadata.gz: 175aed4523a2b4de34251cdc8afe873617f342f1773da0fc3e1d7c077cbd1e1bde4cf12755551c01f3f6854bd4e95aa75f69a2cc8fe7c4ccd5056293d698bc69
7
- data.tar.gz: 6c160ad53d81f080cdf61cb3e7bfb6910a6e0b4b1bea4deb28a9bf6e46a4ee58edac5aebfe34788e9a29f6b515872106e5c3107e1955673a51df573c56a5c372
6
+ metadata.gz: 2adb3e5920db48cfc408bf35601b9abc155422c01845693123020d7d3c85fce4aabe93248f23933f22dfd95cb90f28c49c43f19a19a52d20c74c6fdc1cf36ec7
7
+ data.tar.gz: 72b6cf17080228f8eb4853125940eeee87b342c52777db1d1127992bdca09d31fe471daa590a27ec3ed8a5d580aefca4a8bab55548507234277c716e204eee94
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v1.1.0 2023-05-05
2
+ ## What's Changed
3
+ * Change `DotPosition` to enforce leading dots for method invocation
4
+ * Add multiple autocorrectable layout cops
5
+
6
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.19...v1.1.0
7
+
8
+ # v1.0.19 2023-04-04
9
+
10
+ ## What's Changed
11
+ * Add `Layout/SpaceBeforeComma`
12
+ * Add `Layout/SpaceAfterComma`
13
+ * Add `Layout/EmptyLines` cops ([#80](https://github.com/nxt-insurance/nxt_cop/pull/80))
14
+
15
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.18...v1.0.19
16
+
1
17
  # v1.0.18
2
18
 
3
19
  ## What's Changed
data/Gemfile.lock CHANGED
@@ -1,55 +1,61 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_cop (1.0.18)
5
- rubocop (~> 1.35.0)
4
+ nxt_cop (1.1.0)
5
+ rubocop (~> 1.50.2)
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.0.4)
12
+ activesupport (7.0.4.3)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
17
  ast (2.4.2)
18
- concurrent-ruby (1.1.10)
19
- i18n (1.12.0)
18
+ concurrent-ruby (1.2.2)
19
+ i18n (1.13.0)
20
20
  concurrent-ruby (~> 1.0)
21
- json (2.6.2)
22
- minitest (5.16.3)
23
- parallel (1.22.1)
24
- parser (3.1.2.1)
21
+ json (2.6.3)
22
+ minitest (5.18.0)
23
+ parallel (1.23.0)
24
+ parser (3.2.2.1)
25
25
  ast (~> 2.4.1)
26
- rack (3.0.0)
26
+ rack (3.0.7)
27
27
  rainbow (3.1.1)
28
28
  rake (13.0.6)
29
- regexp_parser (2.6.0)
29
+ regexp_parser (2.8.0)
30
30
  rexml (3.2.5)
31
- rubocop (1.35.1)
31
+ rubocop (1.50.2)
32
32
  json (~> 2.3)
33
33
  parallel (~> 1.10)
34
- parser (>= 3.1.2.1)
34
+ parser (>= 3.2.0.0)
35
35
  rainbow (>= 2.2.2, < 4.0)
36
36
  regexp_parser (>= 1.8, < 3.0)
37
37
  rexml (>= 3.2.5, < 4.0)
38
- rubocop-ast (>= 1.20.1, < 2.0)
38
+ rubocop-ast (>= 1.28.0, < 2.0)
39
39
  ruby-progressbar (~> 1.7)
40
- unicode-display_width (>= 1.4.0, < 3.0)
41
- rubocop-ast (1.21.0)
42
- parser (>= 3.1.1.0)
43
- rubocop-rails (2.16.1)
40
+ unicode-display_width (>= 2.4.0, < 3.0)
41
+ rubocop-ast (1.28.1)
42
+ parser (>= 3.2.1.0)
43
+ rubocop-capybara (2.18.0)
44
+ rubocop (~> 1.41)
45
+ rubocop-factory_bot (2.22.0)
46
+ rubocop (~> 1.33)
47
+ rubocop-rails (2.19.1)
44
48
  activesupport (>= 4.2.0)
45
49
  rack (>= 1.1)
46
50
  rubocop (>= 1.33.0, < 2.0)
47
- rubocop-rspec (2.13.2)
51
+ rubocop-rspec (2.22.0)
48
52
  rubocop (~> 1.33)
49
- ruby-progressbar (1.11.0)
50
- tzinfo (2.0.5)
53
+ rubocop-capybara (~> 2.17)
54
+ rubocop-factory_bot (~> 2.22)
55
+ ruby-progressbar (1.13.0)
56
+ tzinfo (2.0.6)
51
57
  concurrent-ruby (~> 1.0)
52
- unicode-display_width (2.3.0)
58
+ unicode-display_width (2.4.2)
53
59
 
54
60
  PLATFORMS
55
61
  ruby
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
@@ -14,16 +13,79 @@ AllCops:
14
13
  - vendor/**/*
15
14
  - node_modules/**/*
16
15
  DisabledByDefault: true
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
17
81
  Layout/DotPosition:
18
- EnforcedStyle: trailing
82
+ EnforcedStyle: leading
19
83
  Layout/EmptyLineAfterGuardClause:
20
84
  Enabled: true
21
85
  Layout/IndentationConsistency:
22
86
  Enabled: true
23
- Layout/IndentationStyle:
87
+ Layout/MultilineMethodParameterLineBreaks:
24
88
  Enabled: true
25
- Layout/MultilineMethodCallIndentation:
26
- EnforcedStyle: indented_relative_to_receiver
27
89
  Layout/SpaceBeforeBlockBraces:
28
90
  Enabled: true
29
91
  Layout/SpaceInsideBlockBraces:
@@ -38,6 +100,13 @@ Layout/EmptyLinesAroundBlockBody:
38
100
  EnforcedStyle: no_empty_lines
39
101
  Layout/TrailingWhitespace:
40
102
  AllowInHeredoc: false
103
+ Layout/SpaceBeforeComma:
104
+ Enabled: true
105
+ Layout/SpaceAfterComma:
106
+ Enabled: true
107
+ Layout/EmptyLines:
108
+ Enabled: true
109
+
41
110
  Lint:
42
111
  Enabled: true
43
112
  Lint/AmbiguousBlockAssociation:
@@ -171,4 +240,11 @@ Lint/ToEnumArguments:
171
240
  Enabled: false
172
241
  Lint/UselessRuby2Keywords:
173
242
  Enabled: false
174
-
243
+ Lint/DuplicateMagicComment:
244
+ Enabled: false
245
+ Lint/UselessRescue:
246
+ Enabled: false
247
+ Lint/DuplicateMagicComment:
248
+ Enabled: false
249
+ Lint/UselessRescue:
250
+ Enabled: false
@@ -1,3 +1,3 @@
1
1
  module NxtCop
2
- VERSION = '1.0.18'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
data/nxt_cop.gemspec CHANGED
@@ -32,7 +32,7 @@ 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.0'
35
+ spec.add_dependency 'rubocop', '~> 1.50.2'
36
36
  spec.add_dependency 'rubocop-rails', '~> 2.8'
37
37
  spec.add_dependency 'rubocop-rspec', '~> 2.12'
38
38
  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.18
4
+ version: 1.1.0
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-10-04 00:00:00.000000000 Z
11
+ date: 2023-05-09 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.35.0
19
+ version: 1.50.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.35.0
26
+ version: 1.50.2
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.3.11
127
+ rubygems_version: 3.3.7
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Getsafe shared Rubocop.