rubocop-g2 1.6.0 → 1.7.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: 78336eed3c07bfeec4e0b69c5aff3c25afe16a829a7189ed845d324ffbf1e000
4
- data.tar.gz: ec8ba26224f063994a158ef7924c124e08146bebc79908f83499e3e20b07c14f
3
+ metadata.gz: b484fad7593fa6a699916c560ed8ec2b5d4926496168486b48ff6fff18492bb3
4
+ data.tar.gz: e4096d81c7896f473c6191e0f6f864f58d3a18e1872297ce2d32687400e78c2f
5
5
  SHA512:
6
- metadata.gz: 341ea0af56943e1029e7909a382f1da8ff2a332ca8c7d62a39cca6c631aa73c0ce5de58a85c7f5e0f7ac26e9964c4c02f24fa53249b1c7def23f71c3525cc54b
7
- data.tar.gz: 3ec4fe034ba044d66d9796cefedc31dbad4eadca4476ab4f2cf819dac6edcab4f8c78470d2b7300669fe5aff84de5c71a81dcfbb9718e17ac285f9131665e3b4
6
+ metadata.gz: 1483423826e3a387185ac626fc3b41a86531cddb705c5c9a02695c4534dc1353ae8504227ed5fc973fb3e1f1bec7068deda047a099cbd4df2d45709ebffd9ea3
7
+ data.tar.gz: dafd8ef06fa641161e1eb9a0073a65de9ab78046adc79f1f9afbadf420d69aafd613244ad4c3e277e0de1b1e24473e911a208fdf4bb4377c77daaecd1916f012
data/.rubocop.yml CHANGED
@@ -1,105 +1,17 @@
1
+ inherit_from:
2
+ - config/ruby/default.yml
3
+ - config/rspec/default.yml
4
+
1
5
  require:
2
6
  - rubocop-rspec
3
7
 
4
- Layout/SpaceAroundMethodCallOperator:
5
- Enabled: false
6
-
7
- Layout/SpaceBeforeFirstArg:
8
- Enabled: false
9
-
10
- Layout/MultilineOperationIndentation:
11
- Enabled: false
12
-
13
- Layout/ClassStructure:
14
- Enabled: true
15
-
16
- Layout/MultilineMethodCallIndentation:
17
- EnforcedStyle: indented_relative_to_receiver
18
-
19
- Layout/EmptyLineAfterGuardClause:
20
- Enabled: false
21
-
22
- Layout/LineLength:
23
- Max: 120
24
- IgnoredPatterns:
25
- - ^#
26
-
27
- Lint/AssignmentInCondition:
28
- Enabled: false
29
-
30
- Lint/RaiseException:
31
- Enabled: true
32
-
33
- Lint/StructNewOverride:
34
- Enabled: true
35
-
36
- Metrics/AbcSize:
37
- Max: 20
38
-
39
- Metrics/BlockLength:
40
- Enabled: false
41
-
42
- Metrics/ClassLength:
43
- Max: 500
44
-
45
- Metrics/MethodLength:
46
- Max: 15
47
-
48
- Metrics/ParameterLists:
49
- Max: 5
50
-
51
- Style/AndOr:
52
- Enabled: false
53
-
54
- Style/ClassAndModuleChildren:
55
- AutoCorrect: true
8
+ AllCops:
9
+ NewCops: enable
10
+ SuggestExtensions: false
11
+ TargetRubyVersion: 2.7
56
12
 
57
13
  Style/Documentation:
58
14
  Enabled: false
59
15
 
60
- Style/EmptyMethod:
61
- Enabled: false
62
-
63
- Style/ExponentialNotation:
64
- Enabled: false
65
-
66
- Style/FormatStringToken:
67
- EnforcedStyle: template
68
-
69
- Style/FrozenStringLiteralComment:
70
- Enabled: false
71
-
72
- Style/HashEachMethods:
73
- Enabled: true
74
-
75
- Style/HashTransformKeys:
76
- Enabled: false
77
-
78
- Style/HashTransformValues:
79
- Enabled: false
80
-
81
- Style/Lambda:
82
- Enabled: false
83
-
84
- Style/LambdaCall:
85
- Enabled: false
86
-
87
- Style/NumericLiterals:
88
- Enabled: false
89
-
90
- Style/PercentLiteralDelimiters:
91
- PreferredDelimiters:
92
- default: ()
93
- '%w': '()'
94
- '%W': '()'
95
- '%i': '()'
96
- '%I': '()'
97
-
98
- Style/SingleLineBlockParams:
99
- Enabled: false
100
-
101
- Style/SymbolProc:
102
- Enabled: false
103
-
104
16
  RSpec/ExampleLength:
105
- Enabled: false
17
+ Enabled: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-g2 (1.5.3)
4
+ rubocop-g2 (1.7.0)
5
5
  rubocop (>= 0.82)
6
6
  rubocop-rails (>= 2.5)
7
7
  rubocop-rspec (>= 1.39)
@@ -9,29 +9,29 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (7.0.1)
12
+ activesupport (7.0.2.4)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
17
  ast (2.4.2)
