rubocop-config-umbrellio 0.48.1.4 → 0.49.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubocop.rails.yml +7 -0
- data/lib/rubocop.yml +57 -15
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63a8e29dcb90d667437a4124643f82a3770030ca
|
4
|
+
data.tar.gz: a2fc71a17848d3c3d25b9656d11f5487f0f69770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72d7ae643721830f49730e7221ac87c07c029bd7556e7ada016bf9ed8287cef6a66c3db0575295963a44bba60c9f0625dcc51e2e35b5cc806250bbe97b7cb2fc
|
7
|
+
data.tar.gz: ce47e67b863e95bb29e117f646ff1041f561e3d987a23112c4fb79b56c848411be73b905ae2da05e3d56ca322e5d7f1729d11ec088ca13e097137d6d32fb1336
|
data/lib/rubocop.rails.yml
CHANGED
data/lib/rubocop.yml
CHANGED
@@ -4,7 +4,24 @@ AllCops:
|
|
4
4
|
Exclude:
|
5
5
|
- bin/**/*
|
6
6
|
|
7
|
-
#
|
7
|
+
# Layout
|
8
|
+
|
9
|
+
Layout/AlignParameters:
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
Layout/MultilineMethodCallIndentation:
|
13
|
+
Enabled: true
|
14
|
+
|
15
|
+
Layout/MultilineOperationIndentation:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Layout/SpaceInLambdaLiteral:
|
19
|
+
EnforcedStyle: require_space
|
20
|
+
|
21
|
+
Layout/SpaceInsideBrackets:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
# Lint
|
8
25
|
|
9
26
|
Lint/AmbiguousBlockAssociation:
|
10
27
|
# `scope :name, -> (param) { ... }` is a valid syntax
|
@@ -19,9 +36,17 @@ Lint/NonLocalExitFromIterator:
|
|
19
36
|
Lint/HandleExceptions:
|
20
37
|
Enabled: false
|
21
38
|
|
39
|
+
Lint/RescueType:
|
40
|
+
# It's generally useless, but why not?
|
41
|
+
Enabled: true
|
42
|
+
|
22
43
|
Lint/ShadowingOuterLocalVariable:
|
23
44
|
Enabled: false
|
24
45
|
|
46
|
+
Lint/ScriptPermission:
|
47
|
+
# checks +x on scripts
|
48
|
+
Enabled: true
|
49
|
+
|
25
50
|
# Metrics
|
26
51
|
|
27
52
|
Metrics/AbcSize:
|
@@ -50,6 +75,9 @@ Metrics/PerceivedComplexity:
|
|
50
75
|
|
51
76
|
# Performance
|
52
77
|
|
78
|
+
Performance/Caller:
|
79
|
+
Enabled: true
|
80
|
+
|
53
81
|
Performance/Casecmp:
|
54
82
|
Enabled: false
|
55
83
|
|
@@ -70,6 +98,9 @@ RSpec/DescribedClass:
|
|
70
98
|
RSpec/DescribeMethod:
|
71
99
|
Enabled: false
|
72
100
|
|
101
|
+
RSpec/FilePath:
|
102
|
+
Enabled: false
|
103
|
+
|
73
104
|
RSpec/LetSetup:
|
74
105
|
Enabled: false
|
75
106
|
|
@@ -97,9 +128,6 @@ Style/AccessorMethodName:
|
|
97
128
|
# This cop assumes every method is accessor
|
98
129
|
Enabled: false
|
99
130
|
|
100
|
-
Style/AlignParameters:
|
101
|
-
Enabled: true
|
102
|
-
|
103
131
|
Style/AndOr:
|
104
132
|
# `do_something and return`
|
105
133
|
Enabled: false
|
@@ -131,6 +159,18 @@ Style/EmptyElse:
|
|
131
159
|
Style/Encoding:
|
132
160
|
Enabled: false
|
133
161
|
|
162
|
+
Style/FormatStringToken:
|
163
|
+
# Bad
|
164
|
+
# [7] pry(main)> format "%{foo}", foo: 123
|
165
|
+
# => "123"
|
166
|
+
# Good
|
167
|
+
# [8] pry(main)> format "%<foo>s", foo: 123
|
168
|
+
# => "123"
|
169
|
+
# Also good
|
170
|
+
# [9] pry(main)> format "%<foo>f", foo: 123
|
171
|
+
# => "123.000000"
|
172
|
+
Enabled: true
|
173
|
+
|
134
174
|
Style/IfUnlessModifier:
|
135
175
|
Enabled: true
|
136
176
|
|
@@ -143,15 +183,18 @@ Style/LambdaCall:
|
|
143
183
|
Style/ModuleFunction:
|
144
184
|
Enabled: false
|
145
185
|
|
146
|
-
Style/MultilineMethodCallIndentation:
|
147
|
-
Enabled: false
|
148
|
-
|
149
|
-
Style/MultilineOperationIndentation:
|
150
|
-
Enabled: false
|
151
|
-
|
152
186
|
Style/MultilineTernaryOperator:
|
153
187
|
Enabled: false
|
154
188
|
|
189
|
+
Style/MultipleComparison:
|
190
|
+
# Bad
|
191
|
+
# if foo == 1 || foo == 2
|
192
|
+
# Good
|
193
|
+
# [1, 2].include?(foo)
|
194
|
+
# With activesupport, this is better
|
195
|
+
# foo.in? [1, 2]
|
196
|
+
Enabled: true
|
197
|
+
|
155
198
|
Style/NumericLiterals:
|
156
199
|
Description: 'Use indent in groups of 3 unlesss you meet project-specific rule'
|
157
200
|
Enabled: false
|
@@ -179,8 +222,6 @@ Style/RegexpLiteral:
|
|
179
222
|
Style/RescueModifier:
|
180
223
|
Enabled: false
|
181
224
|
|
182
|
-
Style/SpaceInLambdaLiteral:
|
183
|
-
EnforcedStyle: require_space
|
184
225
|
|
185
226
|
Style/StringLiterals:
|
186
227
|
EnforcedStyle: double_quotes
|
@@ -195,9 +236,6 @@ Style/SingleLineBlockParams:
|
|
195
236
|
Style/StringLiteralsInInterpolation:
|
196
237
|
Enabled: false
|
197
238
|
|
198
|
-
Style/SpaceInsideBrackets:
|
199
|
-
Enabled: false
|
200
|
-
|
201
239
|
Style/TrailingCommaInArguments:
|
202
240
|
EnforcedStyleForMultiline: comma
|
203
241
|
|
@@ -207,3 +245,7 @@ Style/TrailingCommaInLiteral:
|
|
207
245
|
Style/TrivialAccessors:
|
208
246
|
AllowPredicates: true
|
209
247
|
Enabled: false
|
248
|
+
|
249
|
+
Style/YodaCondition:
|
250
|
+
# REVIEW: i sure that we don't need it
|
251
|
+
Enabled: false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-config-umbrellio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.49.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JelF
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.49.1
|
20
20
|
type: :runtime
|
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: 0.
|
26
|
+
version: 0.49.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.15.
|
33
|
+
version: 1.15.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: 1.15.
|
40
|
+
version: 1.15.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,8 +94,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.5.
|
97
|
+
rubygems_version: 2.5.2
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: This gem provides default rubocop settings for Umbrellio projects
|
101
101
|
test_files: []
|
102
|
+
has_rdoc:
|