fhir_client 1.6.3 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +34 -0
  3. data/.csslintrc +2 -0
  4. data/.eslintignore +1 -0
  5. data/.eslintrc +213 -0
  6. data/.rubocop.yml +1159 -0
  7. data/.travis.yml +8 -0
  8. data/Gemfile +5 -5
  9. data/Rakefile +14 -13
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/fhir_client.gemspec +34 -21
  13. data/lib/fhir_client.rb +13 -18
  14. data/lib/fhir_client/client.rb +533 -0
  15. data/lib/{client_exception.rb → fhir_client/client_exception.rb} +1 -3
  16. data/lib/{ext → fhir_client/ext}/bundle.rb +5 -7
  17. data/lib/{ext → fhir_client/ext}/model.rb +10 -2
  18. data/lib/fhir_client/ext/reference.rb +28 -0
  19. data/lib/{fhir_api_validation.json → fhir_client/fhir_api_validation.json} +0 -0
  20. data/lib/{model → fhir_client/model}/client_reply.rb +47 -51
  21. data/lib/{model → fhir_client/model}/tag.rb +6 -7
  22. data/lib/fhir_client/patch_format.rb +8 -0
  23. data/lib/{resource_address.rb → fhir_client/resource_address.rb} +135 -139
  24. data/lib/fhir_client/resource_format.rb +11 -0
  25. data/lib/{sections → fhir_client/sections}/crud.rb +28 -30
  26. data/lib/{sections → fhir_client/sections}/feed.rb +1 -4
  27. data/lib/{sections → fhir_client/sections}/history.rb +14 -15
  28. data/lib/{sections → fhir_client/sections}/operations.rb +22 -28
  29. data/lib/fhir_client/sections/search.rb +52 -0
  30. data/lib/{sections → fhir_client/sections}/tags.rb +12 -12
  31. data/lib/{sections → fhir_client/sections}/transactions.rb +17 -20
  32. data/lib/{sections → fhir_client/sections}/validate.rb +12 -15
  33. data/lib/{tasks → fhir_client/tasks}/tasks.rake +19 -18
  34. data/lib/fhir_client/version.rb +5 -0
  35. metadata +127 -83
  36. data/lib/client_interface.rb +0 -533
  37. data/lib/ext/reference.rb +0 -11
  38. data/lib/patch_format.rb +0 -10
  39. data/lib/resource_format.rb +0 -13
  40. data/lib/sections/search.rb +0 -53
  41. data/test/fixtures/bundle-example.xml +0 -79
  42. data/test/fixtures/parameters-example.json +0 -18
  43. data/test/fixtures/parameters-example.xml +0 -17
  44. data/test/test_helper.rb +0 -8
  45. data/test/unit/basic_test.rb +0 -17
  46. data/test/unit/bundle_test.rb +0 -21
  47. data/test/unit/parameters_test.rb +0 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15449e3ef2e088da8def1b3996ccc17d4a1a333d
4
- data.tar.gz: 83cecd3899ccdd1c8672de9fd5d8c283e497e9d6
3
+ metadata.gz: ca5034549cd3701de8ed7699a41387ac34e9496d
4
+ data.tar.gz: 3fd1afe26dbcc66e3750a189b5c445ea7914741e
5
5
  SHA512:
