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 +4 -4
- data/LICENSE.txt +1 -1
- data/Rakefile +3 -3
- data/armitage-rubocop.gemspec +5 -5
- data/lib/common/layout.yml +1 -0
- data/lib/common/migration.yml +2 -0
- data/lib/common/style.yml +10 -4
- data/lib/rspec/rspec.yml +6 -0
- data/lib/rubocop.general.yml +1 -0
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52539935650d719e8189723a4ff5d8ad6ff0259c6a11da1cc5f9207391f7edd
|
4
|
+
data.tar.gz: 8e5509d395819812149d4bd97ce121087448bb24ff4d8aaff60e4ad4994b9237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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.
|
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.
|
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
|
data/armitage-rubocop.gemspec
CHANGED
@@ -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.
|
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.
|
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.
|
28
|
-
spec.add_dependency 'rubocop-rspec', '= 1.
|
29
|
-
spec.add_dependency 'rubocop-rake', '= 0.5.
|
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'
|
data/lib/common/layout.yml
CHANGED
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
|
data/lib/rubocop.general.yml
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|