armitage-rubocop 0.79.0 → 0.80.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: 4345652df71d9b2952dcc9713a1011c281916278acb27e317c5f8a27a640570d
4
- data.tar.gz: 319c5955375f3ca5d8c99f1d7ff630a8226d0d5c4728c1a03067237c336e4e28
3
+ metadata.gz: e52539935650d719e8189723a4ff5d8ad6ff0259c6a11da1cc5f9207391f7edd
4
+ data.tar.gz: 8e5509d395819812149d4bd97ce121087448bb24ff4d8aaff60e4ad4994b9237
5
5
  SHA512:
6
- metadata.gz: daace1f5f0c23dc126eb9d5a6e0989919a61359934171479a9b370af37bbc8175bba2c7c142e70d11caa6e0fc6bac309dd41411f0751c313ba5740ecf942faf6
7
- data.tar.gz: fa2cc2b12b66293b6c785bed2af2a089348e5faaffe924bb328198fb4a2c1abe97528696daddc110f3c65f85d4382580a3b2d198a768d6f90a35c2b0bdbba101
6
+ metadata.gz: '078c6296e82f74d04a1d0fc512f3cc54338ba13565ee5f7fea0d56e0dc37b10ec487a006ef5dd625e32163ff425347b3c79ed22b42cf0cd74782ac702a13e9dc'
7
+ data.tar.gz: 0b6c53e0325ab156f1da468001b209a9af6c216f5b4f20d4132cee9f56e8bfe636e5e7e06426b3838c741e6e8e162bf877dd87f382ae82587990701a9f648423
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2019 Rustam Ibragimov
3
+ Copyright (c) 2018-2020 Rustam Ibragimov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/Rakefile CHANGED
@@ -92,7 +92,7 @@ namespace :armitage_rubocop do
92
92
  rubocop_config = RuboCop::ConfigLoader.load_file(yaml_file)
93
93
 
94
94
  # NOTE: validate cop existence
95
- rubocop_config.keys.each do |cop|
95
+ rubocop_config.each_key do |cop|
96
96
  next if RuboCop::ConfigLoader.default_configuration.key?(cop)
97
97
  next if RuboCop::Cop::Cop.registry.contains_cop_matching?([cop])
98
98
  next if cop == 'inherit_mode'
@@ -101,7 +101,7 @@ namespace :armitage_rubocop do
101
101
  end
102
102
 
103
103
  # NOTE: validate cop params
104
- rubocop_config.keys.each do |cop|
104
+ rubocop_config.each_key do |cop|
105
105
  next if invalid_cops.key?(cop)
106
106
 
107
107
  invalid_params = Set.new
@@ -133,6 +133,6 @@ namespace :armitage_rubocop do
133
133
  end
134
134
  end
135
135
  end
136
+ # rubocop:enable Rails/RakeEnvironment
136
137
 
137
138
  task default: :rubocop
138
- # rubocop:enable Rails/RakeEnvironment
@@ -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.79.0'
7
+ spec.version = '0.80.1'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,11 +22,11 @@ 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.79.0'
25
+ spec.add_dependency 'rubocop', '= 0.80.1'
26
26
  spec.add_dependency 'rubocop-performance', '= 1.5.2'
27
- spec.add_dependency 'rubocop-rails', '= 2.4.1'
28
- spec.add_dependency 'rubocop-rspec', '= 1.37.1'
29
- spec.add_dependency 'rubocop-rake', '= 0.5.0'
27
+ spec.add_dependency 'rubocop-rails', '= 2.4.2'
28
+ spec.add_dependency 'rubocop-rspec', '= 1.38.1'
29
+ spec.add_dependency 'rubocop-rake', '= 0.5.1'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
32
32
  spec.add_development_dependency 'rake'
@@ -200,6 +200,7 @@ Layout/LeadingEmptyLines:
200
200
  Layout/LeadingCommentSpace:
201
201
  Enabled: true
202
202
  AllowDoxygenCommentStyle: false
203
+ AllowGemfileRubyComment: true
203
204
 
204
205
  Layout/LineLength:
205
206
  Enabled: true
@@ -0,0 +1,2 @@
1
+ Migration/DepartmentName:
2
+ Enabled: true
data/lib/common/style.yml CHANGED
@@ -37,10 +37,7 @@ Style/BlockDelimiters:
37
37
  Enabled: true
38
38
  EnforcedStyle: line_count_based
39
39
  AllowBracesOnProceduralOneLiners: false
40
-
41
- Style/BracesAroundHashParameters:
42
- Enabled: true
43
- EnforcedStyle: no_braces
40
+ BracesRequiredMethods: ['sig']
44
41
 
45
42
  Style/CaseEquality:
46
43
  Enabled: true
@@ -176,12 +173,21 @@ Style/GuardClause:
176
173
  Enabled: false
177
174
  MinBodyLength: 1
178
175
 
176
+ Style/HashEachMethods:
177
+ Enabled: true
178
+
179
179
  Style/HashSyntax:
180
180
  Enabled: true
181
181
  EnforcedStyle: ruby19
182
182
  UseHashRocketsWithSymbolValues: false
183
183
  PreferHashRocketsForNonAlnumEndingSymbols: false
184
184
 
185
+ Style/HashTransformKeys:
186
+ Enabled: false
187
+
188
+ Style/HashTransformValues:
189
+ Enabled: false
190
+
185
191
  Style/IdenticalConditionalBranches:
186
192
  Enabled: true
187
193
 
data/lib/rspec/rspec.yml CHANGED
@@ -195,6 +195,12 @@ RSpec/RepeatedDescription:
195
195
  RSpec/RepeatedExample:
196
196
  Enabled: true
197
197
 
198
+ RSpec/RepeatedExampleGroupBody:
199
+ Enabled: true
200
+
201
+ RSpec/RepeatedExampleGroupDescription:
202
+ Enabled: true
203
+
198
204
  RSpec/ReturnFromStub:
199
205
  Enabled: true
200
206
  EnforcedStyle: and_return
@@ -10,6 +10,7 @@ inherit_from:
10
10
  - ./common/performance.yml
11
11
  - ./common/security.yml
12
12
  - ./common/style.yml
13
+ - ./common/migration.yml
13
14
 
14
15
  AllCops:
15
16
  DefaultFormatter: progress
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.79.0
4
+ version: 0.80.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2020-03-08 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.79.0
19
+ version: 0.80.1
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.79.0
26
+ version: 0.80.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,42 +44,42 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.4.1
47
+ version: 2.4.2
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.4.1
54
+ version: 2.4.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.37.1
61
+ version: 1.38.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.37.1
68
+ version: 1.38.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.5.0
75
+ version: 0.5.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.5.0
82
+ version: 0.5.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +145,7 @@ files:
145
145
  - lib/common/layout.yml
146
146
  - lib/common/lint.yml
147
147
  - lib/common/metrics.yml
148
+ - lib/common/migration.yml
148
149
  - lib/common/naming.yml
149
150
  - lib/common/performance.yml
150
151
  - lib/common/rails.yml