nxt_cop 1.0.19 → 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: 776b1471e620c2f1474a9583ab2c628d21eb85050137cde4b4b6e13ad2c06bf4
4
- data.tar.gz: 1c04eb15f2c589ce51368ab93195c8695b41738489ffbfdf577dc567261dac5d
3
+ metadata.gz: 5067903d2ae9b6e7152a4930cf9d57429bc967c075c6ead08428bc0ff2e57d87
4
+ data.tar.gz: 82025fde4add3e81410debc65d1ea2af0bd37d60ac4f23be098808dec4dd449a
5
5
  SHA512:
6
- metadata.gz: ccadcf8126fed669f138ed255b709d0ef10d734e64983251690dcd012b27c8ffd681e0ebe4d7236e56321f96b72bf843df3adc7f11c98a7da4d48d8b58e68a86
7
- data.tar.gz: 5b34adebc0e4eea7195c55b2e206037286d0a7d38b16303fb39d397f49ac04c0e1802671ccecd5daa725f19282fd926a0899cb5499e371b838faf7b05123f0a6
6
+ metadata.gz: 2adb3e5920db48cfc408bf35601b9abc155422c01845693123020d7d3c85fce4aabe93248f23933f22dfd95cb90f28c49c43f19a19a52d20c74c6fdc1cf36ec7
7
+ data.tar.gz: 72b6cf17080228f8eb4853125940eeee87b342c52777db1d1127992bdca09d31fe471daa590a27ec3ed8a5d580aefca4a8bab55548507234277c716e204eee94
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  # v1.0.19 2023-04-04
2
9
 
3
10
  ## 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.0)
5
+ rubocop (~> 1.50.2)
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.50.2)
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.22.0)
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:
@@ -179,4 +240,11 @@ Lint/ToEnumArguments:
179
240
  Enabled: false
180
241
  Lint/UselessRuby2Keywords:
181
242
  Enabled: false
182
-
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.19'.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.49.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.19
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: 2023-04-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.49.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.49.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.4.6
127
+ rubygems_version: 3.3.7
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Getsafe shared Rubocop.