armitage-rubocop 0.76.0.4 → 0.77.0

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: 5102c4c0a29dad14aecdc3d8974f294639236ca52cae8f35950ae6ad6144c8b1
4
- data.tar.gz: 7a624f860512fef9b5fb838ec2d8f411cb94254be3d039d26d9fc04c04d13748
3
+ metadata.gz: 8dbfd56141679518f1c80bdebda9e4081c1bc48c5d5d0cd9660c34aba197f0fe
4
+ data.tar.gz: da5377259374c2e3a9820abb1ed6fadf51fe0f23eef6cb087f980f548aab79a2
5
5
  SHA512:
6
- metadata.gz: 64d6ee93a3032423d11cd9e53c94c7b104814e0d9ea265feba65aa83156a2b2b39ebc95fef326c6a9626b9836b05d0050a4eba4c2be69bd274719ae503ff0066
7
- data.tar.gz: 37cbc3a86cb70a0827982f814e324cc107efd18413904d3a9485e61d172918b1ce0c4e930917affc5fae74583c6e01850435082e78b7f9af0c2d49157779290a
6
+ metadata.gz: 5f385b720fdc370a146a7ef4aabcdd0923b9982bb91074c22d4e1c3b3e7889fd90f61149f0e95f5250bc8589968e80924f0e20f38ea87fca77f33f84956dc128
7
+ data.tar.gz: 0d498164a16a90594aa215d6827158d35df33edd9c0569eeb54f2983ef583d3b845fb1cb4644f38105d0f564d76513388775c5502c04ffb83c3fea967280d878
data/Rakefile CHANGED
@@ -11,21 +11,22 @@ require 'rubocop-rspec'
11
11
  require 'rubocop-rake'
12
12
 
13
13
  RuboCop::RakeTask.new(:rubocop) do |t|
14
- t.options = %w[--config ./lib/rubocop.rails.yml]
14
+ config_path = File.expand_path(File.join('.rubocop.yml'), __dir__)
15
+ t.options = ['--config', config_path]
15
16
  t.requires << 'rubocop-rspec'
16
17
  t.requires << 'rubocop-performance'
17
18
  t.requires << 'rubocop-rails'
18
19
  t.requires << 'rubocop-rake'
19
20
  end
20
21
 
21
- NON_CHECKABLE_COPS = %w[Rails].freeze # NOTE: Global Rails cop has only `Enabled` option
22
+ NON_CHECKABLE_COPS = %w[Rails].freeze # NOTE: Global "Rails" cop has only `Enabled` option
22
23
 
23
24
  namespace :armitage_rubocop do
24
25
  desc 'Full armitage-rubocop build (code style, cops validation, yaml validation)'
25
26
  task :build do
