ios_config_profile 1.3.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.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +9 -0
  3. data/.gitignore +35 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +602 -0
  6. data/.simplecov +4 -0
  7. data/CHANGELOG.md +67 -0
  8. data/CODE_OF_CONDUCT.md +13 -0
  9. data/Gemfile +5 -0
  10. data/LICENSE +661 -0
  11. data/README.md +15 -0
  12. data/Rakefile +5 -0
  13. data/ios_config_profile.gemspec +28 -0
  14. data/lib/ios_config_profile.rb +8 -0
  15. data/lib/ios_config_profile/basic_payload.rb +31 -0
  16. data/lib/ios_config_profile/command_payload.rb +24 -0
  17. data/lib/ios_config_profile/content/install_application_payload.rb +23 -0
  18. data/lib/ios_config_profile/content/install_book_payload.rb +23 -0
  19. data/lib/ios_config_profile/content/install_doc_payload.rb +27 -0
  20. data/lib/ios_config_profile/content/install_market_app_payload.rb +23 -0
  21. data/lib/ios_config_profile/content/installed_application_list_payload.rb +17 -0
  22. data/lib/ios_config_profile/content/remove_application_payload.rb +22 -0
  23. data/lib/ios_config_profile/content/remove_book_payload.rb +23 -0
  24. data/lib/ios_config_profile/content/remove_doc_payload.rb +23 -0
  25. data/lib/ios_config_profile/content/web_clip_payload.rb +38 -0
  26. data/lib/ios_config_profile/device/app_lock_payload.rb +33 -0
  27. data/lib/ios_config_profile/device/clear_passcode_payload.rb +24 -0
  28. data/lib/ios_config_profile/device/dep_payload.rb +40 -0
  29. data/lib/ios_config_profile/device/device_information_payload.rb +69 -0
  30. data/lib/ios_config_profile/device/enrollment_payload.rb +25 -0
  31. data/lib/ios_config_profile/device/erase_device_payload.rb +18 -0
  32. data/lib/ios_config_profile/device/install_profile_payload.rb +22 -0
  33. data/lib/ios_config_profile/device/lock_device_payload.rb +17 -0
  34. data/lib/ios_config_profile/device/mdm_payload.rb +40 -0
  35. data/lib/ios_config_profile/device/remove_profile_payload.rb +22 -0
  36. data/lib/ios_config_profile/device/restrictions_payload.rb +144 -0
  37. data/lib/ios_config_profile/device/scep_payload.rb +34 -0
  38. data/lib/ios_config_profile/device/security_payload.rb +32 -0
  39. data/lib/ios_config_profile/device/set_device_name_payload.rb +22 -0
  40. data/lib/ios_config_profile/device/vpn_payload.rb +86 -0
  41. data/lib/ios_config_profile/encrypted_payload.rb +14 -0
  42. data/lib/ios_config_profile/version.rb +4 -0
  43. data/spec/basic_payload_spec.rb +53 -0
  44. data/spec/command_payload_spec.rb +12 -0
  45. data/spec/content/install_application_payload_spec.rb +15 -0
  46. data/spec/content/install_book_payload_spec.rb +14 -0
  47. data/spec/content/install_doc_payload_spec.rb +16 -0
  48. data/spec/content/install_market_app_payload_spec.rb +15 -0
  49. data/spec/content/installed_application_list_payload_spec.rb +13 -0
  50. data/spec/content/remove_application_payoad_spec.rb +13 -0
  51. data/spec/content/remove_book_payload_spec.rb +14 -0
  52. data/spec/content/remove_doc_payload_spec.rb +18 -0
  53. data/spec/content/web_clip_payload_spec.rb +22 -0
  54. data/spec/device/app_lock_payload_spec.rb +23 -0
  55. data/spec/device/clear_passcode_payload_spec.rb +14 -0
  56. data/spec/device/dep_payload_spec.rb +18 -0
  57. data/spec/device/device_information_payload_spec.rb +28 -0
  58. data/spec/device/enrollment_payload_spec.rb +18 -0
  59. data/spec/device/erase_device_payload_spec.rb +11 -0
  60. data/spec/device/install_profile_payload_spec.rb +13 -0
  61. data/spec/device/lock_device_payload_spec.rb +11 -0
  62. data/spec/device/mdm_payload_spec.rb +41 -0
  63. data/spec/device/remove_profile_payload_spec.rb +14 -0
  64. data/spec/device/restrictions_payload_spec.rb +42 -0
  65. data/spec/device/scep_payload_spec.rb +14 -0
  66. data/spec/device/security_payload_spec.rb +29 -0
  67. data/spec/device/set_device_name_payload_spec.rb +14 -0
  68. data/spec/device/vpn_payload_spec.rb +75 -0
  69. data/spec/encrypted_payload_spec.rb +26 -0
  70. data/spec/spec_helper.rb +14 -0
  71. metadata +241 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4267630f92b93647afd9e12bbde39f59b125aaaa
