optimum-energy-rubocop 0.7.6 → 0.7.7
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 +32 -14
- data/VERSION.txt +1 -1
- data/optimum-energy-rubocop.gemspec +1 -1
- data/optimum_energy_rubocop.yml +22 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20c776d18b6b987d6b62b70e4059353cfc33a93369c3bf054b0536b3bda9df69
|
4
|
+
data.tar.gz: 63d893948684ae9a30e5ef249fa20aa94e2e8f45997dba8c645db34b6bb9f86f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78582677dd14837e8b301ac1d435ac74d655db94a62dd08aa0d132958904ff9aa893179eb86e4ee18931a626ad3ebbac864fb4dbbf630d2eb8e63f5091891126
|
7
|
+
data.tar.gz: cfcabe6d8169de650e13c6cb2633494f8c383b14c1e5fb16d6cf4b3eb0a0d2a85ff37aae59cd67c90bf0955d96bb8bb32d7f341d6d49b7bd5ef68e9aaf7fc443
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.1
|
data/Dockerfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,52 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
optimum-energy-rubocop (0.7.
|
4
|
+
optimum-energy-rubocop (0.7.5)
|
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.0.3.2)
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
i18n (>= 0.7, < 2)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
tzinfo (~> 1.1)
|
16
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
17
|
+
ast (2.4.1)
|
18
|
+
concurrent-ruby (1.1.6)
|
19
|
+
i18n (1.8.5)
|
20
|
+
concurrent-ruby (~> 1.0)
|
21
|
+
minitest (5.14.1)
|
22
|
+
parallel (1.19.2)
|
23
|
+
parser (2.7.1.4)
|
24
|
+
ast (~> 2.4.1)
|
25
|
+
rack (2.2.3)
|
17
26
|
rainbow (3.0.0)
|
27
|
+
regexp_parser (1.7.1)
|
18
28
|
rexml (3.2.4)
|
19
|
-
rubocop (0.
|
20
|
-
jaro_winkler (~> 1.5.1)
|
29
|
+
rubocop (0.88.0)
|
21
30
|
parallel (~> 1.10)
|
22
|
-
parser (>= 2.7.
|
31
|
+
parser (>= 2.7.1.1)
|
23
32
|
rainbow (>= 2.2.2, < 4.0)
|
33
|
+
regexp_parser (>= 1.7)
|
24
34
|
rexml
|
35
|
+
rubocop-ast (>= 0.1.0, < 1.0)
|
25
36
|
ruby-progressbar (~> 1.7)
|
26
37
|
unicode-display_width (>= 1.4.0, < 2.0)
|
27
|
-
rubocop-
|
38
|
+
rubocop-ast (0.2.0)
|
39
|
+
parser (>= 2.7.0.1)
|
40
|
+
rubocop-rails (2.7.1)
|
41
|
+
activesupport (>= 4.2.0)
|
28
42
|
rack (>= 1.1)
|
29
|
-
rubocop (>= 0.
|
43
|
+
rubocop (>= 0.87.0)
|
30
44
|
ruby-progressbar (1.10.1)
|
45
|
+
thread_safe (0.3.6)
|
46
|
+
tzinfo (1.2.7)
|
47
|
+
thread_safe (~> 0.1)
|
31
48
|
unicode-display_width (1.7.0)
|
49
|
+
zeitwerk (2.4.0)
|
32
50
|
|
33
51
|
PLATFORMS
|
34
52
|
ruby
|
@@ -37,7 +55,7 @@ DEPENDENCIES
|
|
37
55
|
optimum-energy-rubocop!
|
38
56
|
|
39
57
|
RUBY VERSION
|
40
|
-
ruby 2.7.
|
58
|
+
ruby 2.7.1p83
|
41
59
|
|
42
60
|
BUNDLED WITH
|
43
61
|
2.1.4
|
data/VERSION.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.7
|
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/*'
|
@@ -79,6 +85,13 @@ Layout/MultilineMethodCallIndentation:
|
|
79
85
|
Layout/MultilineOperationIndentation:
|
80
86
|
EnforcedStyle: indented
|
81
87
|
|
88
|
+
# Ideally we'd be able to configure begin/rescue blocks to align how our other blocks do, but for
|
89
|
+
# now there doesn't seem to be an option for it.
|
90
|
+
#
|
91
|
+
# TODO: Move this rule change to optimum-energy-rubocop-config.
|
92
|
+
Layout/RescueEnsureAlignment:
|
93
|
+
Enabled: false
|
94
|
+
|
82
95
|
Layout/SpaceInsideArrayLiteralBrackets:
|
83
96
|
EnforcedStyle: space
|
84
97
|
|
@@ -177,6 +190,11 @@ Rails/Date:
|
|
177
190
|
Rails/FilePath:
|
178
191
|
Enabled: false
|
179
192
|
|
193
|
+
# By default, the Rubocop Rails rules warn against using has_and_belongs_to_many. This disables that
|
194
|
+
# behavior. Don't you tell me what to do Rubocop.
|
195
|
+
Rails/HasAndBelongsToMany:
|
196
|
+
Enabled: false
|
197
|
+
|
180
198
|
Rails/NotNullColumn:
|
181
199
|
Enabled: false
|
182
200
|
|
@@ -218,6 +236,10 @@ Style/ExponentialNotation:
|
|
218
236
|
Style/FormatString:
|
219
237
|
EnforcedStyle: percent
|
220
238
|
|
239
|
+
# This rule is wrong for Rails validation messages.
|
240
|
+
Style/FormatStringToken:
|
241
|
+
Enabled: false
|
242
|
+
|
221
243
|
# TODO: This won't be necessary when we upgrade to Ruby 3.0. Until then, rather than adding a
|
222
244
|
# comment to every file, we should only add it to the files where it's necessary.
|
223
245
|
Style/FrozenStringLiteralComment:
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Optimum Energy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-30 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: []
|