26
27
  build_processes = {
27
28
  code_style_check:
28
- Open3.popen3('bundle exec rake rubocop'),
29
+ Open3.popen3('bundle exec rubocop'),
29
30
  cops_validation:
30
31
  Open3.popen3('bundle exec rake armitage_rubocop:validation:recognizable_cops'),
31
32
  yaml_validation:
@@ -4,7 +4,7 @@ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.version = '0.76.0.4'
7
+ spec.version = '0.77.0'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
22
22
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
23
  end
24
24
 
25
- spec.add_dependency 'rubocop', '= 0.76.0'
25
+ spec.add_dependency 'rubocop', '= 0.77.0'
26
26
  spec.add_dependency 'rubocop-performance', '= 1.5.1'
27
- spec.add_dependency 'rubocop-rails', '= 2.3.2'
27
+ spec.add_dependency 'rubocop-rails', '= 2.4.0'
28
28
  spec.add_dependency 'rubocop-rspec', '= 1.37.0'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.5.0'
30
30
 
@@ -3,21 +3,21 @@ Layout/AccessModifierIndentation:
3
3
  EnforcedStyle: indent
4
4
  IndentationWidth: ~
5
5
 
6
- Layout/AlignArguments:
6
+ Layout/ArgumentAlignment:
7
7
  Enabled: true
8
8
  IndentationWidth: ~
9
9
 
10
- Layout/AlignArray:
10
+ Layout/ArrayAlignment:
11
11
  Enabled: true
12
12
 
13
13
  # NOTE: sometimes - good, sometimes - bad. readability depends on case by case.
14
- Layout/AlignHash:
14
+ Layout/HashAlignment:
15
15
  Enabled: false
16
16
  EnforcedHashRocketStyle: table
17
17
  EnforcedColonStyle: table
18
18
  EnforcedLastArgumentHashStyle: always_inspect
19
19
 
20
- Layout/AlignParameters:
20
+ Layout/ParameterAlignment:
21
21
  Enabled: true
22
22
  EnforcedStyle: with_first_parameter
23
23
  IndentationWidth: ~
@@ -151,12 +151,12 @@ Layout/FirstMethodArgumentLineBreak:
151
151
  Layout/FirstMethodParameterLineBreak:
152
152
  Enabled: false
153
153
 
154
- Layout/IndentFirstArgument:
154
+ Layout/FirstArgumentIndentation:
155
155
  Enabled: true
156
156
  EnforcedStyle: consistent
157
157
  IndentationWidth: ~
158
158
 
159
- Layout/IndentFirstParameter:
159
+ Layout/FirstParameterIndentation:
160
160
  Enabled: true
161
161
  EnforcedStyle: consistent
162
162
  IndentationWidth: ~
@@ -164,21 +164,21 @@ Layout/IndentFirstParameter:
164
164
  Layout/HeredocArgumentClosingParenthesis:
165
165
  Enabled: true
166
166
 
167
- Layout/IndentFirstArrayElement:
167
+ Layout/FirstArrayElementIndentation:
168
168
  Enabled: true
169
169
  EnforcedStyle: consistent
170
170
  IndentationWidth: ~
171
171
 
172
- Layout/IndentAssignment:
172
+ Layout/AssignmentIndentation:
173
173
  Enabled: true
174
174
  IndentationWidth: ~
175
175
 
176
- Layout/IndentFirstHashElement:
176
+ Layout/FirstHashElementIndentation:
177
177
  Enabled: true
178
178
  EnforcedStyle: consistent
179
179
  IndentationWidth: ~
180
180
 
181
- Layout/IndentHeredoc:
181
+ Layout/HeredocIndentation:
182
182
  Enabled: true
183
183
  EnforcedStyle: squiggly
184
184
 
@@ -194,7 +194,7 @@ Layout/IndentationWidth:
194
194
  Layout/InitialIndentation:
195
195
  Enabled: true
196
196
 
197
- Layout/LeadingBlankLines:
197
+ Layout/LeadingEmptyLines:
198
198
  Enabled: true
199
199
 
200
200
  Layout/LeadingCommentSpace:
@@ -339,7 +339,7 @@ Layout/Tab:
339
339
  Enabled: true
340
340
  IndentationWidth: ~
341
341
 
342
- Layout/TrailingBlankLines:
342
+ Layout/TrailingEmptyLines:
343
343
  Enabled: true
344
344
  EnforcedStyle: final_newline
345
345
 
@@ -32,7 +32,7 @@ Lint/DuplicateCaseCondition:
32
32
  Lint/DuplicateMethods:
33
33
  Enabled: true
34
34
 
35
- Lint/DuplicatedKey:
35
+ Lint/DuplicateHashKey:
36
36
  Enabled: true
37
37
 
38
38
  Lint/EachWithObjectArgument:
@@ -73,7 +73,7 @@ Lint/FloatOutOfRange:
73
73
  Lint/FormatParameterMismatch:
74
74
  Enabled: true
75
75
 
76
- Lint/HandleExceptions:
76
+ Lint/SuppressedException:
77
77
  Enabled: false
78
78
 
79
79
  Lint/HeredocMethodCallPosition:
@@ -104,7 +104,7 @@ Lint/Loop:
104
104
  Lint/MissingCopEnableDirective:
105
105
  Enabled: true
106
106
 
107
- Lint/MultipleCompare:
107
+ Lint/MultipleComparison:
108
108
  Enabled: true
109
109
 
110
110
  Lint/NestedMethodDefinition:
@@ -185,7 +185,7 @@ Lint/ShadowedException:
185
185
  Lint/ShadowingOuterLocalVariable:
186
186
  Enabled: true
187
187
 
188
- Lint/StringConversionInInterpolation:
188
+ Lint/RedundantStringCoercion:
189
189
  Enabled: true
190
190
 
191
191
  Lint/Syntax:
@@ -39,14 +39,14 @@ Naming/RescuedExceptionsVariableName:
39
39
  Enabled: true
40
40
  PreferredName: error
41
41
 
42
- Naming/UncommunicativeBlockParamName:
42
+ Naming/BlockParameterName:
43
43
  Enabled: true
44
44
  MinNameLength: 1
45
45
  AllowNamesEndingInNumbers: true
46
46
  AllowedNames: []
47
47
  ForbiddenNames: []
48
48
 
49
- Naming/UncommunicativeMethodParamName:
49
+ Naming/MethodParameterName:
50
50
  Enabled: true
51
51
  MinNameLength: 1
52
52
  AllowNamesEndingInNumbers: true
@@ -19,6 +19,15 @@ Rails/ApplicationJob:
19
19
  Rails/ApplicationRecord:
20
20
  Enabled: true
21
21
 
22
+ Rails/ApplicationController:
23
+ Enabled: false
24
+
25
+ Rails/ApplicationMailer:
26
+ Enabled: false
27
+
28
+ Rails/RakeEnvironment:
29
+ Enabled: true
30
+
22
31
  Rails/AssertNot:
23
32
  Enabled: true
24
33
 
@@ -145,6 +154,9 @@ Rails/ReversibleMigration:
145
154
  Rails/SafeNavigation:
146
155
  Enabled: true
147
156
 
157
+ Rails/SafeNavigationWithBlank:
158
+ Enabled: true
159
+
148
160
  Rails/SaveBang:
149
161
  Enabled: true
150
162
  AllowImplicitReturn: true
@@ -6,5 +6,5 @@ inherit_from:
6
6
  Rake:
7
7
  Enabled: true
8
8
  Include:
9
- - 'Rakefile'
9
+ - Rakefile
10
10
  - '**/*.rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armitage-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.76.0.4
4
+ version: 0.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-26 00:00:00.000000000 Z
11
+ date: 2019-11-30 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: 0.76.0
19
+ version: 0.77.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: 0.76.0
26
+ version: 0.77.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.3.2
47
+ version: 2.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.3.2
54
+ version: 2.4.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement