ezcater_rubocop 1.4.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +9 -0
- data/bin/circle_rubocop.rb +2 -2
- data/conf/rubocop.yml +30 -5
- data/conf/rubocop_rails.yml +6 -1
- data/ezcater_rubocop.gemspec +4 -3
- data/lib/ezcater_rubocop.rb +1 -0
- data/lib/ezcater_rubocop/version.rb +1 -1
- metadata +27 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1954a86bbf714306597d8b17c353a3fbe085020b
|
4
|
+
data.tar.gz: d484da682bda708de84d93516d0f951084a84cca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46064fcaccf64010b75db83ff9051168052fd196e81b924ba3972306afb3d7c5552f3ae57e55a358c1ee82b7da9c8e156fbea6343c8e96d2713ba9bd7ed98125
|
7
|
+
data.tar.gz: 55b06408a292be3caac5b68f10a363aac2a01d43651f163c42f3cb935f0092916433722f52b2efb67544b0385fa9d16430d307f2f33ca93c79dcf741aadfc83d
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,15 @@ 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
|
+
## v2.1.0
|
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
|
+
|
9
18
|
## v1.4.1
|
10
19
|
- Correct a matching syntax issue with `Ezcater/RubyTimeout` so that it applies in the expected cases.
|
11
20
|
|
data/bin/circle_rubocop.rb
CHANGED
data/conf/rubocop.yml
CHANGED
@@ -3,10 +3,10 @@ require: ezcater_rubocop
|
|
3
3
|
AllCops:
|
4
4
|
DisplayCopNames: true
|
5
5
|
|
6
|
-
Layout/
|
6
|
+
Layout/FirstHashElementIndentation:
|
7
7
|
EnforcedStyle: consistent
|
8
8
|
|
9
|
-
Layout/
|
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
|
-
|
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/
|
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:
|
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
|
data/conf/rubocop_rails.yml
CHANGED
@@ -6,7 +6,7 @@ inherit_mode:
|
|
6
6
|
- Exclude
|
7
7
|
|
8
8
|
AllCops:
|
9
|
-
TargetRailsVersion: 5.
|
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
|
data/ezcater_rubocop.gemspec
CHANGED
@@ -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
|
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.
|
54
|
-
spec.add_runtime_dependency "rubocop-
|
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
|
data/lib/ezcater_rubocop.rb
CHANGED
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
|
+
version: 2.1.0
|
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-
|
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
|
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
|
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.
|
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.
|
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.
|
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.
|
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
|
@@ -192,8 +206,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
206
|
- !ruby/object:Gem::Version
|
193
207
|
version: '0'
|
194
208
|
requirements: []
|
195
|
-
|
196
|
-
|
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: []
|