18
18
  coderay (1.1.2)
19
- concurrent-ruby (1.1.9)
19
+ concurrent-ruby (1.1.10)
20
20
  diff-lcs (1.3)
21
- i18n (1.8.11)
21
+ i18n (1.10.0)
22
22
  concurrent-ruby (~> 1.0)
23
23
  method_source (0.9.2)
24
24
  minitest (5.15.0)
25
- parallel (1.21.0)
26
- parser (3.1.0.0)
25
+ parallel (1.22.1)
26
+ parser (3.1.2.0)
27
27
  ast (~> 2.4.1)
28
28
  pry (0.12.2)
29
29
  coderay (~> 1.1.0)
30
30
  method_source (~> 0.9.0)
31
31
  rack (2.2.3)
32
- rainbow (3.0.0)
32
+ rainbow (3.1.1)
33
33
  rake (12.3.3)
34
- regexp_parser (2.2.0)
34
+ regexp_parser (2.3.1)
35
35
  rexml (3.2.5)
36
36
  rspec (3.8.0)
37
37
  rspec-core (~> 3.8.0)
@@ -46,22 +46,22 @@ GEM
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
47
  rspec-support (~> 3.8.0)
48
48
  rspec-support (3.8.3)
49
- rubocop (1.24.1)
49
+ rubocop (1.28.2)
50
50
  parallel (~> 1.10)
51
- parser (>= 3.0.0.0)
51
+ parser (>= 3.1.0.0)
52
52
  rainbow (>= 2.2.2, < 4.0)
53
53
  regexp_parser (>= 1.8, < 3.0)
54
54
  rexml
55
- rubocop-ast (>= 1.15.1, < 2.0)
55
+ rubocop-ast (>= 1.17.0, < 2.0)
56
56
  ruby-progressbar (~> 1.7)
57
57
  unicode-display_width (>= 1.4.0, < 3.0)
58
- rubocop-ast (1.15.1)
59
- parser (>= 3.0.1.1)
60
- rubocop-rails (2.13.0)
58
+ rubocop-ast (1.17.0)
59
+ parser (>= 3.1.1.0)
60
+ rubocop-rails (2.14.2)
61
61
  activesupport (>= 4.2.0)
62
62
  rack (>= 1.1)
63
63
  rubocop (>= 1.7.0, < 2.0)
64
- rubocop-rspec (2.7.0)
64
+ rubocop-rspec (2.10.0)
65
65
  rubocop (~> 1.19)
66
66
  ruby-progressbar (1.11.0)
67
67
  tzinfo (2.0.4)
@@ -79,4 +79,4 @@ DEPENDENCIES
79
79
  rubocop-g2!
80
80
 
81
81
  BUNDLED WITH
82
- 2.3.10
82
+ 2.3.12
@@ -18,7 +18,7 @@ Layout/EmptyLineAfterGuardClause:
18
18
 
19
19
  Layout/LineLength:
20
20
  Max: 120
21
- IgnoredPatterns:
21
+ AllowedPatterns:
22
22
  - ^#
23
23
 
24
24
  Lint/AssignmentInCondition:
@@ -20,9 +20,11 @@ module RuboCop
20
20
  args.find(&:hash_type?)&.children&.map(&:children) || []
21
21
  end
22
22
 
23
+ # rubocop:disable Lint/BooleanSymbol
23
24
  def args_include_decorative?(args)
24
25
  args.include? [s(:sym, :decorative), s(:true)]
25
26
  end
27
+ # rubocop:enable Lint/BooleanSymbol
26
28
 
27
29
  def args_include_aria_label?(args)
28
30
  args.any? { |arg| arg.first == s(:sym, :aria_label) && arg.last != s(:nil) }
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module G2
3
- VERSION = '1.6.0'.freeze
3
+ VERSION = '1.7.0'.freeze
4
4
  end
5
5
  end
data/rubocop-g2.gemspec CHANGED
@@ -20,6 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
+ spec.metadata['rubygems_mfa_required'] = 'true'
24
+ spec.required_ruby_version = '>= 2.7'
25
+
23
26
  spec.add_dependency 'rubocop', '>= 0.82'
24
27
  spec.add_dependency 'rubocop-rails', '>= 2.5'
25
28
  spec.add_dependency 'rubocop-rspec', '>= 1.39'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-g2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Mannino
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-24 00:00:00.000000000 Z
11
+ date: 2022-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -138,7 +138,8 @@ files:
138
138
  - rubocop-g2.gemspec
139
139
  homepage: https://g2.com
140
140
  licenses: []
141
- metadata: {}
141
+ metadata:
142
+ rubygems_mfa_required: 'true'
142
143
  post_install_message:
143
144
  rdoc_options: []
144
145
  require_paths:
@@ -147,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
148
  requirements:
148
149
  - - ">="
149
150
  - !ruby/object:Gem::Version
150
- version: '0'
151
+ version: '2.7'
151
152
  required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  requirements:
153
154
  - - ">="