sym 2.8.1 → 3.0.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 +5 -5
- data/.circleci/config.yml +31 -30
- data/.envrc +7 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +150 -928
- data/.travis.yml +16 -26
- data/CHANGELOG.md +220 -167
- data/Gemfile +1 -0
- data/LICENSE +2 -2
- data/README.adoc +670 -0
- data/Rakefile +10 -4
- data/bin/changelog +34 -0
- data/bin/sym.completion.bash +6 -4
- data/bin/sym.symit.bash +412 -187
- data/codecov.yml +29 -0
- data/design/sym-class-dependency-future-refactor.png +0 -0
- data/design/sym-class-dependency-vertical.png +0 -0
- data/design/sym-class-dependency.graffle +0 -0
- data/design/sym-class-dependency.png +0 -0
- data/design/sym-help.png +0 -0
- data/exe/keychain +1 -1
- data/exe/sym +5 -2
- data/lib/ruby_warnings.rb +7 -0
- data/lib/sym.rb +2 -8
- data/lib/sym/app.rb +1 -2
- data/lib/sym/app/args.rb +3 -2
- data/lib/sym/app/cli.rb +34 -21
- data/lib/sym/app/cli_slop.rb +9 -2
- data/lib/sym/app/commands.rb +1 -1
- data/lib/sym/app/commands/base_command.rb +1 -1
- data/lib/sym/app/commands/bash_completion.rb +2 -2
- data/lib/sym/app/commands/open_editor.rb +1 -1
- data/lib/sym/app/commands/password_protect_key.rb +4 -4
- data/lib/sym/app/commands/show_examples.rb +1 -1
- data/lib/sym/app/input/handler.rb +7 -1
- data/lib/sym/app/keychain.rb +15 -9
- data/lib/sym/app/output/noop.rb +2 -1
- data/lib/sym/app/password/cache.rb +1 -1
- data/lib/sym/app/password/providers.rb +2 -3
- data/lib/sym/app/private_key/decryptor.rb +2 -2
- data/lib/sym/app/private_key/detector.rb +4 -7
- data/lib/sym/application.rb +6 -11
- data/lib/sym/constants.rb +39 -23
- data/lib/sym/data/wrapper_struct.rb +20 -12
- data/lib/sym/errors.rb +13 -2
- data/lib/sym/extensions/instance_methods.rb +7 -8
- data/lib/sym/extensions/stdlib.rb +0 -1
- data/lib/sym/extensions/with_retry.rb +1 -1
- data/lib/sym/extensions/with_timeout.rb +1 -1
- data/lib/sym/version.rb +54 -5
- data/sym.gemspec +36 -35
- metadata +102 -66
- data/.codeclimate.yml +0 -30
- data/README.md +0 -623
- data/lib/sym/app/password/providers/drb_provider.rb +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 96b146e9f4e68299d11d3aa550f32cf34c85de0ce8b91829e2d7db0e39d9da8a
|
4
|
+
data.tar.gz: c55848a53c59090e471b207d3e170fa803aa61969f4689c4cdffe507ebe8babf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a577c64acd5fb45c06526757602810b210c9fc4af413961be85618abdb88754e3689b4e7d78ed1dd3714abb22484bae86d7111b6a6c887568ab57c818cdc94e
|
7
|
+
data.tar.gz: dd26342b6c02825c85f847268f4a69f0da85dd42bcae7e6064515bf88c32f17eb08e19e9b65758825dbb28ff5b7fd0a878dcc9b2e0fb83be915120b0ce0284ae
|
data/.circleci/config.yml
CHANGED
@@ -7,16 +7,19 @@ jobs:
|
|
7
7
|
build:
|
8
8
|
docker:
|
9
9
|
# specify the version you desire here
|
10
|
-
- image: circleci/ruby:2.
|
11
|
-
|
10
|
+
- image: circleci/ruby:2.6.2-node-browsers-legacy
|
11
|
+
environment:
|
12
|
+
TEST_DRB: false
|
13
|
+
|
14
|
+
- image: memcached:latest
|
15
|
+
|
12
16
|
working_directory: ~/repo
|
13
17
|
|
14
18
|
steps:
|
15
19
|
- checkout
|
16
20
|
- restore_cache:
|
17
21
|
keys:
|
18
|
-
- v1-dependencies-{{ checksum "Gemfile
|
19
|
-
- v1-dependencies-
|
22
|
+
- v1-dependencies-{{ checksum "Gemfile" }}
|
20
23
|
|
21
24
|
- run:
|
22
25
|
name: install dependencies
|
@@ -25,35 +28,33 @@ jobs:
|
|
25
28
|
|
26
29
|
- save_cache:
|
27
30
|
paths:
|
28
|
-
- ./vendor/bundle
|
29
|
-
key: v1-dependencies-{{ checksum "Gemfile
|
30
|
-
|
31
|
-
- run:
|
32
|
-
name: install
|
33
|
-
command:
|
34
|
-
|
35
|
-
|
36
|
-
memcached -d || true
|
37
|
-
echo "checking if memcached is running...."
|
38
|
-
ps -ef | grep [m]emcached
|
31
|
+
- ./vendor/bundle
|
32
|
+
key: v1-dependencies-{{ checksum "Gemfile" }}
|
33
|
+
|
34
|
+
- run:
|
35
|
+
name: install dockerize
|
36
|
+
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
37
|
+
environment:
|
38
|
+
DOCKERIZE_VERSION: v0.3.0
|
39
39
|
|
40
40
|
- run:
|
41
|
-
name:
|
41
|
+
name: Wait for the memcached
|
42
|
+
command: dockerize -wait tcp://localhost:11211 -timeout 1m
|
43
|
+
|
44
|
+
- run:
|
45
|
+
name: RSpecs
|
42
46
|
command: |
|
43
|
-
|
47
|
+
export PATH=".:$PATH"
|
48
|
+
bundle exec rspec --version
|
49
|
+
bundle exec exe/sym --version
|
50
|
+
# flush memcached
|
51
|
+
printf "flush_all\r\nquit\r\n" | timeout -k 2 -s HUP 10 nc -G 4 127.0.0.1 11211 || true
|
52
|
+
timeout -k 2 -s HUP 30 bundle exec rspec --order random --backtrace
|
44
53
|
|
45
54
|
- run:
|
46
|
-
name:
|
55
|
+
name: Rubocop
|
47
56
|
command: |
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
export USER=circleci
|
53
|
-
export HOME=/home/${USER}/repo
|
54
|
-
ruby --version
|
55
|
-
bundle exec rspec --version
|
56
|
-
bundle exec exe/sym --version
|
57
|
-
bundle exec rspec --backtrace --format documentation
|
58
|
-
"
|
59
|
-
|
57
|
+
bundle exec rubocop --version
|
58
|
+
bundle exec rubocop
|
59
|
+
|
60
|
+
|
data/.envrc
ADDED
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,1156 +1,378 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#################### Lint ################################
|
5
|
-
|
6
|
-
Lint/AmbiguousOperator:
|
7
|
-
Description: >-
|
8
|
-
Checks for ambiguous operators in the first argument of a
|
9
|
-
method invocation without parentheses.
|
10
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
|
11
|
-
Enabled: true
|
12
|
-
|
13
|
-
Lint/AmbiguousRegexpLiteral:
|
14
|
-
Description: >-
|
15
|
-
Checks for ambiguous regexp literals in the first argument of
|
16
|
-
a method invocation without parenthesis.
|
17
|
-
Enabled: true
|
18
|
-
|
19
|
-
Lint/AssignmentInCondition:
|
20
|
-
Description: "Don't use assignment in conditions."
|
21
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
|
22
|
-
Enabled: true
|
23
|
-
|
24
|
-
Lint/BlockAlignment:
|
25
|
-
Description: 'Align block ends correctly.'
|
26
|
-
Enabled: true
|
27
|
-
|
28
|
-
Lint/CircularArgumentReference:
|
29
|
-
Description: "Don't refer to the keyword argument in the default value."
|
30
|
-
Enabled: true
|
31
|
-
|
32
|
-
Lint/ConditionPosition:
|
33
|
-
Description: >-
|
34
|
-
Checks for condition placed in a confusing position relative to
|
35
|
-
the keyword.
|
36
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
|
37
|
-
Enabled: true
|
38
|
-
|
39
|
-
Lint/Debugger:
|
40
|
-
Description: 'Check for debugger calls.'
|
41
|
-
Enabled: true
|
42
|
-
|
43
|
-
Lint/DefEndAlignment:
|
44
|
-
Description: 'Align ends corresponding to defs correctly.'
|
45
|
-
Enabled: true
|
46
|
-
|
47
|
-
Lint/DeprecatedClassMethods:
|
48
|
-
Description: 'Check for deprecated class method calls.'
|
49
|
-
Enabled: true
|
50
|
-
|
51
|
-
Lint/DuplicateMethods:
|
52
|
-
Description: 'Check for duplicate methods calls.'
|
53
|
-
Enabled: true
|
54
|
-
|
55
|
-
Lint/EachWithObjectArgument:
|
56
|
-
Description: 'Check for immutable argument given to each_with_object.'
|
57
|
-
Enabled: true
|
58
|
-
|
59
|
-
Lint/ElseLayout:
|
60
|
-
Description: 'Check for odd code arrangement in an else block.'
|
61
|
-
Enabled: true
|
62
|
-
|
63
|
-
Lint/EmptyEnsure:
|
64
|
-
Description: 'Checks for empty ensure block.'
|
65
|
-
Enabled: true
|
66
|
-
|
67
|
-
Lint/EmptyInterpolation:
|
68
|
-
Description: 'Checks for empty string interpolation.'
|
69
|
-
Enabled: true
|
70
|
-
|
71
|
-
Lint/EndAlignment:
|
72
|
-
Description: 'Align ends correctly.'
|
73
|
-
Enabled: true
|
74
|
-
|
75
|
-
Lint/EndInMethod:
|
76
|
-
Description: 'END blocks should not be placed inside method definitions.'
|
77
|
-
Enabled: true
|
78
|
-
|
79
|
-
Lint/EnsureReturn:
|
80
|
-
Description: 'Do not use return in an ensure block.'
|
81
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
|
82
|
-
Enabled: true
|
83
|
-
|
84
|
-
Lint/Eval:
|
85
|
-
Description: 'The use of eval represents a serious security risk.'
|
86
|
-
Enabled: true
|
87
|
-
|
88
|
-
Lint/FormatParameterMismatch:
|
89
|
-
Description: 'The number of parameters to format/sprint must match the fields.'
|
90
|
-
Enabled: true
|
91
|
-
|
92
|
-
Lint/HandleExceptions:
|
93
|
-
Description: "Don't suppress exception."
|
94
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
|
95
|
-
Enabled: true
|
96
|
-
|
97
|
-
Lint/InvalidCharacterLiteral:
|
98
|
-
Description: >-
|
99
|
-
Checks for invalid character literals with a non-escaped
|
100
|
-
whitespace character.
|
101
|
-
Enabled: true
|
102
|
-
|
103
|
-
Lint/LiteralInCondition:
|
104
|
-
Description: 'Checks of literals used in conditions.'
|
105
|
-
Enabled: true
|
106
|
-
|
107
|
-
Lint/LiteralInInterpolation:
|
108
|
-
Description: 'Checks for literals used in interpolation.'
|
109
|
-
Enabled: true
|
110
|
-
|
111
|
-
Lint/Loop:
|
112
|
-
Description: >-
|
113
|
-
Use Kernel#loop with break rather than begin/end/until or
|
114
|
-
begin/end/while for post-loop tests.
|
115
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
|
116
|
-
Enabled: true
|
117
|
-
|
118
|
-
Lint/NestedMethodDefinition:
|
119
|
-
Description: 'Do not use nested method definitions.'
|
120
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
|
121
|
-
Enabled: true
|
122
|
-
|
123
|
-
Lint/NonLocalExitFromIterator:
|
124
|
-
Description: 'Do not use return in iterator to cause non-local exit.'
|
125
|
-
Enabled: true
|
126
|
-
|
127
|
-
Lint/ParenthesesAsGroupedExpression:
|
128
|
-
Description: >-
|
129
|
-
Checks for method calls with a space before the opening
|
130
|
-
parenthesis.
|
131
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
132
|
-
Enabled: true
|
133
|
-
|
134
|
-
Lint/RequireParentheses:
|
135
|
-
Description: >-
|
136
|
-
Use parentheses in the method call to avoid confusion
|
137
|
-
about precedence.
|
138
|
-
Enabled: true
|
139
|
-
|
140
|
-
Lint/RescueException:
|
141
|
-
Description: 'Avoid rescuing the Exception class.'
|
142
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
|
143
|
-
Enabled: true
|
144
|
-
|
145
|
-
Lint/ShadowingOuterLocalVariable:
|
146
|
-
Description: >-
|
147
|
-
Do not use the same name as outer local variable
|
148
|
-
for block arguments or block local variables.
|
149
|
-
Enabled: true
|
150
|
-
|
151
|
-
Lint/StringConversionInInterpolation:
|
152
|
-
Description: 'Checks for Object#to_s usage in string interpolation.'
|
153
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
|
154
|
-
Enabled: true
|
155
|
-
|
156
|
-
Lint/UnderscorePrefixedVariableName:
|
157
|
-
Description: 'Do not use prefix `_` for a variable that is used.'
|
158
|
-
Enabled: true
|
159
|
-
|
160
|
-
Lint/UnneededDisable:
|
161
|
-
Description: >-
|
162
|
-
Checks for rubocop:disable comments that can be removed.
|
163
|
-
Note: this cop is not disabled when disabling all cops.
|
164
|
-
It must be explicitly disabled.
|
165
|
-
Enabled: true
|
166
|
-
|
167
|
-
Lint/UnusedBlockArgument:
|
168
|
-
Description: 'Checks for unused block arguments.'
|
169
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
170
|
-
Enabled: true
|
171
|
-
|
172
|
-
Lint/UnusedMethodArgument:
|
173
|
-
Description: 'Checks for unused method arguments.'
|
174
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
175
|
-
Enabled: true
|
176
|
-
|
177
|
-
Lint/UnreachableCode:
|
178
|
-
Description: 'Unreachable code.'
|
179
|
-
Enabled: true
|
180
|
-
|
181
|
-
Lint/UselessAccessModifier:
|
182
|
-
Description: 'Checks for useless access modifiers.'
|
183
|
-
Enabled: true
|
1
|
+
inherit_gem:
|
2
|
+
relaxed-rubocop: .rubocop.yml
|
184
3
|
|
185
|
-
|
186
|
-
|
187
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
188
|
-
Enabled: true
|
189
|
-
|
190
|
-
Lint/UselessComparison:
|
191
|
-
Description: 'Checks for comparison of something with itself.'
|
192
|
-
Enabled: true
|
193
|
-
|
194
|
-
Lint/UselessElseWithoutRescue:
|
195
|
-
Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
|
196
|
-
Enabled: true
|
197
|
-
|
198
|
-
Lint/UselessSetterCall:
|
199
|
-
Description: 'Checks for useless setter call to a local variable.'
|
200
|
-
Enabled: true
|
201
|
-
|
202
|
-
Lint/Void:
|
203
|
-
Description: 'Possible use of operator/literal/variable in void context.'
|
204
|
-
Enabled: true
|
205
|
-
|
206
|
-
###################### Metrics ####################################
|
207
|
-
|
208
|
-
Metrics/AbcSize:
|
209
|
-
Description: >-
|
210
|
-
A calculated magnitude based on number of assignments,
|
211
|
-
branches, and conditions.
|
212
|
-
Reference: 'http://c2.com/cgi/wiki?AbcMetric'
|
213
|
-
Enabled: false
|
214
|
-
Max: 20
|
215
|
-
|
216
|
-
Metrics/BlockNesting:
|
217
|
-
Description: 'Avoid excessive block nesting'
|
218
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
|
219
|
-
Enabled: true
|
220
|
-
Max: 4
|
221
|
-
|
222
|
-
Metrics/ClassLength:
|
223
|
-
Description: 'Avoid classes longer than 250 lines of code.'
|
224
|
-
Enabled: true
|
225
|
-
Max: 250
|
226
|
-
|
227
|
-
Metrics/CyclomaticComplexity:
|
228
|
-
Description: >-
|
229
|
-
A complexity metric that is strongly correlated to the number
|
230
|
-
of test cases needed to validate a method.
|
231
|
-
Enabled: true
|
232
|
-
|
233
|
-
Metrics/LineLength:
|
234
|
-
Description: 'Limit lines to 80 characters.'
|
235
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
236
|
-
Enabled: false
|
237
|
-
|
238
|
-
Metrics/MethodLength:
|
239
|
-
Description: 'Avoid methods longer than 30 lines of code.'
|
240
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
|
241
|
-
Enabled: true
|
242
|
-
Max: 30
|
243
|
-
|
244
|
-
Metrics/ModuleLength:
|
245
|
-
Description: 'Avoid modules longer than 250 lines of code.'
|
246
|
-
Enabled: true
|
247
|
-
Max: 250
|
248
|
-
|
249
|
-
Metrics/ParameterLists:
|
250
|
-
Description: 'Avoid parameter lists longer than three or four parameters.'
|
251
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
|
252
|
-
Enabled: true
|
253
|
-
|
254
|
-
Metrics/PerceivedComplexity:
|
255
|
-
Description: >-
|
256
|
-
A complexity metric geared towards measuring complexity for a
|
257
|
-
human reader.
|
258
|
-
Enabled: false
|
259
|
-
|
260
|
-
##################### Performance #############################
|
261
|
-
|
262
|
-
Performance/Count:
|
263
|
-
Description: >-
|
264
|
-
Use `count` instead of `select...size`, `reject...size`,
|
265
|
-
`select...count`, `reject...count`, `select...length`,
|
266
|
-
and `reject...length`.
|
267
|
-
Enabled: true
|
268
|
-
|
269
|
-
Performance/Detect:
|
270
|
-
Description: >-
|
271
|
-
Use `detect` instead of `select.first`, `find_all.first`,
|
272
|
-
`select.last`, and `find_all.last`.
|
273
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
|
274
|
-
Enabled: true
|
275
|
-
|
276
|
-
Performance/FlatMap:
|
277
|
-
Description: >-
|
278
|
-
Use `Enumerable#flat_map`
|
279
|
-
instead of `Enumerable#map...Array#flatten(1)`
|
280
|
-
or `Enumberable#collect..Array#flatten(1)`
|
281
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
|
282
|
-
Enabled: true
|
283
|
-
EnabledForFlattenWithoutParams: false
|
284
|
-
# If enabled, this cop will warn about usages of
|
285
|
-
# `flatten` being called without any parameters.
|
286
|
-
# This can be dangerous since `flat_map` will only flatten 1 level, and
|
287
|
-
# `flatten` without any parameters can flatten multiple levels.
|
288
|
-
|
289
|
-
Performance/ReverseEach:
|
290
|
-
Description: 'Use `reverse_each` instead of `reverse.each`.'
|
291
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
|
292
|
-
Enabled: true
|
293
|
-
|
294
|
-
Performance/Sample:
|
295
|
-
Description: >-
|
296
|
-
Use `sample` instead of `shuffle.first`,
|
297
|
-
`shuffle.last`, and `shuffle[Fixnum]`.
|
298
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
|
299
|
-
Enabled: true
|
300
|
-
|
301
|
-
Performance/Size:
|
302
|
-
Description: >-
|
303
|
-
Use `size` instead of `count` for counting
|
304
|
-
the number of elements in `Array` and `Hash`.
|
305
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
|
306
|
-
Enabled: true
|
307
|
-
|
308
|
-
Performance/StringReplacement:
|
309
|
-
Description: >-
|
310
|
-
Use `tr` instead of `gsub` when you are replacing the same
|
311
|
-
number of characters. Use `delete` instead of `gsub` when
|
312
|
-
you are deleting characters.
|
313
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
|
314
|
-
Enabled: true
|
315
|
-
|
316
|
-
##################### Rails ##################################
|
317
|
-
|
318
|
-
Rails/ActionFilter:
|
319
|
-
Description: 'Enforces consistent use of action filter methods.'
|
320
|
-
Enabled: false
|
321
|
-
|
322
|
-
Rails/Date:
|
323
|
-
Description: >-
|
324
|
-
Checks the correct usage of date aware methods,
|
325
|
-
such as Date.today, Date.current etc.
|
326
|
-
Enabled: false
|
327
|
-
|
328
|
-
Rails/Delegate:
|
329
|
-
Description: 'Prefer delegate method for delegations.'
|
330
|
-
Enabled: false
|
331
|
-
|
332
|
-
Rails/FindBy:
|
333
|
-
Description: 'Prefer find_by over where.first.'
|
334
|
-
Enabled: false
|
335
|
-
|
336
|
-
Rails/FindEach:
|
337
|
-
Description: 'Prefer all.find_each over all.find.'
|
338
|
-
Enabled: false
|
339
|
-
|
340
|
-
Rails/HasAndBelongsToMany:
|
341
|
-
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
|
342
|
-
Enabled: false
|
343
|
-
|
344
|
-
Rails/Output:
|
345
|
-
Description: 'Checks for calls to puts, print, etc.'
|
346
|
-
Enabled: false
|
347
|
-
|
348
|
-
Rails/ReadWriteAttribute:
|
349
|
-
Description: >-
|
350
|
-
Checks for read_attribute(:attr) and
|
351
|
-
write_attribute(:attr, val).
|
352
|
-
Enabled: false
|
353
|
-
|
354
|
-
Rails/ScopeArgs:
|
355
|
-
Description: 'Checks the arguments of ActiveRecord scopes.'
|
356
|
-
Enabled: false
|
357
|
-
|
358
|
-
Rails/TimeZone:
|
359
|
-
Description: 'Checks the correct usage of time zone aware methods.'
|
360
|
-
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
|
361
|
-
Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
|
362
|
-
Enabled: false
|
363
|
-
|
364
|
-
Rails/Validation:
|
365
|
-
Description: 'Use validates :attribute, hash of validations.'
|
366
|
-
Enabled: false
|
367
|
-
|
368
|
-
################## Style #################################
|
369
|
-
|
370
|
-
Style/AccessModifierIndentation:
|
371
|
-
Description: Check indentation of private/protected visibility modifiers.
|
372
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
|
373
|
-
Enabled: false
|
374
|
-
|
375
|
-
Style/AccessorMethodName:
|
376
|
-
Description: Check the naming of accessor methods for get_/set_.
|
377
|
-
Enabled: false
|
4
|
+
AllCops:
|
5
|
+
TargetRubyVersion: 2.3
|
378
6
|
|
379
7
|
Style/Alias:
|
380
|
-
Description: 'Use alias_method instead of alias.'
|
381
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
|
382
|
-
Enabled: false
|
383
|
-
|
384
|
-
Style/AlignArray:
|
385
|
-
Description: >-
|
386
|
-
Align the elements of an array literal if they span more than
|
387
|
-
one line.
|
388
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
|
389
|
-
Enabled: false
|
390
|
-
|
391
|
-
Style/AlignHash:
|
392
|
-
Description: >-
|
393
|
-
Align the elements of a hash literal if they span more than
|
394
|
-
one line.
|
395
|
-
Enabled: false
|
396
|
-
|
397
|
-
Style/AlignParameters:
|
398
|
-
Description: >-
|
399
|
-
Align the parameters of a method call if they span more
|
400
|
-
than one line.
|
401
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
|
402
|
-
Enabled: false
|
403
|
-
|
404
|
-
Style/AndOr:
|
405
|
-
Description: 'Use &&/|| instead of and/or.'
|
406
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
|
407
|
-
Enabled: false
|
408
|
-
|
409
|
-
Style/ArrayJoin:
|
410
|
-
Description: 'Use Array#join instead of Array#*.'
|
411
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
|
412
8
|
Enabled: false
|
9
|
+
StyleGuide: https://relaxed.ruby.style/#stylealias
|
413
10
|
|
414
11
|
Style/AsciiComments:
|
415
|
-
Description: 'Use only ascii symbols in comments.'
|
416
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
|
417
|
-
Enabled: false
|
418
|
-
|
419
|
-
Style/AsciiIdentifiers:
|
420
|
-
Description: 'Use only ascii symbols in identifiers.'
|
421
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
|
422
|
-
Enabled: false
|
423
|
-
|
424
|
-
Style/Attr:
|
425
|
-
Description: 'Checks for uses of Module#attr.'
|
426
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
|
427
12
|
Enabled: false
|
13
|
+
StyleGuide: https://relaxed.ruby.style/#styleasciicomments
|
428
14
|
|
429
15
|
Style/BeginBlock:
|
430
|
-
Description: 'Avoid the use of BEGIN blocks.'
|
431
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
|
432
|
-
Enabled: false
|
433
|
-
|
434
|
-
Style/BarePercentLiterals:
|
435
|
-
Description: 'Checks if usage of %() or %Q() matches configuration.'
|
436
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
|
437
|
-
Enabled: false
|
438
|
-
|
439
|
-
Style/BlockComments:
|
440
|
-
Description: 'Do not use block comments.'
|
441
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
|
442
|
-
Enabled: false
|
443
|
-
|
444
|
-
Style/BlockEndNewline:
|
445
|
-
Description: 'Put end statement of multiline block on its own line.'
|
446
16
|
Enabled: false
|
17
|
+
StyleGuide: https://relaxed.ruby.style/#stylebeginblock
|
447
18
|
|
448
19
|
Style/BlockDelimiters:
|
449
|
-
Description: >-
|
450
|
-
Avoid using {...} for multi-line blocks (multiline chaining is
|
451
|
-
always ugly).
|
452
|
-
Prefer {...} over do...end for single-line blocks.
|
453
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
454
|
-
Enabled: false
|
455
|
-
|
456
|
-
Style/BracesAroundHashParameters:
|
457
|
-
Description: 'Enforce braces style around hash parameters.'
|
458
|
-
Enabled: false
|
459
|
-
|
460
|
-
Style/CaseEquality:
|
461
|
-
Description: 'Avoid explicit use of the case equality operator(===).'
|
462
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
|
463
|
-
Enabled: false
|
464
|
-
|
465
|
-
Style/CaseIndentation:
|
466
|
-
Description: 'Indentation of when in a case/when/[else/]end.'
|
467
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
|
468
|
-
Enabled: false
|
469
|
-
|
470
|
-
Style/CharacterLiteral:
|
471
|
-
Description: 'Checks for uses of character literals.'
|
472
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
|
473
|
-
Enabled: false
|
474
|
-
|
475
|
-
Style/ClassAndModuleCamelCase:
|
476
|
-
Description: 'Use CamelCase for classes and modules.'
|
477
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
|
478
|
-
Enabled: false
|
479
|
-
|
480
|
-
Style/ClassAndModuleChildren:
|
481
|
-
Description: 'Checks style of children classes and modules.'
|
482
|
-
Enabled: false
|
483
|
-
|
484
|
-
Style/ClassCheck:
|
485
|
-
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
|
486
|
-
Enabled: false
|
487
|
-
|
488
|
-
Style/ClassMethods:
|
489
|
-
Description: 'Use self when defining module/class methods.'
|
490
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
|
491
|
-
Enabled: false
|
492
|
-
|
493
|
-
Style/ClassVars:
|
494
|
-
Description: 'Avoid the use of class variables.'
|
495
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
|
496
|
-
Enabled: false
|
497
|
-
|
498
|
-
Style/ClosingParenthesisIndentation:
|
499
|
-
Description: 'Checks the indentation of hanging closing parentheses.'
|
500
|
-
Enabled: false
|
501
|
-
|
502
|
-
Style/ColonMethodCall:
|
503
|
-
Description: 'Do not use :: for method call.'
|
504
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
|
505
|
-
Enabled: false
|
506
|
-
|
507
|
-
Style/CommandLiteral:
|
508
|
-
Description: 'Use `` or %x around command literals.'
|
509
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
|
510
20
|
Enabled: false
|
21
|
+
StyleGuide: https://relaxed.ruby.style/#styleblockdelimiters
|
511
22
|
|
512
23
|
Style/CommentAnnotation:
|
513
|
-
Description: 'Checks formatting of annotation comments.'
|
514
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
|
515
|
-
Enabled: false
|
516
|
-
|
517
|
-
Style/CommentIndentation:
|
518
|
-
Description: 'Indentation of comments.'
|
519
|
-
Enabled: false
|
520
|
-
|
521
|
-
Style/ConstantName:
|
522
|
-
Description: 'Constants should use SCREAMING_SNAKE_CASE.'
|
523
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
|
524
|
-
Enabled: false
|
525
|
-
|
526
|
-
Style/DefWithParentheses:
|
527
|
-
Description: 'Use def with parentheses when there are arguments.'
|
528
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
529
|
-
Enabled: false
|
530
|
-
|
531
|
-
Style/DeprecatedHashMethods:
|
532
|
-
Description: 'Checks for use of deprecated Hash methods.'
|
533
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
|
534
24
|
Enabled: false
|
25
|
+
StyleGuide: https://relaxed.ruby.style/#stylecommentannotation
|
535
26
|
|
536
27
|
Style/Documentation:
|
537
|
-
Description: 'Document classes and non-namespace modules.'
|
538
28
|
Enabled: false
|
29
|
+
StyleGuide: https://relaxed.ruby.style/#styledocumentation
|
539
30
|
|
540
|
-
|
541
|
-
Description: 'Checks the position of the dot in multi-line method calls.'
|
542
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
31
|
+
Layout/EmptyLinesAroundModuleBody:
|
543
32
|
Enabled: false
|
544
33
|
|
545
|
-
|
546
|
-
Description: 'Checks for uses of double negation (!!).'
|
547
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
|
34
|
+
Layout/DotPosition:
|
548
35
|
Enabled: false
|
36
|
+
StyleGuide: https://relaxed.ruby.style/#layoutdotposition
|
549
37
|
|
550
|
-
Style/
|
551
|
-
Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
|
552
|
-
Enabled: false
|
553
|
-
|
554
|
-
Style/ElseAlignment:
|
555
|
-
Description: 'Align elses and elsifs correctly.'
|
556
|
-
Enabled: false
|
557
|
-
|
558
|
-
Style/EmptyElse:
|
559
|
-
Description: 'Avoid empty else-clauses.'
|
560
|
-
Enabled: false
|
561
|
-
|
562
|
-
Style/EmptyLineBetweenDefs:
|
563
|
-
Description: 'Use empty lines between defs.'
|
564
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
|
565
|
-
Enabled: false
|
566
|
-
|
567
|
-
Style/EmptyLines:
|
568
|
-
Description: "Don't use several empty lines in a row."
|
569
|
-
Enabled: false
|
570
|
-
|
571
|
-
Style/EmptyLinesAroundAccessModifier:
|
572
|
-
Description: "Keep blank lines around access modifiers."
|
573
|
-
Enabled: false
|
574
|
-
|
575
|
-
Style/EmptyLinesAroundBlockBody:
|
576
|
-
Description: "Keeps track of empty lines around block bodies."
|
577
|
-
Enabled: false
|
578
|
-
|
579
|
-
Style/EmptyLinesAroundClassBody:
|
580
|
-
Description: "Keeps track of empty lines around class bodies."
|
581
|
-
Enabled: false
|
582
|
-
|
583
|
-
Style/EmptyLinesAroundModuleBody:
|
584
|
-
Description: "Keeps track of empty lines around module bodies."
|
585
|
-
Enabled: false
|
586
|
-
|
587
|
-
Style/EmptyLinesAroundMethodBody:
|
588
|
-
Description: "Keeps track of empty lines around method bodies."
|
589
|
-
Enabled: false
|
590
|
-
|
591
|
-
Style/EmptyLiteral:
|
592
|
-
Description: 'Prefer literals to Array.new/Hash.new/String.new.'
|
593
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
|
38
|
+
Style/DoubleNegation:
|
594
39
|
Enabled: false
|
40
|
+
StyleGuide: https://relaxed.ruby.style/#styledoublenegation
|
595
41
|
|
596
42
|
Style/EndBlock:
|
597
|
-
Description: 'Avoid the use of END blocks.'
|
598
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
|
599
43
|
Enabled: false
|
44
|
+
StyleGuide: https://relaxed.ruby.style/#styleendblock
|
600
45
|
|
601
|
-
Style/
|
602
|
-
Description: 'Use Unix-style line endings.'
|
603
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
|
46
|
+
Style/FormatString:
|
604
47
|
Enabled: false
|
48
|
+
StyleGuide: https://relaxed.ruby.style/#styleformatstring
|
605
49
|
|
606
|
-
Style/
|
607
|
-
Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
|
608
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
50
|
+
Style/IfUnlessModifier:
|
609
51
|
Enabled: false
|
52
|
+
StyleGuide: https://relaxed.ruby.style/#styleifunlessmodifier
|
610
53
|
|
611
|
-
Style/
|
612
|
-
Description: 'Do not use unnecessary spacing.'
|
54
|
+
Style/Lambda:
|
613
55
|
Enabled: false
|
56
|
+
StyleGuide: https://relaxed.ruby.style/#stylelambda
|
614
57
|
|
615
|
-
Style/
|
616
|
-
Description: 'Use snake_case for source file names.'
|
617
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
58
|
+
Style/ModuleFunction:
|
618
59
|
Enabled: false
|
60
|
+
StyleGuide: https://relaxed.ruby.style/#stylemodulefunction
|
619
61
|
|
620
|
-
Style/
|
621
|
-
Description: >-
|
622
|
-
Checks the indentation of the first non-blank non-comment line in a file.
|
62
|
+
Style/MultilineBlockChain:
|
623
63
|
Enabled: false
|
64
|
+
StyleGuide: https://relaxed.ruby.style/#stylemultilineblockchain
|
624
65
|
|
625
|
-
Style/
|
626
|
-
Description: 'Checks the indentation of the first parameter in a method call.'
|
66
|
+
Style/NegatedIf:
|
627
67
|
Enabled: false
|
68
|
+
StyleGuide: https://relaxed.ruby.style/#stylenegatedif
|
628
69
|
|
629
|
-
Style/
|
630
|
-
Description: 'Checks for flip flops'
|
631
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
|
70
|
+
Style/NegatedWhile:
|
632
71
|
Enabled: false
|
72
|
+
StyleGuide: https://relaxed.ruby.style/#stylenegatedwhile
|
633
73
|
|
634
|
-
Style/
|
635
|
-
Description: 'Checks use of for or each in multiline loops.'
|
636
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
|
74
|
+
Style/NumericPredicate:
|
637
75
|
Enabled: false
|
76
|
+
StyleGuide: https://relaxed.ruby.style/#stylenumericpredicate
|
638
77
|
|
639
|
-
Style/
|
640
|
-
Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
|
641
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
|
642
|
-
Enabled: false
|
643
|
-
|
644
|
-
Style/GlobalVars:
|
645
|
-
Description: 'Do not introduce global variables.'
|
646
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
|
647
|
-
Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
|
78
|
+
Style/ParallelAssignment:
|
648
79
|
Enabled: false
|
80
|
+
StyleGuide: https://relaxed.ruby.style/#styleparallelassignment
|
649
81
|
|
650
|
-
Style/
|
651
|
-
Description: 'Check for conditionals that can be replaced with guard clauses'
|
652
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
82
|
+
Style/PercentLiteralDelimiters:
|
653
83
|
Enabled: false
|
84
|
+
StyleGuide: https://relaxed.ruby.style/#stylepercentliteraldelimiters
|
654
85
|
|
655
|
-
Style/
|
656
|
-
Description: >-
|
657
|
-
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
|
658
|
-
{ :a => 1, :b => 2 }.
|
659
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
|
86
|
+
Style/PerlBackrefs:
|
660
87
|
Enabled: false
|
88
|
+
StyleGuide: https://relaxed.ruby.style/#styleperlbackrefs
|
661
89
|
|
662
|
-
Style/
|
663
|
-
Description: >-
|
664
|
-
Favor modifier if/unless usage when you have a
|
665
|
-
single-line body.
|
666
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
|
90
|
+
Style/Semicolon:
|
667
91
|
Enabled: false
|
92
|
+
StyleGuide: https://relaxed.ruby.style/#stylesemicolon
|
668
93
|
|
669
|
-
Style/
|
670
|
-
Description: 'Do not use if x; .... Use the ternary operator instead.'
|
671
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
|
94
|
+
Style/SignalException:
|
672
95
|
Enabled: false
|
96
|
+
StyleGuide: https://relaxed.ruby.style/#stylesignalexception
|
673
97
|
|
674
|
-
Style/
|
675
|
-
Description: 'Keep indentation straight.'
|
98
|
+
Style/SingleLineBlockParams:
|
676
99
|
Enabled: false
|
100
|
+
StyleGuide: https://relaxed.ruby.style/#stylesinglelineblockparams
|
677
101
|
|
678
|
-
Style/
|
679
|
-
Description: 'Use 2 spaces for indentation.'
|
680
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
102
|
+
Style/SingleLineMethods:
|
681
103
|
Enabled: false
|
104
|
+
StyleGuide: https://relaxed.ruby.style/#stylesinglelinemethods
|
682
105
|
|
683
|
-
|
684
|
-
Description: >-
|
685
|
-
Checks the indentation of the first element in an array
|
686
|
-
literal.
|
106
|
+
Layout/SpaceBeforeBlockBraces:
|
687
107
|
Enabled: false
|
108
|
+
StyleGuide: https://relaxed.ruby.style/#layoutspacebeforeblockbraces
|
688
109
|
|
689
|
-
|
690
|
-
Description: 'Checks the indentation of the first key in a hash literal.'
|
110
|
+
Layout/SpaceInsideParens:
|
691
111
|
Enabled: false
|
112
|
+
StyleGuide: https://relaxed.ruby.style/#layoutspaceinsideparens
|
692
113
|
|
693
|
-
Style/
|
694
|
-
Description: 'Use Kernel#loop for infinite loops.'
|
695
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
|
114
|
+
Style/SpecialGlobalVars:
|
696
115
|
Enabled: false
|
116
|
+
StyleGuide: https://relaxed.ruby.style/#stylespecialglobalvars
|
697
117
|
|
698
|
-
Style/
|
699
|
-
Description: 'Use the new lambda literal syntax for single-line blocks.'
|
700
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
|
118
|
+
Style/StringLiterals:
|
701
119
|
Enabled: false
|
120
|
+
StyleGuide: https://relaxed.ruby.style/#stylestringliterals
|
702
121
|
|
703
|
-
Style/
|
704
|
-
Description: 'Use lambda.call(...) instead of lambda.(...).'
|
705
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
|
122
|
+
Style/TrailingCommaInArguments:
|
706
123
|
Enabled: false
|
124
|
+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarguments
|
707
125
|
|
708
|
-
Style/
|
709
|
-
Description: 'Comments should start with a space.'
|
710
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
|
126
|
+
Style/TrailingCommaInArrayLiteral:
|
711
127
|
Enabled: false
|
128
|
+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarrayliteral
|
712
129
|
|
713
|
-
Style/
|
714
|
-
Description: >-
|
715
|
-
Use \ instead of + or << to concatenate two string literals at
|
716
|
-
line end.
|
130
|
+
Style/TrailingCommaInHashLiteral:
|
717
131
|
Enabled: false
|
132
|
+
StyleGuide: https://relaxed.ruby.style/#styletrailingcommainhashliteral
|
718
133
|
|
719
|
-
Style/
|
720
|
-
Description: 'Do not use parentheses for method calls with no arguments.'
|
721
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
|
134
|
+
Style/SymbolArray:
|
722
135
|
Enabled: false
|
136
|
+
StyleGuide: http://relaxed.ruby.style/#stylesymbolarray
|
723
137
|
|
724
|
-
Style/
|
725
|
-
Description: >-
|
726
|
-
Checks if the method definitions have or don't have
|
727
|
-
parentheses.
|
728
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
138
|
+
Style/WhileUntilModifier:
|
729
139
|
Enabled: false
|
140
|
+
StyleGuide: https://relaxed.ruby.style/#stylewhileuntilmodifier
|
730
141
|
|
731
|
-
Style/
|
732
|
-
Description: 'Use the configured style when naming methods.'
|
733
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
142
|
+
Style/WordArray:
|
734
143
|
Enabled: false
|
144
|
+
StyleGuide: https://relaxed.ruby.style/#stylewordarray
|
735
145
|
|
736
|
-
|
737
|
-
Description: 'Checks for usage of `extend self` in modules.'
|
738
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
|
146
|
+
Lint/AmbiguousRegexpLiteral:
|
739
147
|
Enabled: false
|
148
|
+
StyleGuide: https://relaxed.ruby.style/#lintambiguousregexpliteral
|
740
149
|
|
741
|
-
|
742
|
-
Description: 'Avoid multi-line chains of blocks.'
|
743
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
150
|
+
Lint/AssignmentInCondition:
|
744
151
|
Enabled: false
|
152
|
+
StyleGuide: https://relaxed.ruby.style/#lintassignmentincondition
|
745
153
|
|
746
|
-
|
747
|
-
Description: 'Ensures newlines after multiline block do statements.'
|
154
|
+
Metrics/AbcSize:
|
748
155
|
Enabled: false
|
749
156
|
|
750
|
-
|
751
|
-
Description: 'Do not use then for multi-line if/unless.'
|
752
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
|
157
|
+
Metrics/BlockNesting:
|
753
158
|
Enabled: false
|
754
159
|
|
755
|
-
|
756
|
-
Description: >-
|
757
|
-
Checks indentation of binary operations that span more than
|
758
|
-
one line.
|
160
|
+
Metrics/ClassLength:
|
759
161
|
Enabled: false
|
760
162
|
|
761
|
-
|
762
|
-
Description: >-
|
763
|
-
Avoid multi-line ?: (the ternary operator);
|
764
|
-
use if/unless instead.
|
765
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
|
163
|
+
Metrics/ModuleLength:
|
766
164
|
Enabled: false
|
767
165
|
|
768
|
-
|
769
|
-
Description: >-
|
770
|
-
Favor unless over if for negative conditions
|
771
|
-
(or control flow or).
|
772
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
|
166
|
+
Metrics/CyclomaticComplexity:
|
773
167
|
Enabled: false
|
774
168
|
|
775
|
-
|
776
|
-
Description: 'Favor until over while for negative conditions.'
|
777
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
|
169
|
+
Layout/LineLength:
|
778
170
|
Enabled: false
|
779
171
|
|
780
|
-
|
781
|
-
Description: 'Use one expression per branch in a ternary operator.'
|
782
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
|
172
|
+
Metrics/MethodLength:
|
783
173
|
Enabled: false
|
784
174
|
|
785
|
-
|
786
|
-
Description: 'Use `next` to skip iteration instead of a condition at the end.'
|
787
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
|
175
|
+
Metrics/ParameterLists:
|
788
176
|
Enabled: false
|
789
177
|
|
790
|
-
|
791
|
-
Description: 'Prefer x.nil? to x == nil.'
|
792
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
178
|
+
Metrics/PerceivedComplexity:
|
793
179
|
Enabled: false
|
794
180
|
|
795
|
-
Style/
|
796
|
-
Description: 'Checks for redundant nil checks.'
|
797
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
|
181
|
+
Style/GuardClause:
|
798
182
|
Enabled: false
|
799
183
|
|
800
|
-
|
801
|
-
Description: 'Use ! instead of not.'
|
802
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
|
184
|
+
Metrics/BlockLength:
|
803
185
|
Enabled: false
|
804
186
|
|
805
|
-
|
806
|
-
Description: >-
|
807
|
-
Add underscores to large numeric literals to improve their
|
808
|
-
readability.
|
809
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
|
187
|
+
Naming/MethodParameterName:
|
810
188
|
Enabled: false
|
811
189
|
|
812
|
-
Style/
|
813
|
-
Description: >-
|
814
|
-
Favor the ternary operator(?:) over
|
815
|
-
if/then/else/end constructs.
|
816
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
|
190
|
+
Style/FrozenStringLiteralComment:
|
817
191
|
Enabled: false
|
818
192
|
|
819
|
-
|
820
|
-
Description: 'When defining binary operators, name the argument other.'
|
821
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
|
193
|
+
Lint/RescueException:
|
822
194
|
Enabled: false
|
823
195
|
|
824
|
-
|
825
|
-
Description: >-
|
826
|
-
Checks for optional arguments that do not appear at the end
|
827
|
-
of the argument list
|
828
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
|
196
|
+
Lint/UselessAssignment:
|
829
197
|
Enabled: false
|
830
198
|
|
831
|
-
|
832
|
-
Description: >-
|
833
|
-
Check for simple usages of parallel assignment.
|
834
|
-
It will only warn when the number of variables
|
835
|
-
matches on both sides of the assignment.
|
836
|
-
This also provides performance benefits
|
837
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
|
199
|
+
Naming/AccessorMethodName:
|
838
200
|
Enabled: false
|
839
201
|
|
840
|
-
|
841
|
-
Description: >-
|
842
|
-
Don't use parentheses around the condition of an
|
843
|
-
if/unless/while.
|
844
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
|
202
|
+
Naming/MemoizedInstanceVariableName:
|
845
203
|
Enabled: false
|
846
204
|
|
847
|
-
|
848
|
-
Description: 'Use `%`-literal delimiters consistently'
|
849
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
|
205
|
+
Lint/DuplicateMethods:
|
850
206
|
Enabled: false
|
851
207
|
|
852
|
-
|
853
|
-
Description: 'Checks if uses of %Q/%q match the configured preference.'
|
208
|
+
Lint/ShadowingOuterLocalVariable:
|
854
209
|
Enabled: false
|
855
210
|
|
856
|
-
|
857
|
-
Description: 'Avoid Perl-style regex back references.'
|
858
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
|
211
|
+
Naming/HeredocDelimiterCase:
|
859
212
|
Enabled: false
|
860
213
|
|
861
|
-
|
862
|
-
Description: 'Check the names of predicate methods.'
|
863
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
|
214
|
+
Naming/HeredocDelimiterNaming:
|
864
215
|
Enabled: false
|
865
216
|
|
866
|
-
|
867
|
-
Description: 'Use proc instead of Proc.new.'
|
868
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
|
217
|
+
Security/Eval:
|
869
218
|
Enabled: false
|
870
219
|
|
871
|
-
Style/
|
872
|
-
Description: 'Checks the arguments passed to raise/fail.'
|
873
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
|
220
|
+
Style/BarePercentLiterals:
|
874
221
|
Enabled: false
|
875
222
|
|
876
|
-
Style/
|
877
|
-
Description: "Don't use begin blocks when they are not needed."
|
878
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
|
223
|
+
Style/FormatStringToken:
|
879
224
|
Enabled: false
|
880
225
|
|
881
|
-
Style/
|
882
|
-
Description: "Checks for an obsolete RuntimeException argument in raise/fail."
|
883
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
|
226
|
+
Style/MethodMissingSuper:
|
884
227
|
Enabled: false
|
885
228
|
|
886
|
-
Style/
|
887
|
-
Description: "Don't use return where it's not required."
|
888
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
|
229
|
+
Style/MissingRespondToMissing:
|
889
230
|
Enabled: false
|
890
231
|
|
891
|
-
Style/
|
892
|
-
Description: "Don't use self where it's not needed."
|
893
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
|
232
|
+
Style/MultilineTernaryOperator:
|
894
233
|
Enabled: false
|
895
234
|
|
896
|
-
Style/
|
897
|
-
Description: 'Use / or %r around regular expressions.'
|
898
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
|
235
|
+
Style/RedundantPercentQ:
|
899
236
|
Enabled: false
|
900
237
|
|
901
|
-
Style/
|
902
|
-
Description: 'Align rescues and ensures correctly.'
|
238
|
+
Style/RedundantSelf:
|
903
239
|
Enabled: false
|
904
240
|
|
905
|
-
|
906
|
-
Description: 'Avoid using rescue in its modifier form.'
|
907
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
|
241
|
+
Layout/HashAlignment:
|
908
242
|
Enabled: false
|
909
243
|
|
910
|
-
|
911
|
-
Description: >-
|
912
|
-
Checks for places where self-assignment shorthand should have
|
913
|
-
been used.
|
914
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
|
244
|
+
Layout/EmptyLineAfterGuardClause:
|
915
245
|
Enabled: false
|
916
246
|
|
917
|
-
|
918
|
-
Description: "Don't use semicolons to terminate expressions."
|
919
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
|
247
|
+
Layout/TrailingEmptyLines:
|
920
248
|
Enabled: false
|
921
249
|
|
922
|
-
|
923
|
-
Description: 'Checks for proper usage of fail and raise.'
|
924
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
|
250
|
+
Layout/EmptyLinesAroundClassBody:
|
925
251
|
Enabled: false
|
926
252
|
|
927
|
-
|
928
|
-
Description: 'Enforces the names of some block params.'
|
929
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
|
253
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
930
254
|
Enabled: false
|
931
255
|
|
932
|
-
|
933
|
-
Description: 'Avoid single-line methods.'
|
934
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
|
256
|
+
Layout/TrailingWhitespace:
|
935
257
|
Enabled: false
|
936
258
|
|
937
|
-
Style/
|
938
|
-
Description: >-
|
939
|
-
Checks that exactly one space is used between a method name
|
940
|
-
and the first argument for method calls without parentheses.
|
941
|
-
Enabled: true
|
942
|
-
|
943
|
-
Style/SpaceAfterColon:
|
944
|
-
Description: 'Use spaces after colons.'
|
945
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
259
|
+
Style/MutableConstant:
|
946
260
|
Enabled: false
|
947
261
|
|
948
|
-
Style/
|
949
|
-
Description: 'Use spaces after commas.'
|
950
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
262
|
+
Style/RaiseArgs:
|
951
263
|
Enabled: false
|
952
264
|
|
953
|
-
|
954
|
-
Description: 'Use spaces around keywords.'
|
265
|
+
Layout/SpaceAroundOperators:
|
955
266
|
Enabled: false
|
956
267
|
|
957
|
-
|
958
|
-
Description: >-
|
959
|
-
Do not put a space between a method name and the opening
|
960
|
-
parenthesis in a method definition.
|
961
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
|
268
|
+
Layout/EmptyLines:
|
962
269
|
Enabled: false
|
963
270
|
|
964
|
-
|
965
|
-
Description: Tracks redundant space after the ! operator.
|
966
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
|
271
|
+
Layout/EmptyLinesAroundBlockBody:
|
967
272
|
Enabled: false
|
968
273
|
|
969
|
-
|
970
|
-
Description: 'Use spaces after semicolons.'
|
971
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
274
|
+
Layout/ExtraSpacing:
|
972
275
|
Enabled: false
|
973
276
|
|
974
|
-
Style/
|
975
|
-
Description: >-
|
976
|
-
Checks that the left block brace has or doesn't have space
|
977
|
-
before it.
|
277
|
+
Style/SafeNavigation:
|
978
278
|
Enabled: false
|
979
279
|
|
980
|
-
|
981
|
-
Description: 'No spaces before commas.'
|
280
|
+
Layout/ParameterAlignment:
|
982
281
|
Enabled: false
|
983
282
|
|
984
|
-
|
985
|
-
Description: >-
|
986
|
-
Checks for missing space between code and a comment on the
|
987
|
-
same line.
|
283
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
988
284
|
Enabled: false
|
989
285
|
|
990
|
-
Style/
|
991
|
-
Description: 'No spaces before semicolons.'
|
286
|
+
Style/HashSyntax:
|
992
287
|
Enabled: false
|
993
288
|
|
994
|
-
Style/
|
995
|
-
Description: >-
|
996
|
-
Checks that block braces have or don't have surrounding space.
|
997
|
-
For blocks taking parameters, checks that the left brace has
|
998
|
-
or doesn't have trailing space.
|
289
|
+
Style/RescueModifier:
|
999
290
|
Enabled: false
|
1000
291
|
|
1001
|
-
|
1002
|
-
Description: 'Checks the spacing inside and after block parameters pipes.'
|
292
|
+
Layout/MultilineMethodCallBraceLayout:
|
1003
293
|
Enabled: false
|
1004
294
|
|
1005
|
-
|
1006
|
-
Description: >-
|
1007
|
-
Checks that the equals signs in parameter default assignments
|
1008
|
-
have or don't have surrounding space depending on
|
1009
|
-
configuration.
|
1010
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
|
295
|
+
Layout/MultilineOperationIndentation:
|
1011
296
|
Enabled: false
|
1012
297
|
|
1013
|
-
|
1014
|
-
Description: 'Use a single space around operators.'
|
1015
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
298
|
+
Layout/SpaceInsideHashLiteralBraces:
|
1016
299
|
Enabled: false
|
1017
300
|
|
1018
|
-
Style/
|
1019
|
-
Description: 'No spaces after [ or before ].'
|
1020
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
301
|
+
Style/LineEndConcatenation:
|
1021
302
|
Enabled: false
|
1022
303
|
|
1023
|
-
Style/
|
1024
|
-
Description: "Use spaces inside hash literal braces - or don't."
|
1025
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
|
304
|
+
Style/StructInheritance:
|
1026
305
|
Enabled: false
|
1027
306
|
|
1028
|
-
Style/
|
1029
|
-
Description: 'No spaces after ( or before ).'
|
1030
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
307
|
+
Style/RedundantInterpolation:
|
1031
308
|
Enabled: false
|
1032
309
|
|
1033
|
-
|
1034
|
-
Description: 'No spaces inside range literals.'
|
1035
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
|
310
|
+
Layout/FirstArrayElementIndentation:
|
1036
311
|
Enabled: false
|
1037
312
|
|
1038
|
-
Style/
|
1039
|
-
Description: 'Checks for padding/surrounding spaces inside string interpolation.'
|
1040
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
|
313
|
+
Style/ExpandPathArguments:
|
1041
314
|
Enabled: false
|
1042
315
|
|
1043
|
-
Style/
|
1044
|
-
Description: 'Avoid Perl-style global variables.'
|
1045
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
|
316
|
+
Style/RescueStandardError:
|
1046
317
|
Enabled: false
|
1047
318
|
|
1048
|
-
|
1049
|
-
Description: 'Checks if uses of quotes match the configured preference.'
|
1050
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
|
319
|
+
Layout/IndentationWidth:
|
1051
320
|
Enabled: false
|
1052
321
|
|
1053
|
-
|
1054
|
-
Description: >-
|
1055
|
-
Checks if uses of quotes inside expressions in interpolated
|
1056
|
-
strings match the configured preference.
|
322
|
+
Layout/RescueEnsureAlignment:
|
1057
323
|
Enabled: false
|
1058
324
|
|
1059
|
-
|
1060
|
-
Description: 'Checks for inheritance from Struct.new.'
|
1061
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
|
325
|
+
Layout/SpaceInsideStringInterpolation:
|
1062
326
|
Enabled: false
|
1063
327
|
|
1064
|
-
|
1065
|
-
Description: 'Use plain symbols instead of string symbols when possible.'
|
328
|
+
Lint/RedundantStringCoercion:
|
1066
329
|
Enabled: false
|
1067
330
|
|
1068
|
-
|
1069
|
-
Description: 'Use symbols as procs instead of blocks when possible.'
|
331
|
+
Lint/UnderscorePrefixedVariableName:
|
1070
332
|
Enabled: false
|
1071
333
|
|
1072
|
-
|
1073
|
-
Description: 'No hard tabs.'
|
1074
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
334
|
+
Lint/UnusedBlockArgument:
|
1075
335
|
Enabled: false
|
1076
336
|
|
1077
|
-
|
1078
|
-
Description: 'Checks trailing blank lines and final newline.'
|
1079
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
|
337
|
+
Security/MarshalLoad:
|
1080
338
|
Enabled: false
|
1081
339
|
|
1082
|
-
Style/
|
1083
|
-
Description: 'Checks for trailing comma in parameter lists.'
|
1084
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
|
340
|
+
Style/EmptyLiteral:
|
1085
341
|
Enabled: false
|
1086
342
|
|
1087
|
-
Style/
|
1088
|
-
Description: 'Checks for trailing comma in literals.'
|
1089
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
343
|
+
Style/MultilineIfModifier:
|
1090
344
|
Enabled: false
|
1091
345
|
|
1092
|
-
Style/
|
1093
|
-
Description: 'Avoid trailing whitespace.'
|
1094
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
|
346
|
+
Style/RedundantReturn:
|
1095
347
|
Enabled: false
|
1096
348
|
|
1097
|
-
Style/
|
1098
|
-
Description: 'Prefer attr_* methods to trivial readers/writers.'
|
1099
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
|
349
|
+
Style/RegexpLiteral:
|
1100
350
|
Enabled: false
|
1101
351
|
|
1102
|
-
|
1103
|
-
Description: >-
|
1104
|
-
Do not use unless with else. Rewrite these with the positive
|
1105
|
-
case first.
|
1106
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
|
352
|
+
Gemspec/OrderedDependencies:
|
1107
353
|
Enabled: false
|
1108
354
|
|
1109
|
-
|
1110
|
-
Description: 'Checks for %W when interpolation is not needed.'
|
355
|
+
Layout/ArgumentAlignment:
|
1111
356
|
Enabled: false
|
1112
357
|
|
1113
|
-
|
1114
|
-
Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
|
1115
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
|
358
|
+
Layout/ClosingParenthesisIndentation:
|
1116
359
|
Enabled: false
|
1117
360
|
|
1118
|
-
|
1119
|
-
Description: >-
|
1120
|
-
Checks for the usage of unneeded trailing underscores at the
|
1121
|
-
end of parallel variable assignment.
|
361
|
+
Layout/EmptyLineBetweenDefs:
|
1122
362
|
Enabled: false
|
1123
363
|
|
1124
|
-
|
1125
|
-
|
1126
|
-
Don't interpolate global, instance and class variables
|
1127
|
-
directly in strings.
|
1128
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
|
1129
|
-
Enabled: false
|
364
|
+
Lint/RaiseException:
|
365
|
+
Enabled: true
|
1130
366
|
|
1131
|
-
|
1132
|
-
|
1133
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
1134
|
-
Enabled: false
|
367
|
+
Lint/StructNewOverride:
|
368
|
+
Enabled: true
|
1135
369
|
|
1136
|
-
Style/
|
1137
|
-
|
1138
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
|
1139
|
-
Enabled: false
|
370
|
+
Style/HashEachMethods:
|
371
|
+
Enabled: true
|
1140
372
|
|
1141
|
-
Style/
|
1142
|
-
|
1143
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
|
1144
|
-
Enabled: false
|
373
|
+
Style/HashTransformKeys:
|
374
|
+
Enabled: true
|
1145
375
|
|
1146
|
-
Style/
|
1147
|
-
|
1148
|
-
Favor modifier while/until usage when you have a
|
1149
|
-
single-line body.
|
1150
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
|
1151
|
-
Enabled: false
|
376
|
+
Style/HashTransformValues:
|
377
|
+
Enabled: true
|
1152
378
|
|
1153
|
-
Style/WordArray:
|
1154
|
-
Description: 'Use %w or %W for arrays of words.'
|
1155
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
|
1156
|
-
Enabled: false
|