6
- metadata.gz: f3d906ae7896baee562592e678c1396266ff6cb0d3f9c3d9973ed84e576820e2b998de1eac61e0b8d502a9a5ff7beba04580c2e19d61ed1cd2e1ce4428557c8f
7
- data.tar.gz: a0d986ea2a72d00af5c41e22f052863b99e1abc0b2c34d9c07d67f32fbed9091081fae0a925ccb2a78841d026bb42f7710d2af81a11a4b088e5c2b10ee6fd630
6
+ metadata.gz: 8f1ee6ef766ea9838c169a20b1701e4d314ee25a206789f5bf240b858df421eb43cdc023b237e8271e7301a8abf53b14a740fa78117b992f59ed266eb3df41f1
7
+ data.tar.gz: 84745b444f063d2a36b06e0fb0293efd81fe47b46a3e0c79f5b4daf9dcc5aab6b96aa3d08f891e61dcd8443314850b2bfb4c4a56f47615a2f7af2069c52b8fc4
data/.codeclimate.yml ADDED
@@ -0,0 +1,34 @@
1
+ ---
2
+ engines:
3
+ bundler-audit:
4
+ enabled: false
5
+ csslint:
6
+ enabled: true
7
+ duplication:
8
+ enabled: true
9
+ config:
10
+ languages:
11
+ - ruby
12
+ - javascript
13
+ - python
14
+ - php
15
+ eslint:
16
+ enabled: true
17
+ fixme:
18
+ enabled: true
19
+ rubocop:
20
+ enabled: true
21
+ ratings:
22
+ paths:
23
+ - Gemfile.lock
24
+ - "**.css"
25
+ - "**.inc"
26
+ - "**.js"
27
+ - "**.jsx"
28
+ - "**.module"
29
+ - "**.php"
30
+ - "**.py"
31
+ - "**.rb"
32
+ exclude_paths:
33
+ - test/
34
+ - coverage/
data/.csslintrc ADDED
@@ -0,0 +1,2 @@
1
+ --exclude-exts=.min.css
2
+ --ignore=adjoining-classes,box-model,ids,order-alphabetical,unqualified-attributes
data/.eslintignore ADDED
@@ -0,0 +1 @@
1
+ **/*{.,-}min.js
data/.eslintrc ADDED
@@ -0,0 +1,213 @@
1
+ ecmaFeatures:
2
+ modules: true
3
+ jsx: true
4
+
5
+ env:
6
+ amd: true
7
+ browser: true
8
+ es6: true
9
+ jquery: true
10
+ node: true
11
+
12
+ # http://eslint.org/docs/rules/
13
+ rules:
14
+ # Possible Errors
15
+ comma-dangle: [2, never]
16
+ no-cond-assign: 2
17
+ no-console: 0
18
+ no-constant-condition: 2
19
+ no-control-regex: 2
20
+ no-debugger: 2
21
+ no-dupe-args: 2
22
+ no-dupe-keys: 2
23
+ no-duplicate-case: 2
24
+ no-empty: 2
25
+ no-empty-character-class: 2
26
+ no-ex-assign: 2
27
+ no-extra-boolean-cast: 2
28
+ no-extra-parens: 0
29
+ no-extra-semi: 2
30
+ no-func-assign: 2
31
+ no-inner-declarations: [2, functions]
32
+ no-invalid-regexp: 2
33
+ no-irregular-whitespace: 2
34
+ no-negated-in-lhs: 2
35
+ no-obj-calls: 2
36
+ no-regex-spaces: 2
37
+ no-sparse-arrays: 2
38
+ no-unexpected-multiline: 2
39
+ no-unreachable: 2
40
+ use-isnan: 2
41
+ valid-jsdoc: 0
42
+ valid-typeof: 2
43
+
44
+ # Best Practices
45
+ accessor-pairs: 2
46
+ block-scoped-var: 0
47
+ complexity: [2, 6]
48
+ consistent-return: 0
49
+ curly: 0
50
+ default-case: 0
51
+ dot-location: 0
52
+ dot-notation: 0
53
+ eqeqeq: 2
54
+ guard-for-in: 2
55
+ no-alert: 2
56
+ no-caller: 2
57
+ no-case-declarations: 2
58
+ no-div-regex: 2
59
+ no-else-return: 0
60
+ no-empty-label: 2
61
+ no-empty-pattern: 2
62
+ no-eq-null: 2
63
+ no-eval: 2
64
+ no-extend-native: 2
65
+ no-extra-bind: 2
66
+ no-fallthrough: 2
67
+ no-floating-decimal: 0
68
+ no-implicit-coercion: 0
69
+ no-implied-eval: 2
70
+ no-invalid-this: 0
71
+ no-iterator: 2
72
+ no-labels: 0
73
+ no-lone-blocks: 2
74
+ no-loop-func: 2
75
+ no-magic-number: 0
76
+ no-multi-spaces: 0
77
+ no-multi-str: 0
78
+ no-native-reassign: 2
79
+ no-new-func: 2
80
+ no-new-wrappers: 2
81
+ no-new: 2
82
+ no-octal-escape: 2
83
+ no-octal: 2
84
+ no-proto: 2
85
+ no-redeclare: 2
86
+ no-return-assign: 2
87
+ no-script-url: 2
88
+ no-self-compare: 2
89
+ no-sequences: 0
90
+ no-throw-literal: 0
91
+ no-unused-expressions: 2
92
+ no-useless-call: 2
93
+ no-useless-concat: 2
94
+ no-void: 2
95
+ no-warning-comments: 0
96
+ no-with: 2
97
+ radix: 2
98
+ vars-on-top: 0
99
+ wrap-iife: 2
100
+ yoda: 0
101
+
102
+ # Strict
103
+ strict: 0
104
+
105
+ # Variables
106
+ init-declarations: 0
107
+ no-catch-shadow: 2
108
+ no-delete-var: 2
109
+ no-label-var: 2
110
+ no-shadow-restricted-names: 2
111
+ no-shadow: 0
112
+ no-undef-init: 2
113
+ no-undef: 0
114
+ no-undefined: 0
115
+ no-unused-vars: 0
116
+ no-use-before-define: 0
117
+
118
+ # Node.js and CommonJS
119
+ callback-return: 2
120
+ global-require: 2
121
+ handle-callback-err: 2
122
+ no-mixed-requires: 0
123
+ no-new-require: 0
124
+ no-path-concat: 2
125
+ no-process-exit: 2
126
+ no-restricted-modules: 0
127
+ no-sync: 0
128
+
129
+ # Stylistic Issues
130
+ array-bracket-spacing: 0
131
+ block-spacing: 0
132
+ brace-style: 0
133
+ camelcase: 0
134
+ comma-spacing: 0
135
+ comma-style: 0
136
+ computed-property-spacing: 0
137
+ consistent-this: 0
138
+ eol-last: 0
139
+ func-names: 0
140
+ func-style: 0
141
+ id-length: 0
142
+ id-match: 0
143
+ indent: 0
144
+ jsx-quotes: 0
145
+ key-spacing: 0
146
+ linebreak-style: 0
147
+ lines-around-comment: 0
148
+ max-depth: 0
149
+ max-len: 0
150
+ max-nested-callbacks: 0
151
+ max-params: 0
152
+ max-statements: [2, 30]
153
+ new-cap: 0
154
+ new-parens: 0
155
+ newline-after-var: 0
156
+ no-array-constructor: 0
157
+ no-bitwise: 0
158
+ no-continue: 0
159
+ no-inline-comments: 0
160
+ no-lonely-if: 0
161
+ no-mixed-spaces-and-tabs: 0
162
+ no-multiple-empty-lines: 0
163
+ no-negated-condition: 0
164
+ no-nested-ternary: 0
165
+ no-new-object: 0
166
+ no-plusplus: 0
167
+ no-restricted-syntax: 0
168
+ no-spaced-func: 0
169
+ no-ternary: 0
170
+ no-trailing-spaces: 0
171
+ no-underscore-dangle: 0
172
+ no-unneeded-ternary: 0
173
+ object-curly-spacing: 0
174
+ one-var: 0
175
+ operator-assignment: 0
176
+ operator-linebreak: 0
177
+ padded-blocks: 0
178
+ quote-props: 0
179
+ quotes: 0
180
+ require-jsdoc: 0
181
+ semi-spacing: 0
182
+ semi: 0
183
+ sort-vars: 0
184
+ space-after-keywords: 0
185
+ space-before-blocks: 0
186
+ space-before-function-paren: 0
187
+ space-before-keywords: 0
188
+ space-in-parens: 0
189
+ space-infix-ops: 0
190
+ space-return-throw-case: 0
191
+ space-unary-ops: 0
192
+ spaced-comment: 0
193
+ wrap-regex: 0
194
+
195
+ # ECMAScript 6
196
+ arrow-body-style: 0
197
+ arrow-parens: 0
198
+ arrow-spacing: 0
199
+ constructor-super: 0
200
+ generator-star-spacing: 0
201
+ no-arrow-condition: 0
202
+ no-class-assign: 0
203
+ no-const-assign: 0
204
+ no-dupe-class-members: 0
205
+ no-this-before-super: 0
206
+ no-var: 0
207
+ object-shorthand: 0
208
+ prefer-arrow-callback: 0
209
+ prefer-const: 0
210
+ prefer-reflect: 0
211
+ prefer-spread: 0
212
+ prefer-template: 0
213
+ require-yield: 0
data/.rubocop.yml ADDED
@@ -0,0 +1,1159 @@
1
+ AllCops:
2
+ DisabledByDefault: true
3
+ Exclude:
4
+ - 'test/**/*'
5
+ - 'lib/tasks/**/*'
6
+
7
+ #################### Lint ################################
8
+
9
+ Lint/AmbiguousOperator:
10
+ Description: >-
11
+ Checks for ambiguous operators in the first argument of a
12
+ method invocation without parentheses.
13
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
14
+ Enabled: true
15
+
16
+ Lint/AmbiguousRegexpLiteral:
17
+ Description: >-
18
+ Checks for ambiguous regexp literals in the first argument of
19
+ a method invocation without parenthesis.
20
+ Enabled: true
21
+
22
+ Lint/AssignmentInCondition:
23
+ Description: "Don't use assignment in conditions."
24
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
25
+ Enabled: true
26
+
27
+ Lint/BlockAlignment:
28
+ Description: 'Align block ends correctly.'
29
+ Enabled: true
30
+
31
+ Lint/CircularArgumentReference:
32
+ Description: "Don't refer to the keyword argument in the default value."
33
+ Enabled: true
34
+
35
+ Lint/ConditionPosition:
36
+ Description: >-
37
+ Checks for condition placed in a confusing position relative to
38
+ the keyword.
39
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
40
+ Enabled: true
41
+
42
+ Lint/Debugger:
43
+ Description: 'Check for debugger calls.'
44
+ Enabled: true
45
+
46
+ Lint/DefEndAlignment:
47
+ Description: 'Align ends corresponding to defs correctly.'
48
+ Enabled: true
49
+
50
+ Lint/DeprecatedClassMethods:
51
+ Description: 'Check for deprecated class method calls.'
52
+ Enabled: true
53
+
54
+ Lint/DuplicateMethods:
55
+ Description: 'Check for duplicate methods calls.'
56
+ Enabled: true
57
+
58
+ Lint/EachWithObjectArgument:
59
+ Description: 'Check for immutable argument given to each_with_object.'
60
+ Enabled: true
61
+
62
+ Lint/ElseLayout:
63
+ Description: 'Check for odd code arrangement in an else block.'
64
+ Enabled: true
65
+
66
+ Lint/EmptyEnsure:
67
+ Description: 'Checks for empty ensure block.'
68
+ Enabled: true
69
+
70
+ Lint/EmptyInterpolation:
71
+ Description: 'Checks for empty string interpolation.'
72
+ Enabled: true
73
+
74
+ Lint/EndAlignment:
75
+ Description: 'Align ends correctly.'
76
+ Enabled: true
77
+
78
+ Lint/EndInMethod:
79
+ Description: 'END blocks should not be placed inside method definitions.'
80
+ Enabled: true
81
+
82
+ Lint/EnsureReturn:
83
+ Description: 'Do not use return in an ensure block.'
84
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
85
+ Enabled: true
86
+
87
+ Lint/Eval:
88
+ Description: 'The use of eval represents a serious security risk.'
89
+ Enabled: true
90
+
91
+ Lint/FormatParameterMismatch:
92
+ Description: 'The number of parameters to format/sprint must match the fields.'
93
+ Enabled: true
94
+
95
+ Lint/HandleExceptions:
96
+ Description: "Don't suppress exception."
97
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
98
+ Enabled: true
99
+
100
+ Lint/InvalidCharacterLiteral:
101
+ Description: >-
102
+ Checks for invalid character literals with a non-escaped
103
+ whitespace character.
104
+ Enabled: true
105
+
106
+ Lint/LiteralInCondition:
107
+ Description: 'Checks of literals used in conditions.'
108
+ Enabled: true
109
+
110
+ Lint/LiteralInInterpolation:
111
+ Description: 'Checks for literals used in interpolation.'
112
+ Enabled: true
113
+
114
+ Lint/Loop:
115
+ Description: >-
116
+ Use Kernel#loop with break rather than begin/end/until or
117
+ begin/end/while for post-loop tests.
118
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
119
+ Enabled: true
120
+
121
+ Lint/NestedMethodDefinition:
122
+ Description: 'Do not use nested method definitions.'
123
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
124
+ Enabled: true
125
+
126
+ Lint/NonLocalExitFromIterator:
127
+ Description: 'Do not use return in iterator to cause non-local exit.'
128
+ Enabled: true
129
+
130
+ Lint/ParenthesesAsGroupedExpression:
131
+ Description: >-
132
+ Checks for method calls with a space before the opening
133
+ parenthesis.
134
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
135
+ Enabled: true
136
+
137
+ Lint/RequireParentheses:
138
+ Description: >-
139
+ Use parentheses in the method call to avoid confusion
140
+ about precedence.
141
+ Enabled: true
142
+
143
+ Lint/RescueException:
144
+ Description: 'Avoid rescuing the Exception class.'
145
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
146
+ Enabled: true
147
+
148
+ Lint/ShadowingOuterLocalVariable:
149
+ Description: >-
150
+ Do not use the same name as outer local variable
151
+ for block arguments or block local variables.
152
+ Enabled: true
153
+
154
+ Lint/StringConversionInInterpolation:
155
+ Description: 'Checks for Object#to_s usage in string interpolation.'
156
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
157
+ Enabled: true
158
+
159
+ Lint/UnderscorePrefixedVariableName:
160
+ Description: 'Do not use prefix `_` for a variable that is used.'
161
+ Enabled: true
162
+
163
+ Lint/UnneededDisable:
164
+ Description: >-
165
+ Checks for rubocop:disable comments that can be removed.
166
+ Note: this cop is not disabled when disabling all cops.
167
+ It must be explicitly disabled.
168
+ Enabled: true
169
+
170
+ Lint/UnusedBlockArgument:
171
+ Description: 'Checks for unused block arguments.'
172
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
173
+ Enabled: true
174
+
175
+ Lint/UnusedMethodArgument:
176
+ Description: 'Checks for unused method arguments.'
177
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
178
+ Enabled: true
179
+
180
+ Lint/UnreachableCode:
181
+ Description: 'Unreachable code.'
182
+ Enabled: true
183
+
184
+ Lint/UselessAccessModifier:
185
+ Description: 'Checks for useless access modifiers.'
186
+ Enabled: true
187
+
188
+ Lint/UselessAssignment:
189
+ Description: 'Checks for useless assignment to a local variable.'
190
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
191
+ Enabled: true
192
+
193
+ Lint/UselessComparison:
194
+ Description: 'Checks for comparison of something with itself.'
195
+ Enabled: true
196
+
197
+ Lint/UselessElseWithoutRescue:
198
+ Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
199
+ Enabled: true
200
+
201
+ Lint/UselessSetterCall:
202
+ Description: 'Checks for useless setter call to a local variable.'
203
+ Enabled: true
204
+
205
+ Lint/Void:
206
+ Description: 'Possible use of operator/literal/variable in void context.'
207
+ Enabled: true
208
+
209
+ ###################### Metrics ####################################
210
+
211
+ Metrics/AbcSize:
212
+ Description: >-
213
+ A calculated magnitude based on number of assignments,
214
+ branches, and conditions.
215
+ Reference: 'http://c2.com/cgi/wiki?AbcMetric'
216
+ Enabled: false
217
+ Max: 20
218
+
219
+ Metrics/BlockNesting:
220
+ Description: 'Avoid excessive block nesting'
221
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
222
+ Enabled: true
223
+ Max: 4
224
+
225
+ Metrics/ClassLength:
226
+ Description: 'Avoid classes longer than 250 lines of code.'
227
+ Enabled: false
228
+ Max: 250
229
+
230
+ Metrics/CyclomaticComplexity:
231
+ Description: >-
232
+ A complexity metric that is strongly correlated to the number
233
+ of test cases needed to validate a method.
234
+ Enabled: false
235
+
236
+ Metrics/LineLength:
237
+ Description: 'Limit lines to 80 characters.'
238
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
239
+ Enabled: false
240
+
241
+ Metrics/MethodLength:
242
+ Description: 'Avoid methods longer than 30 lines of code.'
243
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
244
+ Enabled: false
245
+ Max: 30
246
+
247
+ Metrics/ModuleLength:
248
+ Description: 'Avoid modules longer than 250 lines of code.'
249
+ Enabled: false
250
+ Max: 250
251
+
252
+ Metrics/ParameterLists:
253
+ Description: 'Avoid parameter lists longer than three or four parameters.'
254
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
255
+ Enabled: true
256
+
257
+ Metrics/PerceivedComplexity:
258
+ Description: >-
259
+ A complexity metric geared towards measuring complexity for a
260
+ human reader.
261
+ Enabled: false
262
+
263
+ ##################### Performance #############################
264
+
265
+ Performance/Count:
266
+ Description: >-
267
+ Use `count` instead of `select...size`, `reject...size`,
268
+ `select...count`, `reject...count`, `select...length`,
269
+ and `reject...length`.
270
+ Enabled: true
271
+
272
+ Performance/Detect:
273
+ Description: >-
274
+ Use `detect` instead of `select.first`, `find_all.first`,
275
+ `select.last`, and `find_all.last`.
276
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
277
+ Enabled: true
278
+
279
+ Performance/FlatMap:
280
+ Description: >-
281
+ Use `Enumerable#flat_map`
282
+ instead of `Enumerable#map...Array#flatten(1)`
283
+ or `Enumberable#collect..Array#flatten(1)`
284
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
285
+ Enabled: true
286
+ EnabledForFlattenWithoutParams: false
287
+ # If enabled, this cop will warn about usages of
288
+ # `flatten` being called without any parameters.
289
+ # This can be dangerous since `flat_map` will only flatten 1 level, and
290
+ # `flatten` without any parameters can flatten multiple levels.
291
+
292
+ Performance/ReverseEach:
293
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
294
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
295
+ Enabled: true
296
+
297
+ Performance/Sample:
298
+ Description: >-
299
+ Use `sample` instead of `shuffle.first`,
300
+ `shuffle.last`, and `shuffle[Fixnum]`.
301
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
302
+ Enabled: true
303
+
304
+ Performance/Size:
305
+ Description: >-
306
+ Use `size` instead of `count` for counting
307
+ the number of elements in `Array` and `Hash`.
308
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
309
+ Enabled: true
310
+
311
+ Performance/StringReplacement:
312
+ Description: >-
313
+ Use `tr` instead of `gsub` when you are replacing the same
314
+ number of characters. Use `delete` instead of `gsub` when
315
+ you are deleting characters.
316
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
317
+ Enabled: true
318
+
319
+ ##################### Rails ##################################
320
+
321
+ Rails/ActionFilter:
322
+ Description: 'Enforces consistent use of action filter methods.'
323
+ Enabled: false
324
+
325
+ Rails/Date:
326
+ Description: >-
327
+ Checks the correct usage of date aware methods,
328
+ such as Date.today, Date.current etc.
329
+ Enabled: false
330
+
331
+ Rails/Delegate:
332
+ Description: 'Prefer delegate method for delegations.'
333
+ Enabled: false
334
+
335
+ Rails/FindBy:
336
+ Description: 'Prefer find_by over where.first.'
337
+ Enabled: false
338
+
339
+ Rails/FindEach:
340
+ Description: 'Prefer all.find_each over all.find.'
341
+ Enabled: false
342
+
343
+ Rails/HasAndBelongsToMany:
344
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
345
+ Enabled: false
346
+
347
+ Rails/Output:
348
+ Description: 'Checks for calls to puts, print, etc.'
349
+ Enabled: false
350
+
351
+ Rails/ReadWriteAttribute:
352
+ Description: >-
353
+ Checks for read_attribute(:attr) and
354
+ write_attribute(:attr, val).
355
+ Enabled: false
356
+
357
+ Rails/ScopeArgs:
358
+ Description: 'Checks the arguments of ActiveRecord scopes.'
359
+ Enabled: false
360
+
361
+ Rails/TimeZone:
362
+ Description: 'Checks the correct usage of time zone aware methods.'
363
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
364
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
365
+ Enabled: false
366
+
367
+ Rails/Validation:
368
+ Description: 'Use validates :attribute, hash of validations.'
369
+ Enabled: false
370
+
371
+ ################## Style #################################
372
+
373
+ Style/AccessModifierIndentation:
374
+ Description: Check indentation of private/protected visibility modifiers.
375
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
376
+ Enabled: false
377
+
378
+ Style/AccessorMethodName:
379
+ Description: Check the naming of accessor methods for get_/set_.
380
+ Enabled: false
381
+
382
+ Style/Alias:
383
+ Description: 'Use alias_method instead of alias.'
384
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
385
+ Enabled: false
386
+
387
+ Style/AlignArray:
388
+ Description: >-
389
+ Align the elements of an array literal if they span more than
390
+ one line.
391
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
392
+ Enabled: false
393
+
394
+ Style/AlignHash:
395
+ Description: >-
396
+ Align the elements of a hash literal if they span more than
397
+ one line.
398
+ Enabled: false
399
+
400
+ Style/AlignParameters:
401
+ Description: >-
402
+ Align the parameters of a method call if they span more
403
+ than one line.
404
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
405
+ Enabled: false
406
+
407
+ Style/AndOr:
408
+ Description: 'Use &&/|| instead of and/or.'
409
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
410
+ Enabled: false
411
+
412
+ Style/ArrayJoin:
413
+ Description: 'Use Array#join instead of Array#*.'
414
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
415
+ Enabled: false
416
+
417
+ Style/AsciiComments:
418
+ Description: 'Use only ascii symbols in comments.'
419
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
420
+ Enabled: false
421
+
422
+ Style/AsciiIdentifiers:
423
+ Description: 'Use only ascii symbols in identifiers.'
424
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
425
+ Enabled: false
426
+
427
+ Style/Attr:
428
+ Description: 'Checks for uses of Module#attr.'
429
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
430
+ Enabled: false
431
+
432
+ Style/BeginBlock:
433
+ Description: 'Avoid the use of BEGIN blocks.'
434
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
435
+ Enabled: false
436
+
437
+ Style/BarePercentLiterals:
438
+ Description: 'Checks if usage of %() or %Q() matches configuration.'
439
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
440
+ Enabled: false
441
+
442
+ Style/BlockComments:
443
+ Description: 'Do not use block comments.'
444
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
445
+ Enabled: false
446
+
447
+ Style/BlockEndNewline:
448
+ Description: 'Put end statement of multiline block on its own line.'
449
+ Enabled: false
450
+
451
+ Style/BlockDelimiters:
452
+ Description: >-
453
+ Avoid using {...} for multi-line blocks (multiline chaining is
454
+ always ugly).
455
+ Prefer {...} over do...end for single-line blocks.
456
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
457
+ Enabled: false
458
+
459
+ Style/BracesAroundHashParameters:
460
+ Description: 'Enforce braces style around hash parameters.'
461
+ Enabled: false
462
+
463
+ Style/CaseEquality:
464
+ Description: 'Avoid explicit use of the case equality operator(===).'
465
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
466
+ Enabled: false
467
+
468
+ Style/CaseIndentation:
469
+ Description: 'Indentation of when in a case/when/[else/]end.'
470
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
471
+ Enabled: false
472
+
473
+ Style/CharacterLiteral:
474
+ Description: 'Checks for uses of character literals.'
475
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
476
+ Enabled: false
477
+
478
+ Style/ClassAndModuleCamelCase:
479
+ Description: 'Use CamelCase for classes and modules.'
480
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
481
+ Enabled: true
482
+
483
+ Style/ClassAndModuleChildren:
484
+ Description: 'Checks style of children classes and modules.'
485
+ Enabled: false
486
+
487
+ Style/ClassCheck:
488
+ Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
489
+ Enabled: false
490
+
491
+ Style/ClassMethods:
492
+ Description: 'Use self when defining module/class methods.'
493
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
494
+ Enabled: false
495
+
496
+ Style/ClassVars:
497
+ Description: 'Avoid the use of class variables.'
498
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
499
+ Enabled: false
500
+
501
+ Style/ClosingParenthesisIndentation:
502
+ Description: 'Checks the indentation of hanging closing parentheses.'
503
+ Enabled: false
504
+
505
+ Style/ColonMethodCall:
506
+ Description: 'Do not use :: for method call.'
507
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
508
+ Enabled: false
509
+
510
+ Style/CommandLiteral:
511
+ Description: 'Use `` or %x around command literals.'
512
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
513
+ Enabled: false
514
+
515
+ Style/CommentAnnotation:
516
+ Description: 'Checks formatting of annotation comments.'
517
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
518
+ Enabled: false
519
+
520
+ Style/CommentIndentation:
521
+ Description: 'Indentation of comments.'
522
+ Enabled: false
523
+
524
+ Style/ConstantName:
525
+ Description: 'Constants should use SCREAMING_SNAKE_CASE.'
526
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
527
+ Enabled: true
528
+
529
+ Style/DefWithParentheses:
530
+ Description: 'Use def with parentheses when there are arguments.'
531
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
532
+ Enabled: false
533
+
534
+ Style/PreferredHashMethods:
535
+ Description: 'Checks for use of prefered Hash methods.'
536
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
537
+ Enabled: false
538
+
539
+ Style/Documentation:
540
+ Description: 'Document classes and non-namespace modules.'
541
+ Enabled: false
542
+
543
+ Style/DotPosition:
544
+ Description: 'Checks the position of the dot in multi-line method calls.'
545
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
546
+ Enabled: false
547
+
548
+ Style/DoubleNegation:
549
+ Description: 'Checks for uses of double negation (!!).'
550
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
551
+ Enabled: false
552
+
553
+ Style/EachWithObject:
554
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
555
+ Enabled: false
556
+
557
+ Style/ElseAlignment:
558
+ Description: 'Align elses and elsifs correctly.'
559
+ Enabled: false
560
+
561
+ Style/EmptyElse:
562
+ Description: 'Avoid empty else-clauses.'
563
+ Enabled: false
564
+
565
+ Style/EmptyLineBetweenDefs:
566
+ Description: 'Use empty lines between defs.'
567
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
568
+ Enabled: false
569
+
570
+ Style/EmptyLines:
571
+ Description: "Don't use several empty lines in a row."
572
+ Enabled: false
573
+
574
+ Style/EmptyLinesAroundAccessModifier:
575
+ Description: "Keep blank lines around access modifiers."
576
+ Enabled: false
577
+
578
+ Style/EmptyLinesAroundBlockBody:
579
+ Description: "Keeps track of empty lines around block bodies."
580
+ Enabled: false
581
+
582
+ Style/EmptyLinesAroundClassBody:
583
+ Description: "Keeps track of empty lines around class bodies."
584
+ Enabled: false
585
+
586
+ Style/EmptyLinesAroundModuleBody:
587
+ Description: "Keeps track of empty lines around module bodies."
588
+ Enabled: false
589
+
590
+ Style/EmptyLinesAroundMethodBody:
591
+ Description: "Keeps track of empty lines around method bodies."
592
+ Enabled: false
593
+
594
+ Style/EmptyLiteral:
595
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
596
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
597
+ Enabled: false
598
+
599
+ Style/EndBlock:
600
+ Description: 'Avoid the use of END blocks.'
601
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
602
+ Enabled: false
603
+
604
+ Style/EndOfLine:
605
+ Description: 'Use Unix-style line endings.'
606
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
607
+ Enabled: false
608
+
609
+ Style/EvenOdd:
610
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
611
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
612
+ Enabled: false
613
+
614
+ Style/ExtraSpacing:
615
+ Description: 'Do not use unnecessary spacing.'
616
+ Enabled: false
617
+
618
+ Style/FileName:
619
+ Description: 'Use snake_case for source file names.'
620
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
621
+ Enabled: true
622
+
623
+ Style/InitialIndentation:
624
+ Description: >-
625
+ Checks the indentation of the first non-blank non-comment line in a file.
626
+ Enabled: false
627
+
628
+ Style/FirstParameterIndentation:
629
+ Description: 'Checks the indentation of the first parameter in a method call.'
630
+ Enabled: false
631
+
632
+ Style/FlipFlop:
633
+ Description: 'Checks for flip flops'
634
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
635
+ Enabled: false
636
+
637
+ Style/For:
638
+ Description: 'Checks use of for or each in multiline loops.'
639
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
640
+ Enabled: false
641
+
642
+ Style/FormatString:
643
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
644
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
645
+ Enabled: false
646
+
647
+ Style/GlobalVars:
648
+ Description: 'Do not introduce global variables.'
649
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
650
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
651
+ Enabled: false
652
+
653
+ Style/GuardClause:
654
+ Description: 'Check for conditionals that can be replaced with guard clauses'
655
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
656
+ Enabled: false
657
+
658
+ Style/HashSyntax:
659
+ Description: >-
660
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
661
+ { :a => 1, :b => 2 }.
662
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
663
+ Enabled: false
664
+
665
+ Style/IfUnlessModifier:
666
+ Description: >-
667
+ Favor modifier if/unless usage when you have a
668
+ single-line body.
669
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
670
+ Enabled: false
671
+
672
+ Style/IfWithSemicolon:
673
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
674
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
675
+ Enabled: false
676
+
677
+ Style/IndentationConsistency:
678
+ Description: 'Keep indentation straight.'
679
+ Enabled: true
680
+
681
+ Style/IndentationWidth:
682
+ Description: 'Use 2 spaces for indentation.'
683
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
684
+ Enabled: true
685
+
686
+ Style/IndentArray:
687
+ Description: >-
688
+ Checks the indentation of the first element in an array
689
+ literal.
690
+ Enabled: false
691
+
692
+ Style/IndentHash:
693
+ Description: 'Checks the indentation of the first key in a hash literal.'
694
+ Enabled: false
695
+
696
+ Style/InfiniteLoop:
697
+ Description: 'Use Kernel#loop for infinite loops.'
698
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
699
+ Enabled: false
700
+
701
+ Style/Lambda:
702
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
703
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
704
+ Enabled: false
705
+
706
+ Style/LambdaCall:
707
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
708
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
709
+ Enabled: false
710
+
711
+ Style/LeadingCommentSpace:
712
+ Description: 'Comments should start with a space.'
713
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
714
+ Enabled: false
715
+
716
+ Style/LineEndConcatenation:
717
+ Description: >-
718
+ Use \ instead of + or << to concatenate two string literals at
719
+ line end.
720
+ Enabled: false
721
+
722
+ Style/MethodCallParentheses:
723
+ Description: 'Do not use parentheses for method calls with no arguments.'
724
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
725
+ Enabled: false
726
+
727
+ Style/MethodDefParentheses:
728
+ Description: >-
729
+ Checks if the method definitions have or don't have
730
+ parentheses.
731
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
732
+ Enabled: false
733
+
734
+ Style/MethodName:
735
+ Description: 'Use the configured style when naming methods.'
736
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
737
+ Enabled: true
738
+
739
+ Style/ModuleFunction:
740
+ Description: 'Checks for usage of `extend self` in modules.'
741
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
742
+ Enabled: false
743
+
744
+ Style/MultilineBlockChain:
745
+ Description: 'Avoid multi-line chains of blocks.'
746
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
747
+ Enabled: false
748
+
749
+ Style/MultilineBlockLayout:
750
+ Description: 'Ensures newlines after multiline block do statements.'
751
+ Enabled: false
752
+
753
+ Style/MultilineIfThen:
754
+ Description: 'Do not use then for multi-line if/unless.'
755
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
756
+ Enabled: false
757
+
758
+ Style/MultilineOperationIndentation:
759
+ Description: >-
760
+ Checks indentation of binary operations that span more than
761
+ one line.
762
+ Enabled: false
763
+
764
+ Style/MultilineTernaryOperator:
765
+ Description: >-
766
+ Avoid multi-line ?: (the ternary operator);
767
+ use if/unless instead.
768
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
769
+ Enabled: false
770
+
771
+ Style/NegatedIf:
772
+ Description: >-
773
+ Favor unless over if for negative conditions
774
+ (or control flow or).
775
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
776
+ Enabled: false
777
+
778
+ Style/NegatedWhile:
779
+ Description: 'Favor until over while for negative conditions.'
780
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
781
+ Enabled: false
782
+
783
+ Style/NestedTernaryOperator:
784
+ Description: 'Use one expression per branch in a ternary operator.'
785
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
786
+ Enabled: false
787
+
788
+ Style/Next:
789
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
790
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
791
+ Enabled: false
792
+
793
+ Style/NilComparison:
794
+ Description: 'Prefer x.nil? to x == nil.'
795
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
796
+ Enabled: false
797
+
798
+ Style/NonNilCheck:
799
+ Description: 'Checks for redundant nil checks.'
800
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
801
+ Enabled: false
802
+
803
+ Style/Not:
804
+ Description: 'Use ! instead of not.'
805
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
806
+ Enabled: false
807
+
808
+ Style/NumericLiterals:
809
+ Description: >-
810
+ Add underscores to large numeric literals to improve their
811
+ readability.
812
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
813
+ Enabled: false
814
+
815
+ Style/OneLineConditional:
816
+ Description: >-
817
+ Favor the ternary operator(?:) over
818
+ if/then/else/end constructs.
819
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
820
+ Enabled: false
821
+
822
+ Style/OpMethod:
823
+ Description: 'When defining binary operators, name the argument other.'
824
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
825
+ Enabled: false
826
+
827
+ Style/OptionalArguments:
828
+ Description: >-
829
+ Checks for optional arguments that do not appear at the end
830
+ of the argument list
831
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
832
+ Enabled: false
833
+
834
+ Style/ParallelAssignment:
835
+ Description: >-
836
+ Check for simple usages of parallel assignment.
837
+ It will only warn when the number of variables
838
+ matches on both sides of the assignment.
839
+ This also provides performance benefits
840
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
841
+ Enabled: false
842
+
843
+ Style/ParenthesesAroundCondition:
844
+ Description: >-
845
+ Don't use parentheses around the condition of an
846
+ if/unless/while.
847
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
848
+ Enabled: false
849
+
850
+ Style/PercentLiteralDelimiters:
851
+ Description: 'Use `%`-literal delimiters consistently'
852
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
853
+ Enabled: false
854
+
855
+ Style/PercentQLiterals:
856
+ Description: 'Checks if uses of %Q/%q match the configured preference.'
857
+ Enabled: false
858
+
859
+ Style/PerlBackrefs:
860
+ Description: 'Avoid Perl-style regex back references.'
861
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
862
+ Enabled: false
863
+
864
+ Style/PredicateName:
865
+ Description: 'Check the names of predicate methods.'
866
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
867
+ Enabled: false
868
+
869
+ Style/Proc:
870
+ Description: 'Use proc instead of Proc.new.'
871
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
872
+ Enabled: false
873
+
874
+ Style/RaiseArgs:
875
+ Description: 'Checks the arguments passed to raise/fail.'
876
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
877
+ Enabled: false
878
+
879
+ Style/RedundantBegin:
880
+ Description: "Don't use begin blocks when they are not needed."
881
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
882
+ Enabled: false
883
+
884
+ Style/RedundantException:
885
+ Description: "Checks for an obsolete RuntimeException argument in raise/fail."
886
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
887
+ Enabled: false
888
+
889
+ Style/RedundantReturn:
890
+ Description: "Don't use return where it's not required."
891
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
892
+ Enabled: false
893
+
894
+ Style/RedundantSelf:
895
+ Description: "Don't use self where it's not needed."
896
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
897
+ Enabled: false
898
+
899
+ Style/RegexpLiteral:
900
+ Description: 'Use / or %r around regular expressions.'
901
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
902
+ Enabled: false
903
+
904
+ Style/RescueEnsureAlignment:
905
+ Description: 'Align rescues and ensures correctly.'
906
+ Enabled: false
907
+
908
+ Style/RescueModifier:
909
+ Description: 'Avoid using rescue in its modifier form.'
910
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
911
+ Enabled: false
912
+
913
+ Style/SelfAssignment:
914
+ Description: >-
915
+ Checks for places where self-assignment shorthand should have
916
+ been used.
917
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
918
+ Enabled: false
919
+
920
+ Style/Semicolon:
921
+ Description: "Don't use semicolons to terminate expressions."
922
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
923
+ Enabled: false
924
+
925
+ Style/SignalException:
926
+ Description: 'Checks for proper usage of fail and raise.'
927
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
928
+ Enabled: false
929
+
930
+ Style/SingleLineBlockParams:
931
+ Description: 'Enforces the names of some block params.'
932
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
933
+ Enabled: false
934
+
935
+ Style/SingleLineMethods:
936
+ Description: 'Avoid single-line methods.'
937
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
938
+ Enabled: false
939
+
940
+ Style/SpaceBeforeFirstArg:
941
+ Description: >-
942
+ Checks that exactly one space is used between a method name
943
+ and the first argument for method calls without parentheses.
944
+ Enabled: true
945
+
946
+ Style/SpaceAfterColon:
947
+ Description: 'Use spaces after colons.'
948
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
949
+ Enabled: false
950
+
951
+ Style/SpaceAfterComma:
952
+ Description: 'Use spaces after commas.'
953
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
954
+ Enabled: false
955
+
956
+ Style/SpaceAroundKeyword:
957
+ Description: 'Use spaces around keywords.'
958
+ Enabled: false
959
+
960
+ Style/SpaceAfterMethodName:
961
+ Description: >-
962
+ Do not put a space between a method name and the opening
963
+ parenthesis in a method definition.
964
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
965
+ Enabled: false
966
+
967
+ Style/SpaceAfterNot:
968
+ Description: Tracks redundant space after the ! operator.
969
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
970
+ Enabled: false
971
+
972
+ Style/SpaceAfterSemicolon:
973
+ Description: 'Use spaces after semicolons.'
974
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
975
+ Enabled: false
976
+
977
+ Style/SpaceBeforeBlockBraces:
978
+ Description: >-
979
+ Checks that the left block brace has or doesn't have space
980
+ before it.
981
+ Enabled: false
982
+
983
+ Style/SpaceBeforeComma:
984
+ Description: 'No spaces before commas.'
985
+ Enabled: false
986
+
987
+ Style/SpaceBeforeComment:
988
+ Description: >-
989
+ Checks for missing space between code and a comment on the
990
+ same line.
991
+ Enabled: false
992
+
993
+ Style/SpaceBeforeSemicolon:
994
+ Description: 'No spaces before semicolons.'
995
+ Enabled: false
996
+
997
+ Style/SpaceInsideBlockBraces:
998
+ Description: >-
999
+ Checks that block braces have or don't have surrounding space.
1000
+ For blocks taking parameters, checks that the left brace has
1001
+ or doesn't have trailing space.
1002
+ Enabled: false
1003
+
1004
+ Style/SpaceAroundBlockParameters:
1005
+ Description: 'Checks the spacing inside and after block parameters pipes.'
1006
+ Enabled: false
1007
+
1008
+ Style/SpaceAroundEqualsInParameterDefault:
1009
+ Description: >-
1010
+ Checks that the equals signs in parameter default assignments
1011
+ have or don't have surrounding space depending on
1012
+ configuration.
1013
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
1014
+ Enabled: false
1015
+
1016
+ Style/SpaceAroundOperators:
1017
+ Description: 'Use a single space around operators.'
1018
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1019
+ Enabled: false
1020
+
1021
+ Style/SpaceInsideBrackets:
1022
+ Description: 'No spaces after [ or before ].'
1023
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1024
+ Enabled: false
1025
+
1026
+ Style/SpaceInsideHashLiteralBraces:
1027
+ Description: "Use spaces inside hash literal braces - or don't."
1028
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1029
+ Enabled: false
1030
+
1031
+ Style/SpaceInsideParens:
1032
+ Description: 'No spaces after ( or before ).'
1033
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1034
+ Enabled: false
1035
+
1036
+ Style/SpaceInsideRangeLiteral:
1037
+ Description: 'No spaces inside range literals.'
1038
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
1039
+ Enabled: false
1040
+
1041
+ Style/SpaceInsideStringInterpolation:
1042
+ Description: 'Checks for padding/surrounding spaces inside string interpolation.'
1043
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
1044
+ Enabled: false
1045
+
1046
+ Style/SpecialGlobalVars:
1047
+ Description: 'Avoid Perl-style global variables.'
1048
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
1049
+ Enabled: false
1050
+
1051
+ Style/StringLiterals:
1052
+ Description: 'Checks if uses of quotes match the configured preference.'
1053
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
1054
+ Enabled: true
1055
+
1056
+ Style/StringLiteralsInInterpolation:
1057
+ Description: >-
1058
+ Checks if uses of quotes inside expressions in interpolated
1059
+ strings match the configured preference.
1060
+ Enabled: true
1061
+
1062
+ Style/StructInheritance:
1063
+ Description: 'Checks for inheritance from Struct.new.'
1064
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
1065
+ Enabled: false
1066
+
1067
+ Style/SymbolLiteral:
1068
+ Description: 'Use plain symbols instead of string symbols when possible.'
1069
+ Enabled: false
1070
+
1071
+ Style/SymbolProc:
1072
+ Description: 'Use symbols as procs instead of blocks when possible.'
1073
+ Enabled: false
1074
+
1075
+ Style/Tab:
1076
+ Description: 'No hard tabs.'
1077
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1078
+ Enabled: false
1079
+
1080
+ Style/TrailingBlankLines:
1081
+ Description: 'Checks trailing blank lines and final newline.'
1082
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1083
+ Enabled: false
1084
+
1085
+ Style/TrailingCommaInArguments:
1086
+ Description: 'Checks for trailing comma in parameter lists.'
1087
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1088
+ Enabled: false
1089
+
1090
+ Style/TrailingCommaInLiteral:
1091
+ Description: 'Checks for trailing comma in literals.'
1092
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
1093
+ Enabled: false
1094
+
1095
+ Style/TrailingWhitespace:
1096
+ Description: 'Avoid trailing whitespace.'
1097
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1098
+ Enabled: false
1099
+
1100
+ Style/TrivialAccessors:
1101
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
1102
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
1103
+ Enabled: false
1104
+
1105
+ Style/UnlessElse:
1106
+ Description: >-
1107
+ Do not use unless with else. Rewrite these with the positive
1108
+ case first.
1109
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
1110
+ Enabled: true
1111
+
1112
+ Style/UnneededCapitalW:
1113
+ Description: 'Checks for %W when interpolation is not needed.'
1114
+ Enabled: false
1115
+
1116
+ Style/UnneededPercentQ:
1117
+ Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
1118
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
1119
+ Enabled: false
1120
+
1121
+ Style/TrailingUnderscoreVariable:
1122
+ Description: >-
1123
+ Checks for the usage of unneeded trailing underscores at the
1124
+ end of parallel variable assignment.
1125
+ Enabled: false
1126
+
1127
+ Style/VariableInterpolation:
1128
+ Description: >-
1129
+ Don't interpolate global, instance and class variables
1130
+ directly in strings.
1131
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1132
+ Enabled: false
1133
+
1134
+ Style/VariableName:
1135
+ Description: 'Use the configured style when naming variables.'
1136
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1137
+ Enabled: true
1138
+
1139
+ Style/WhenThen:
1140
+ Description: 'Use when x then ... for one-line cases.'
1141
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
1142
+ Enabled: false
1143
+
1144
+ Style/WhileUntilDo:
1145
+ Description: 'Checks for redundant do after while or until.'
1146
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
1147
+ Enabled: false
1148
+
1149
+ Style/WhileUntilModifier:
1150
+ Description: >-
1151
+ Favor modifier while/until usage when you have a
1152
+ single-line body.
1153
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
1154
+ Enabled: false
1155
+
1156
+ Style/WordArray:
1157
+ Description: 'Use %w or %W for arrays of words.'
1158
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
1159
+ Enabled: false