armitage-rubocop 0.73.0.121 → 0.74.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: 4f29aa7172e16b90d24d96081c0246447597768f2fe364c028a0347f65f3946b
4
- data.tar.gz: 8d1690c5dcd06c3d62be4e8f1796aa7088044f3096fccf31f1616a49145357cb
3
+ metadata.gz: 6f938ac5a18c77dc234cdde491ede1057de6f6f39a4b7f42714c6706cf9e7434
4
+ data.tar.gz: d1ce140d4cf3fe8aa23b56504424ca55050b9ee5d3f7d63809996a6304b902b1
5
5
  SHA512:
6
- metadata.gz: ee214802c32f27b0be7718eb5be33601d5828ff99b9af1826434c0e577cad421b6d3b12c4535df8ca11c18457e30f06470f37340f3cf85d9de67462036c610b5
7
- data.tar.gz: c22ece801d851cf41d632649c82fcb572899beb1c3dbe809b458bfbf5b56b231756ca68e1daa6761fad61886dde6f730ceab749ce8ecc2490d9c07a2f42b7ae9
6
+ metadata.gz: bc87a4703a30bc0c02451d5fe99ad2c94e02c56828d310f7788309825ebf296fd92134202e359b3064529bd0530cb59399edcfdbb4332939a2aeabbdb568f286
7
+ data.tar.gz: bfc9d8a2ff393235955fced4ba9cc8c5e0098f61a01ddb68105cd354a93512fd3175695f5ff7e30bea78cce28f757911de5304cd7145e6e8a1cfb2267a0d7e79
data/Rakefile CHANGED
@@ -59,11 +59,13 @@ namespace :armitage_rubocop do
59
59
 
60
60
  # NOTE: try to load without Psych exceptions
61
61
  invalid_yamls = yamls.each_with_object([]) do |file_name, invalid_files|
62
+ # rubocop:disable Style/RedundantBegin
62
63
  begin
63
64
  YAML.safe_load(File.read(file_name))
64
65
  rescue StandardError
65
66
  (invalid_files << "- \e[33m#{file_name}\e[0m")
66
67
  end
68
+ # rubocop:enable Style/RedundantBegin
67
69
  end
68
70
 
69
71
  if invalid_yamls.empty?
@@ -106,7 +108,7 @@ namespace :armitage_rubocop do
106
108
  invalid_params = Set.new
107
109
 
108
110
  rubocop_config[cop].each_key do |cop_param|
109
- next if RuboCop::Config::COMMON_PARAMS.include?(cop_param)
111
+ next if RuboCop::ConfigValidator::COMMON_PARAMS.include?(cop_param)
110
112
  next if NON_CHECKABLE_COPS.include?(cop)
111
113
  next if RuboCop::ConfigLoader.default_configuration[cop].key?(cop_param)
112
114
 
@@ -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
- gem_version = '0.73.0'
7
+ gem_version = '0.74.0'
8
8
  release_version = ENV['TRAVIS'] ? "#{gem_version}.#{ENV['TRAVIS_BUILD_NUMBER']}" : gem_version
9
9
 
10
10
  spec.name = 'armitage-rubocop'
@@ -23,11 +23,12 @@ Gem::Specification.new do |spec|
23
23
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
24
  end
25
25
 
26
- spec.add_dependency 'rubocop', '= 0.73.0'
27
- spec.add_dependency 'rubocop-performance', '= 1.4.0'
26
+ spec.add_dependency 'rubocop', '= 0.74.0'
27
+ spec.add_dependency 'rubocop-performance', '= 1.4.1'
28
28
  spec.add_dependency 'rubocop-rails', '= 2.2.1'
29
- spec.add_dependency 'rubocop-rspec', '= 1.33.0'
29
+ spec.add_dependency 'rubocop-rspec', '= 1.35.0'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
32
32
  spec.add_development_dependency 'rake'
33
+ spec.add_development_dependency 'pry'
33
34
  end
@@ -62,6 +62,7 @@ Lint/EnsureReturn:
62
62
 
63
63
  Lint/ErbNewArguments:
64
64
  Enabled: true
65
+ AutoCorrect: true
65
66
 
66
67
  Lint/FlipFlop:
67
68
  Enabled: true
@@ -90,6 +90,9 @@ RSpec/HookArgument:
90
90
  RSpec/HooksBeforeExamples:
91
91
  Enabled: true
92
92
 
93
+ RSpec/ImplicitBlockExpectation:
94
+ Enabled: false
95
+
93
96
  RSpec/ImplicitExpect:
94
97
  Enabled: true
95
98
  EnforcedStyle: is_expected
@@ -118,9 +121,8 @@ RSpec/IteratedExpectation:
118
121
  RSpec/LeadingSubject:
119
122
  Enabled: true
120
123
 
121
- # NOTE: will be introduced in next release
122
- # RSpec/LeakyConstantDeclaration:
123
- # Enabled: true
124
+ RSpec/LeakyConstantDeclaration:
125
+ Enabled: true
124
126
 
125
127
  RSpec/LetBeforeExamples:
126
128
  Enabled: true
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.73.0.121
4
+ version: 0.74.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-07-19 00:00:00.000000000 Z
11
+ date: 2019-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.73.0
19
+ version: 0.74.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.73.0
26
+ version: 0.74.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.0
33
+ version: 1.4.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.4.0
40
+ version: 1.4.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.33.0
61
+ version: 1.35.0
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.33.0
68
+ version: 1.35.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: 'A set of rubocop settings used in my own projects.Support for: vanilla
98
112
  ruby, rspec, rails.'
99
113
  email:
@@ -147,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
161
  - !ruby/object:Gem::Version
148
162
  version: '0'
149
163
  requirements: []
150
- rubygems_version: 3.0.4
164
+ rubygems_version: 3.0.3
151
165
  signing_key:
152
166
  specification_version: 4
153
167
  summary: A set of rubocop settings