optimum-energy-rubocop 0.7.5 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Dockerfile +1 -1
- data/Gemfile.lock +34 -17
- data/README.md +2 -5
- data/VERSION.txt +1 -1
- data/deployment.env.encrypted +1 -1
- data/optimum-energy-rubocop.gemspec +2 -1
- data/optimum_energy_rubocop.yml +32 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f48e1d73997672eca1f7f9f9ed4e694a32699640fb5016a07b2d4e974dc8ff6
|
4
|
+
data.tar.gz: 3d89dfa187e9ed25d396885bfeec14fd81c928826d3e67950f33de198b310a9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac23d19c60d717af09466c8a43e6b4fe6b6a3311949b1369262e00dd6b0d6e38cf804ca32b9fe002e55c5d50c7cb02660dc1d29507bdd634c639d462aed5ac39
|
7
|
+
data.tar.gz: 30619cc113971cfa0f0c93a532b1b3982f8a90b6f3735aaf22d4521bb8344943070c90c45e9b61b2dfad088da5a790bedd19873b8ba10ea8567b9168d94bb141
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.1
|
data/Dockerfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,51 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
optimum-energy-rubocop (0.7.
|
4
|
+
optimum-energy-rubocop (0.7.9)
|
5
5
|
rubocop (~> 0.80)
|
6
|
-
rubocop-rails (~> 2.
|
6
|
+
rubocop-rails (~> 2.7.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
activesupport (6.1.4.1)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
zeitwerk (~> 2.3)
|
17
|
+
ast (2.4.2)
|
18
|
+
concurrent-ruby (1.1.9)
|
19
|
+
i18n (1.8.10)
|
20
|
+
concurrent-ruby (~> 1.0)
|
21
|
+
minitest (5.14.4)
|
22
|
+
parallel (1.20.1)
|
23
|
+
parser (3.0.2.0)
|
24
|
+
ast (~> 2.4.1)
|
25
|
+
rack (2.2.3)
|
17
26
|
rainbow (3.0.0)
|
18
|
-
|
19
|
-
|
20
|
-
|
27
|
+
regexp_parser (2.1.1)
|
28
|
+
rexml (3.2.5)
|
29
|
+
rubocop (0.93.1)
|
21
30
|
parallel (~> 1.10)
|
22
|
-
parser (>= 2.7.
|
31
|
+
parser (>= 2.7.1.5)
|
23
32
|
rainbow (>= 2.2.2, < 4.0)
|
33
|
+
regexp_parser (>= 1.8)
|
24
34
|
rexml
|
35
|
+
rubocop-ast (>= 0.6.0)
|
25
36
|
ruby-progressbar (~> 1.7)
|
26
37
|
unicode-display_width (>= 1.4.0, < 2.0)
|
27
|
-
rubocop-
|
38
|
+
rubocop-ast (1.8.0)
|
39
|
+
parser (>= 3.0.1.1)
|
40
|
+
rubocop-rails (2.7.1)
|
41
|
+
activesupport (>= 4.2.0)
|
28
42
|
rack (>= 1.1)
|
29
|
-
rubocop (>= 0.
|
30
|
-
ruby-progressbar (1.
|
43
|
+
rubocop (>= 0.87.0)
|
44
|
+
ruby-progressbar (1.11.0)
|
45
|
+
tzinfo (2.0.4)
|
46
|
+
concurrent-ruby (~> 1.0)
|
31
47
|
unicode-display_width (1.7.0)
|
48
|
+
zeitwerk (2.4.2)
|
32
49
|
|
33
50
|
PLATFORMS
|
34
51
|
ruby
|
@@ -37,7 +54,7 @@ DEPENDENCIES
|
|
37
54
|
optimum-energy-rubocop!
|
38
55
|
|
39
56
|
RUBY VERSION
|
40
|
-
ruby 2.7.
|
57
|
+
ruby 2.7.1p83
|
41
58
|
|
42
59
|
BUNDLED WITH
|
43
|
-
2.
|
60
|
+
2.2.28
|
data/README.md
CHANGED
@@ -15,11 +15,8 @@ gem 'optimum-energy-rubocop'
|
|
15
15
|
Create a `.rubocop.yml` file and add this configuration.
|
16
16
|
|
17
17
|
```
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
inherit_from:
|
22
|
-
- optimum_energy_rubocop.yml
|
18
|
+
inherit_gem:
|
19
|
+
optimum-energy-rubocop: optimum_energy_rubocop.yml
|
23
20
|
```
|
24
21
|
|
25
22
|
## Updating This Gem
|
data/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.9
|
data/deployment.env.encrypted
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
codeship:v2
|
2
|
-
|
2
|
+
IKBJYRm4ObjGLsvovpL6Ov+IwE3JgQtN2ckNn2AbftoBWh9gEKXDRD9LPhZfKPiaDTNrUWIvNFKNqGI6eMNm6r5Uu/1iHZdnmwoP5t9pv+4t8S+dYsSfzNhvJ9psisoN1hTT/8+CtxyZ13BEhS4ejF2aUZ+8IePxKLr+NTk=
|
@@ -1,6 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "optimum-energy-rubocop"
|
3
3
|
spec.version = File.read("VERSION.txt")
|
4
|
+
spec.required_ruby_version = "~> 2.7"
|
4
5
|
spec.authors = [ "Optimum Energy" ]
|
5
6
|
|
6
7
|
spec.summary = "The shared Rubocop configuration for Optimum Energy"
|
@@ -10,5 +11,5 @@ Gem::Specification.new do |spec|
|
|
10
11
|
spec.files = `git ls-files -z`.split("\x0")
|
11
12
|
|
12
13
|
spec.add_dependency "rubocop", "~> 0.80"
|
13
|
-
spec.add_dependency "rubocop-rails", "~> 2.
|
14
|
+
spec.add_dependency "rubocop-rails", "~> 2.7.1"
|
14
15
|
end
|
data/optimum_energy_rubocop.yml
CHANGED
@@ -4,6 +4,12 @@
|
|
4
4
|
require: rubocop-rails
|
5
5
|
|
6
6
|
AllCops:
|
7
|
+
|
8
|
+
# By default, Rubocop now displays warnings for all cops that are going to be enabled in the next
|
9
|
+
# minor version. This disables those cops. We'll pick them up when Rubocop decided they're good
|
10
|
+
# enough to enable by default for everyone.
|
11
|
+
NewCops: disable
|
12
|
+
|
7
13
|
Exclude:
|
8
14
|
- 'db/schema.rb'
|
9
15
|
- 'bin/*'
|
@@ -21,6 +27,9 @@ Layout/BlockAlignment:
|
|
21
27
|
Layout/CaseIndentation:
|
22
28
|
EnforcedStyle: end
|
23
29
|
|
30
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
31
|
+
Enabled: true
|
32
|
+
|
24
33
|
# Unfortuantely, this rule can't be refined to the point of being useful.
|
25
34
|
Layout/EmptyLinesAroundMethodBody:
|
26
35
|
Enabled: false
|
@@ -69,6 +78,7 @@ Layout/LineLength:
|
|
69
78
|
Max: 100
|
70
79
|
AllowHeredoc: false
|
71
80
|
AllowURI: false
|
81
|
+
AutoCorrect: true
|
72
82
|
|
73
83
|
Layout/MultilineMethodCallIndentation:
|
74
84
|
EnforcedStyle: indented
|
@@ -76,6 +86,13 @@ Layout/MultilineMethodCallIndentation:
|
|
76
86
|
Layout/MultilineOperationIndentation:
|
77
87
|
EnforcedStyle: indented
|
78
88
|
|
89
|
+
# Ideally we'd be able to configure begin/rescue blocks to align how our other blocks do, but for
|
90
|
+
# now there doesn't seem to be an option for it.
|
91
|
+
#
|
92
|
+
# TODO: Move this rule change to optimum-energy-rubocop-config.
|
93
|
+
Layout/RescueEnsureAlignment:
|
94
|
+
Enabled: false
|
95
|
+
|
79
96
|
Layout/SpaceInsideArrayLiteralBrackets:
|
80
97
|
EnforcedStyle: space
|
81
98
|
|
@@ -174,6 +191,11 @@ Rails/Date:
|
|
174
191
|
Rails/FilePath:
|
175
192
|
Enabled: false
|
176
193
|
|
194
|
+
# By default, the Rubocop Rails rules warn against using has_and_belongs_to_many. This disables that
|
195
|
+
# behavior. Don't you tell me what to do Rubocop.
|
196
|
+
Rails/HasAndBelongsToMany:
|
197
|
+
Enabled: false
|
198
|
+
|
177
199
|
Rails/NotNullColumn:
|
178
200
|
Enabled: false
|
179
201
|
|
@@ -190,6 +212,9 @@ Rails/TimeZone:
|
|
190
212
|
Style/AccessModifierDeclarations:
|
191
213
|
EnforcedStyle: inline
|
192
214
|
|
215
|
+
Style/ClassAndModuleChildren:
|
216
|
+
Enabled: false
|
217
|
+
|
193
218
|
Style/ConditionalAssignment:
|
194
219
|
EnforcedStyle: assign_to_condition
|
195
220
|
|
@@ -215,6 +240,10 @@ Style/ExponentialNotation:
|
|
215
240
|
Style/FormatString:
|
216
241
|
EnforcedStyle: percent
|
217
242
|
|
243
|
+
# This rule is wrong for Rails validation messages.
|
244
|
+
Style/FormatStringToken:
|
245
|
+
Enabled: false
|
246
|
+
|
218
247
|
# TODO: This won't be necessary when we upgrade to Ruby 3.0. Until then, rather than adding a
|
219
248
|
# comment to every file, we should only add it to the files where it's necessary.
|
220
249
|
Style/FrozenStringLiteralComment:
|
@@ -244,6 +273,9 @@ Style/RegexpLiteral:
|
|
244
273
|
Style/ReturnNil:
|
245
274
|
Enabled: true
|
246
275
|
|
276
|
+
Style/SlicingWithRange:
|
277
|
+
Enabled: true
|
278
|
+
|
247
279
|
Style/StringLiterals:
|
248
280
|
EnforcedStyle: double_quotes
|
249
281
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optimum-energy-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Optimum Energy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.7.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: 2.
|
40
|
+
version: 2.7.1
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
executables: []
|
@@ -70,9 +70,9 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.7'
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - ">="
|