ezcater_rubocop 1.4.0 → 2.1.0.pre1

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
- SHA256:
3
- metadata.gz: 59363f6017a9e7c83ac703824a241234009c10ded26a608b576342dcae476beb
4
- data.tar.gz: 70ede1534ff0563c74b4c221053a9f97fccf6af899291a39e6ec366aa20fec48
2
+ SHA1:
3
+ metadata.gz: dc53c113d14af04b42efb7dfefc2b412bc9b5083
4
+ data.tar.gz: 7d59fa7723d049a41c577cdfb5f3fc1c37632298
5
5
  SHA512:
6
- metadata.gz: 8fd92f50f269a93990759237b7260d1872675297ed80d37dfca8bdaac2ce9be26280663a69c3ad3beefa54010ca7b0b64d5b128a6c53bcdee7b164adc98f214c
7
- data.tar.gz: a4a660828cd2df9b9c86313fc8f763f9aa127746fa2bd80ab52f7c4262bd0317b282e5aa6b95b128ea9691fb9f9abb38fb510e23f269a44c975e4340b245d997
6
+ metadata.gz: e5f42422a9d4b7a39188d5ccb727cc3721491fd11ec96045aa9aac6f77eb71cded8805dce11acc9680f77191477e691553df93568f9fc0cf012b332895e71574
7
+ data.tar.gz: 395f0846f7f3f8fce5b123f74ed11f7efc828144d36dde7adc63ca205d3c087b691a57336aa08c4f002045368f6cd3b2f828ecf5a858c34c8688e1f4b7775766
@@ -6,6 +6,18 @@ This gem is moving onto its own [Semantic Versioning](https://semver.org/) schem
6
6
 
7
7
  Prior to v1.0.0 this gem was versioned based on the `MAJOR`.`MINOR` version of RuboCop. The first release of the ezcater_rubocop gem was `v0.49.0`.
8
8
 
9
+ ## Unreleased
10
+ - Enable `Rails/SaveBang` with `AllowImplicitReturn: false`, and with autocorrection disabled.
11
+
12
+ ## v2.0.0
13
+ - Update to `rubocop` v0.81.0, `rubocop-rspec` v1.38.1 and `rubocop-rails` v2.5.2.
14
+ - This is being released as a major update because cops have been renamed so this is unlikely to be
15
+ a drop-in replacement.
16
+ - This is the first release to support Ruby 2.7.
17
+
18
+ ## v1.4.1
19
+ - Correct a matching syntax issue with `Ezcater/RubyTimeout` so that it applies in the expected cases.
20
+
9
21
  ## v1.4.0
10
22
  - Add `Ezcater/RubyTimeout` cop.
11
23
 
@@ -39,7 +39,7 @@ begin
39
39
  run("bundle exec rubocop --force-exclusion #{changed_files}")
40
40
  end
41
41
  end
42
- rescue StandardError => ex
43
- puts "Error: #{ex.message}"
42
+ rescue StandardError => e
43
+ puts "Error: #{e.message}"
44
44
  rubocop_everything
45
45
  end
@@ -3,10 +3,10 @@ require: ezcater_rubocop
3
3
  AllCops:
4
4
  DisplayCopNames: true
5
5
 
6
- Layout/IndentHash:
6
+ Layout/FirstHashElementIndentation:
7
7
  EnforcedStyle: consistent
8
8
 
9
- Layout/IndentArray:
9
+ Layout/FirstArrayElementIndentation:
10
10
  EnforcedStyle: consistent
11
11
 
12
12
  Layout/MultilineMethodCallIndentation:
@@ -26,7 +26,7 @@ Metrics/BlockLength:
26
26
  Metrics/CyclomaticComplexity:
27
27
  Enabled: false
28
28
 
29
- Metrics/LineLength:
29
+ Layout/LineLength:
30
30
  Max: 120
31
31
  Exclude:
32
32
  - "Gemfile"
@@ -42,7 +42,7 @@ Metrics/PerceivedComplexity:
42
42
  Naming/MemoizedInstanceVariableName:
43
43
  EnforcedStyleForLeadingUnderscores: required
44
44
 
45
- Naming/UncommunicativeMethodParamName:
45
+ Naming/MethodParameterName:
46
46
  AllowedNames:
47
47
  - e
48
48
  - ex
@@ -89,7 +89,7 @@ Style/EmptyLiteral:
89
89
 
90
90
  Style/FrozenStringLiteralComment:
91
91
  Enabled: true
92
- EnforcedStyle: when_needed
92
+ EnforcedStyle: always
93
93
 
94
94
  Style/GuardClause:
95
95
  Enabled: false
@@ -139,3 +139,28 @@ Style/TrailingCommaInArrayLiteral:
139
139
 
140
140
  Style/TrailingCommaInHashLiteral:
141
141
  EnforcedStyleForMultiline: consistent_comma
142
+
143
+ ### New Cops
144
+
145
+ # Cops are now introduced in a "pending" state and must be explicitly
146
+ # enabled or disabled. New cops are not enabled by default until the
147
+ # next major release.
148
+
149
+ #### New cops in v0.81
150
+
151
+ Lint/RaiseException:
152
+ Enabled: true
153
+
154
+ Lint/StructNewOverride:
155
+ Enabled: true
156
+
157
+ #### New cops in v0.80
158
+
159
+ Style/HashEachMethods:
160
+ Enabled: true
161
+
162
+ Style/HashTransformKeys:
163
+ Enabled: true
164
+
165
+ Style/HashTransformValues:
166
+ Enabled: true
@@ -6,7 +6,7 @@ inherit_mode:
6
6
  - Exclude
7
7
 
8
8
  AllCops:
9
- TargetRailsVersion: 5.1
9
+ TargetRailsVersion: 5.2
10
10
  Exclude:
11
11
  - tmp/cache/**/*
12
12
 
@@ -47,6 +47,11 @@ Rails/UnknownEnv:
47
47
  - staging
48
48
  - production
49
49
 
50
+ Rails/SaveBang:
51
+ Enabled: true
52
+ AllowImplicitReturn: false
53
+ AutoCorrect: False
54
+
50
55
  Ezcater/RailsTopLevelSqlExecute:
51
56
  Description: 'Use `execute` instead of `ActiveRecord::Base.connection.execute` in migrations.'
52
57
  Enabled: true
@@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
42
42
  spec.executables << "circle_rubocop.rb"
43
43
  spec.require_paths = ["lib"]
44
44
 
45
- spec.add_development_dependency "bundler", "~> 1.15"
45
+ spec.add_development_dependency "bundler", "~> 2.1"
46
46
  spec.add_development_dependency "pry-byebug"
47
47
  spec.add_development_dependency "rake", "~> 12.3"
48
48
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -50,6 +50,7 @@ Gem::Specification.new do |spec|
50
50
  spec.add_development_dependency "simplecov", "< 0.18.0"
51
51
 
52
52
  spec.add_runtime_dependency "parser", "!= 2.5.1.1"
53
- spec.add_runtime_dependency "rubocop", "~> 0.61.1"
54
- spec.add_runtime_dependency "rubocop-rspec", "~> 1.30.1"
53
+ spec.add_runtime_dependency "rubocop", "~> 0.81.0"
54
+ spec.add_runtime_dependency "rubocop-rails", "~> 2.5.2"
55
+ spec.add_runtime_dependency "rubocop-rspec", "~> 1.38.1"
55
56
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "ezcater_rubocop/version"
4
+ require "rubocop-rails"
4
5
  require "rubocop-rspec"
5
6
 
6
7
  # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzcaterRubocop
4
- VERSION = "1.4.0"
4
+ VERSION = "2.1.0.pre1"
5
5
  end
@@ -25,7 +25,7 @@ module RuboCop
25
25
  END_MESSAGE
26
26
 
27
27
  def_node_matcher "timeout", <<-PATTERN
28
- (send (const _ :Timeout) :timeout)
28
+ (send (const _ :Timeout) :timeout ...)
29
29
  PATTERN
30
30
 
31
31
  def on_send(node)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezcater_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 2.1.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezCater, Inc
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.15'
19
+ version: '2.1'
20
20
  type: :development
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: '1.15'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry-byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,42 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.61.1
117
+ version: 0.81.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.61.1
124
+ version: 0.81.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.5.2
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 2.5.2
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rubocop-rspec
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: 1.30.1
145
+ version: 1.38.1
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: 1.30.1
152
+ version: 1.38.1
139
153
  description: ezCater custom cops and shared configuration
140
154
  email:
141
155
  - engineering@ezcater.com
@@ -177,7 +191,7 @@ licenses:
177
191
  - MIT
178
192
  metadata:
179
193
  allowed_push_host: https://rubygems.org
180
- post_install_message:
194
+ post_install_message:
181
195
  rdoc_options: []
182
196
  require_paths:
183
197
  - lib
@@ -188,12 +202,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
188
202
  version: '0'
189
203
  required_rubygems_version: !ruby/object:Gem::Requirement
190
204
  requirements:
191
- - - ">="
205
+ - - ">"
192
206
  - !ruby/object:Gem::Version
193
- version: '0'
207
+ version: 1.3.1
194
208
  requirements: []
195
- rubygems_version: 3.0.3
196
- signing_key:
209
+ rubyforge_project:
210
+ rubygems_version: 2.6.11
211
+ signing_key:
197
212
  specification_version: 4
198
213
  summary: ezCater custom cops and shared configuration
199
214
  test_files: []