4
+ data.tar.gz: 080df555388eb95780ec2db2cc3945c5ade5383c
5
+ SHA512:
6
+ metadata.gz: ad828932f801a0e5fd70d912b956e014ec9b64fb04afc76149f1b7afb537633ee131386cc79a184625ecc92535677958ca94ea2767f25c55f5f758b19a39512d
7
+ data.tar.gz: cdf06afed6fdab690ed6d73b7f5dbc6045566dfe689f86cf3e94f1c23935272fad433bb51e0ad826820447ce5b3fc75ccf3e421127dc1cc401a5457bce7d7ecb
data/.codeclimate.yml ADDED
@@ -0,0 +1,9 @@
1
+ ---
2
+ engines:
3
+ fixme:
4
+ enabled: true
5
+ rubocop:
6
+ enabled: true
7
+ ratings:
8
+ paths:
9
+ - "**.rb"
data/.gitignore ADDED
@@ -0,0 +1,35 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /vendor/bundle
26
+ /lib/bundler/man/
27
+
28
+ # for a library or gem, you might want to ignore these files since the code is
29
+ # intended to run in multiple environments; otherwise, check them in:
30
+ Gemfile.lock
31
+ .ruby-version
32
+ .ruby-gemset
33
+
34
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
+ .rvmrc
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/.rubocop.yml ADDED
@@ -0,0 +1,602 @@
1
+ AllCops:
2
+ Exclude:
3
+ - db/schema.rb
4
+
5
+ Style/AccessorMethodName:
6
+ Description: Check the naming of accessor methods for get_/set_.
7
+ Enabled: false
8
+
9
+ Style/Alias:
10
+ Description: 'Use alias_method instead of alias.'
11
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
12
+ Enabled: false
13
+
14
+ Style/ArrayJoin:
15
+ Description: 'Use Array#join instead of Array#*.'
16
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
17
+ Enabled: false
18
+
19
+ Style/AsciiComments:
20
+ Description: 'Use only ascii symbols in comments.'
21
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
22
+ Enabled: false
23
+
24
+ Style/AsciiIdentifiers:
25
+ Description: 'Use only ascii symbols in identifiers.'
26
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
27
+ Enabled: false
28
+
29
+ Style/Attr:
30
+ Description: 'Checks for uses of Module#attr.'
31
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
32
+ Enabled: false
33
+
34
+ Metrics/BlockNesting:
35
+ Description: 'Avoid excessive block nesting'
36
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
37
+ Enabled: false
38
+
39
+ Style/CaseEquality:
40
+ Description: 'Avoid explicit use of the case equality operator(===).'
41
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
42
+ Enabled: false
43
+
44
+ Style/CharacterLiteral:
45
+ Description: 'Checks for uses of character literals.'
46
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
47
+ Enabled: false
48
+
49
+ Style/ClassAndModuleChildren:
50
+ Description: 'Checks style of children classes and modules.'
51
+ Enabled: true
52
+ EnforcedStyle: nested
53
+
54
+ Metrics/ClassLength:
55
+ Description: 'Avoid classes longer than 100 lines of code.'
56
+ Enabled: false
57
+
58
+ Metrics/ModuleLength:
59
+ Description: 'Avoid modules longer than 100 lines of code.'
60
+ Enabled: false
61
+
62
+ Style/ClassVars:
63
+ Description: 'Avoid the use of class variables.'
64
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
65
+ Enabled: false
66
+
67
+ Style/CollectionMethods:
68
+ Enabled: true
69
+ PreferredMethods:
70
+ find: detect
71
+ inject: reduce
72
+ collect: map
73
+ find_all: select
74
+
75
+ Style/ColonMethodCall:
76
+ Description: 'Do not use :: for method call.'
77
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
78
+ Enabled: false
79
+
80
+ Style/CommentAnnotation:
81
+ Description: >-
82
+ Checks formatting of special comments
83
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
84
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
85
+ Enabled: false
86
+
87
+ Metrics/CyclomaticComplexity:
88
+ Description: >-
89
+ A complexity metric that is strongly correlated to the number
90
+ of test cases needed to validate a method.
91
+ Enabled: false
92
+
93
+ Rails/Delegate:
94
+ Description: 'Prefer delegate method for delegations.'
95
+ Enabled: false
96
+
97
+ Style/DeprecatedHashMethods:
98
+ Description: 'Checks for use of deprecated Hash methods.'
99
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
100
+ Enabled: false
101
+
102
+ Style/Documentation:
103
+ Description: 'Document classes and non-namespace modules.'
104
+ Enabled: false
105
+
106
+ Style/DotPosition:
107
+ Description: 'Checks the position of the dot in multi-line method calls.'
108
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
109
+ EnforcedStyle: trailing
110
+
111
+ Style/DoubleNegation:
112
+ Description: 'Checks for uses of double negation (!!).'
113
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
114
+ Enabled: false
115
+
116
+ Style/EachWithObject:
117
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
118
+ Enabled: false
119
+
120
+ Style/EmptyLiteral:
121
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
122
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
123
+ Enabled: false
124
+
125
+ # Checks whether the source file has a utf-8 encoding comment or not
126
+ # AutoCorrectEncodingComment must match the regex
127
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
128
+ Style/Encoding:
129
+ Enabled: false
130
+
131
+ Style/EvenOdd:
132
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
133
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
134
+ Enabled: false
135
+
136
+ Style/ExtraSpacing:
137
+ Description: 'Do not use unnecessary spacing.'
138
+ Enabled: true
139
+
140
+ Style/FileName:
141
+ Description: 'Use snake_case for source file names.'
142
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
143
+ Enabled: false
144
+
145
+ Style/FlipFlop:
146
+ Description: 'Checks for flip flops'
147
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
148
+ Enabled: false
149
+
150
+ Style/FormatString:
151
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
152
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
153
+ Enabled: false
154
+
155
+ Style/GlobalVars:
156
+ Description: 'Do not introduce global variables.'
157
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
158
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
159
+ Enabled: false
160
+
161
+ Style/GuardClause:
162
+ Description: 'Check for conditionals that can be replaced with guard clauses'
163
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
164
+ Enabled: false
165
+
166
+ Style/IfUnlessModifier:
167
+ Description: >-
168
+ Favor modifier if/unless usage when you have a
169
+ single-line body.
170
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
171
+ Enabled: false
172
+
173
+ Style/IfWithSemicolon:
174
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
175
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
176
+ Enabled: false
177
+
178
+ Style/InlineComment:
179
+ Description: 'Avoid inline comments.'
180
+ Enabled: false
181
+
182
+ Style/Lambda:
183
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
184
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
185
+ Enabled: false
186
+
187
+ Style/LambdaCall:
188
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
189
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
190
+ Enabled: false
191
+
192
+ Style/LineEndConcatenation:
193
+ Description: >-
194
+ Use \ instead of + or << to concatenate two string literals at
195
+ line end.
196
+ Enabled: false
197
+
198
+ Metrics/LineLength:
199
+ Enabled: false # Override
200
+
201
+ Metrics/MethodLength:
202
+ Description: 'Avoid methods longer than 10 lines of code.'
203
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
204
+ Enabled: false
205
+
206
+ Style/ModuleFunction:
207
+ Description: 'Checks for usage of `extend self` in modules.'
208
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
209
+ Enabled: false
210
+
211
+ Style/MultilineOperationIndentation:
212
+ Description: >-
213
+ Checks indentation of binary operations that span more than
214
+ one line.
215
+ Enabled: true
216
+ EnforcedStyle: indented
217
+
218
+ Style/NegatedIf:
219
+ Description: >-
220
+ Favor unless over if for negative conditions
221
+ (or control flow or).
222
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
223
+ Enabled: false
224
+
225
+ Style/NegatedWhile:
226
+ Description: 'Favor until over while for negative conditions.'
227
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
228
+ Enabled: false
229
+
230
+ Style/Next:
231
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
232
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
233
+ Enabled: false
234
+
235
+ Style/NilComparison:
236
+ Description: 'Prefer x.nil? to x == nil.'
237
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
238
+ Enabled: false
239
+
240
+ Style/Not:
241
+ Description: 'Use ! instead of not.'
242
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
243
+ Enabled: false
244
+
245
+ Style/NumericLiterals:
246
+ Description: >-
247
+ Add underscores to large numeric literals to improve their
248
+ readability.
249
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
250
+ Enabled: false
251
+
252
+ Style/OneLineConditional:
253
+ Description: >-
254
+ Favor the ternary operator(?:) over
255
+ if/then/else/end constructs.
256
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
257
+ Enabled: false
258
+
259
+ Style/OpMethod:
260
+ Description: 'When defining binary operators, name the argument other.'
261
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
262
+ Enabled: false
263
+
264
+ Metrics/ParameterLists:
265
+ Description: 'Avoid parameter lists longer than three or four parameters.'
266
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
267
+ Enabled: false
268
+
269
+ Style/PercentLiteralDelimiters:
270
+ Description: 'Use `%`-literal delimiters consistently'
271
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
272
+ Enabled: false
273
+
274
+ Style/PerlBackrefs:
275
+ Description: 'Avoid Perl-style regex back references.'
276
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
277
+ Enabled: false
278
+
279
+ Style/PredicateName:
280
+ Description: 'Check the names of predicate methods.'
281
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
282
+ NamePrefixBlacklist:
283
+ - is_
284
+ Exclude:
285
+ - spec/**/*
286
+
287
+ Style/Proc:
288
+ Description: 'Use proc instead of Proc.new.'
289
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
290
+ Enabled: false
291
+
292
+ Style/RaiseArgs:
293
+ Description: 'Checks the arguments passed to raise/fail.'
294
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
295
+ Enabled: false
296
+
297
+ Style/RegexpLiteral:
298
+ Description: 'Use / or %r around regular expressions.'
299
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
300
+ Enabled: false
301
+
302
+ Style/SelfAssignment:
303
+ Description: >-
304
+ Checks for places where self-assignment shorthand should have
305
+ been used.
306
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
307
+ Enabled: false
308
+
309
+ Style/SingleLineBlockParams:
310
+ Description: 'Enforces the names of some block params.'
311
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
312
+ Enabled: false
313
+
314
+ Style/SingleLineMethods:
315
+ Description: 'Avoid single-line methods.'
316
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
317
+ Enabled: false
318
+
319
+ Style/SignalException:
320
+ Description: 'Checks for proper usage of fail and raise.'
321
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
322
+ Enabled: false
323
+
324
+ Style/SpecialGlobalVars:
325
+ Description: 'Avoid Perl-style global variables.'
326
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
327
+ Enabled: false
328
+
329
+ Style/StringLiterals:
330
+ Description: 'Checks if uses of quotes match the configured preference.'
331
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
332
+ EnforcedStyle: double_quotes
333
+ Enabled: true
334
+
335
+ Style/TrailingCommaInLiteral:
336
+ Description: 'Checks for trailing comma in parameter lists and literals.'
337
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
338
+ EnforcedStyleForMultiline: comma
339
+ SupportedStyles:
340
+ - comma
341
+ - no_comma
342
+ Enabled: true
343
+
344
+ Style/TrailingCommaInArguments:
345
+ Enabled: true
346
+
347
+ Style/TrivialAccessors:
348
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
349
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
350
+ Enabled: false
351
+
352
+ Style/VariableInterpolation:
353
+ Description: >-
354
+ Don't interpolate global, instance and class variables
355
+ directly in strings.
356
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
357
+ Enabled: false
358
+
359
+ Style/WhenThen:
360
+ Description: 'Use when x then ... for one-line cases.'
361
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
362
+ Enabled: false
363
+
364
+ Style/WhileUntilModifier:
365
+ Description: >-
366
+ Favor modifier while/until usage when you have a
367
+ single-line body.
368
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
369
+ Enabled: false
370
+
371
+ Style/WordArray:
372
+ Description: 'Use %w or %W for arrays of words.'
373
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
374
+ Enabled: false
375
+
376
+ # Lint
377
+
378
+ Lint/AmbiguousOperator:
379
+ Description: >-
380
+ Checks for ambiguous operators in the first argument of a
381
+ method invocation without parentheses.
382
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
383
+ Enabled: false
384
+
385
+ Lint/AmbiguousRegexpLiteral:
386
+ Description: >-
387
+ Checks for ambiguous regexp literals in the first argument of
388
+ a method invocation without parenthesis.
389
+ Enabled: false
390
+
391
+ Lint/AssignmentInCondition:
392
+ Description: "Don't use assignment in conditions."
393
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
394
+ Enabled: false
395
+
396
+ Lint/CircularArgumentReference:
397
+ Description: "Don't refer to the keyword argument in the default value."
398
+ Enabled: false
399
+
400
+ Lint/ConditionPosition:
401
+ Description: >-
402
+ Checks for condition placed in a confusing position relative to
403
+ the keyword.
404
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
405
+ Enabled: false
406
+
407
+ Lint/DeprecatedClassMethods:
408
+ Description: 'Check for deprecated class method calls.'
409
+ Enabled: false
410
+
411
+ Lint/DuplicatedKey:
412
+ Description: 'Check for duplicate keys in hash literals.'
413
+ Enabled: false
414
+
415
+ Lint/EachWithObjectArgument:
416
+ Description: 'Check for immutable argument given to each_with_object.'
417
+ Enabled: false
418
+
419
+ Lint/ElseLayout:
420
+ Description: 'Check for odd code arrangement in an else block.'
421
+ Enabled: false
422
+
423
+ Lint/FormatParameterMismatch:
424
+ Description: 'The number of parameters to format/sprint must match the fields.'
425
+ Enabled: false
426
+
427
+ Lint/HandleExceptions:
428
+ Description: "Don't suppress exception."
429
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
430
+ Enabled: false
431
+
432
+ Lint/InvalidCharacterLiteral:
433
+ Description: >-
434
+ Checks for invalid character literals with a non-escaped
435
+ whitespace character.
436
+ Enabled: false
437
+
438
+ Style/InitialIndentation:
439
+ Description: >-
440
+ Checks the indentation of the first non-blank non-comment line in a file.
441
+ Enabled: false
442
+
443
+ Lint/LiteralInCondition:
444
+ Description: 'Checks of literals used in conditions.'
445
+ Enabled: false
446
+
447
+ Lint/LiteralInInterpolation:
448
+ Description: 'Checks for literals used in interpolation.'
449
+ Enabled: false
450
+
451
+ Lint/Loop:
452
+ Description: >-
453
+ Use Kernel#loop with break rather than begin/end/until or
454
+ begin/end/while for post-loop tests.
455
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
456
+ Enabled: false
457
+
458
+ Lint/NestedMethodDefinition:
459
+ Description: 'Do not use nested method definitions.'
460
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
461
+ Enabled: false
462
+
463
+ Lint/NonLocalExitFromIterator:
464
+ Description: 'Do not use return in iterator to cause non-local exit.'
465
+ Enabled: false
466
+
467
+ Lint/ParenthesesAsGroupedExpression:
468
+ Description: >-
469
+ Checks for method calls with a space before the opening
470
+ parenthesis.
471
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
472
+ Enabled: false
473
+
474
+ Lint/RequireParentheses:
475
+ Description: >-
476
+ Use parentheses in the method call to avoid confusion
477
+ about precedence.
478
+ Enabled: false
479
+
480
+ Lint/UnderscorePrefixedVariableName:
481
+ Description: 'Do not use prefix `_` for a variable that is used.'
482
+ Enabled: false
483
+
484
+ Lint/UnneededDisable:
485
+ Description: >-
486
+ Checks for rubocop:disable comments that can be removed.
487
+ Note: this cop is not disabled when disabling all cops.
488
+ It must be explicitly disabled.
489
+ Enabled: false
490
+
491
+ Lint/Void:
492
+ Description: 'Possible use of operator/literal/variable in void context.'
493
+ Enabled: false
494
+
495
+ # Performance
496
+
497
+ Performance/CaseWhenSplat:
498
+ Description: >-
499
+ Place `when` conditions that use splat at the end
500
+ of the list of `when` branches.
501
+ Enabled: false
502
+
503
+ Performance/Count:
504
+ Description: >-
505
+ Use `count` instead of `select...size`, `reject...size`,
506
+ `select...count`, `reject...count`, `select...length`,
507
+ and `reject...length`.
508
+ Enabled: false
509
+
510
+ Performance/Detect:
511
+ Description: >-
512
+ Use `detect` instead of `select.first`, `find_all.first`,
513
+ `select.last`, and `find_all.last`.
514
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
515
+ Enabled: false
516
+
517
+ Performance/FlatMap:
518
+ Description: >-
519
+ Use `Enumerable#flat_map`
520
+ instead of `Enumerable#map...Array#flatten(1)`
521
+ or `Enumberable#collect..Array#flatten(1)`
522
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
523
+ Enabled: false
524
+
525
+ Performance/ReverseEach:
526
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
527
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
528
+ Enabled: false
529
+
530
+ Performance/Sample:
531
+ Description: >-
532
+ Use `sample` instead of `shuffle.first`,
533
+ `shuffle.last`, and `shuffle[Fixnum]`.
534
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
535
+ Enabled: false
536
+
537
+ Performance/Size:
538
+ Description: >-
539
+ Use `size` instead of `count` for counting
540
+ the number of elements in `Array` and `Hash`.
541
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
542
+ Enabled: false
543
+
544
+ Performance/StringReplacement:
545
+ Description: >-
546
+ Use `tr` instead of `gsub` when you are replacing the same
547
+ number of characters. Use `delete` instead of `gsub` when
548
+ you are deleting characters.
549
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
550
+ Enabled: false
551
+
552
+ # Rails
553
+
554
+ Rails/ActionFilter:
555
+ Description: 'Enforces consistent use of action filter methods.'
556
+ Enabled: false
557
+
558
+ Rails/Date:
559
+ Description: >-
560
+ Checks the correct usage of date aware methods,
561
+ such as Date.today, Date.current etc.
562
+ Enabled: false
563
+
564
+ Rails/DefaultScope:
565
+ Description: 'Checks if the argument passed to default_scope is a block.'
566
+ Enabled: false
567
+
568
+ Rails/FindBy:
569
+ Description: 'Prefer find_by over where.first.'
570
+ Enabled: false
571
+
572
+ Rails/FindEach:
573
+ Description: 'Prefer all.find_each over all.find.'
574
+ Enabled: false
575
+
576
+ Rails/HasAndBelongsToMany:
577
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
578
+ Enabled: false
579
+
580
+ Rails/Output:
581
+ Description: 'Checks for calls to puts, print, etc.'
582
+ Enabled: false
583
+
584
+ Rails/ReadWriteAttribute:
585
+ Description: >-
586
+ Checks for read_attribute(:attr) and
587
+ write_attribute(:attr, val).
588
+ Enabled: false
589
+
590
+ Rails/ScopeArgs:
591
+ Description: 'Checks the arguments of ActiveRecord scopes.'
592
+ Enabled: false
593
+
594
+ Rails/TimeZone:
595
+ Description: 'Checks the correct usage of time zone aware methods.'
596
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
597
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
598
+ Enabled: false
599
+
600
+ Rails/Validation:
601
+ Description: 'Use validates :attribute, hash of validations.'
602
+ Enabled: false