canvas_faker 1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4d833648a1b1d09b492f392ead768908d3790773
4
+ data.tar.gz: 98219e5784e2b88775e97b652ed3edae8c96f373
5
+ SHA512:
6
+ metadata.gz: a63a67666097ccebc9841db8fd506771400ef36be52ad70a3030642f27d7bab33a4df3ee5dc25115c4fc7c70254408c0a7ceda63d2183f2dd46cd24b312736f1
7
+ data.tar.gz: b218fe08e78334d9fe64514de7683cb353d0d1f8eb44e9610acbb5c73b401c41dd55d30070716471f0187b9ed2f5103fee81ee53290b17dfe43b21aeeeb0ae0b
@@ -0,0 +1,163 @@
1
+ c
2
+ exit
3
+ course_id
4
+ c
5
+ student["id"]
6
+ student[id]
7
+ student[:id]
8
+ student
9
+ c
10
+ student["id"]
11
+ student
12
+ c
13
+ exit
14
+ user_first_name
15
+ email
16
+ exit
17
+ email
18
+ c
19
+ full name
20
+ full_name = `#{user_first_name}#{user_last_name}`
21
+ full_name
22
+ c
23
+ user_first_name
24
+ c
25
+ a=@api.proxy('LIST_QUIZZES_IN_COURSE',{course_id: 966})
26
+ c
27
+ Faker::Pokemon.name
28
+ Faker::Pokemon.numbers
29
+ Faker::Pokemon.Numbers
30
+ Faker::Pokemon.constants
31
+ Faker::Pokemon
32
+ Faker.constants
33
+ Faker
34
+ exit
35
+ ARGV[1]
36
+ ARG[1]
37
+ exit
38
+ canvas_url
39
+ c
40
+ course["id"]
41
+ course.parsed_response["id"]
42
+ exit
43
+ course.parsed_response["id"]
44
+ course.parsed_response[:id]
45
+ course.parsed_response.id
46
+ course.parsed_response
47
+ course[:parsed_response]
48
+ course["parsed_response"]
49
+ course
50
+ exit
51
+ should_create_course?(existing_course_names, course_name)
52
+ index
53
+ c
54
+ LMS.constants
55
+ LMS
56
+ exit
57
+ courses[existing_course_names.find_index("#{course_name}")]
58
+ courses.parsed_response.find_index("Test Course")
59
+ courses.parsed_response.find_index("test Course")
60
+ courses.count
61
+ courses
62
+ courses[4]
63
+ courses[3]
64
+ courses[2]
65
+ courses[1]
66
+ courses[0]
67
+ courses.second
68
+ courses.first
69
+ courses
70
+ cou.class
71
+ cou= courses
72
+ courses.class
73
+ courses.find_index("Test Course")
74
+ courses.methods
75
+ courses.find_by(name: "Test Course")
76
+ courses.first
77
+ courses.count
78
+ course_name
79
+ courses.find_index("#{course_name}")
80
+ courses.find_index["#{course_name}"]
81
+ c
82
+ courses.count
83
+ c
84
+ exit
85
+ CanvasFaker::Functionality.get_account_id
86
+ CanvasFaker.constants::Functionality.get_account_id
87
+ CanvasFaker.constants::Functionality
88
+ CanvasFaker.constants
89
+ CanvasFaker
90
+ exit
91
+ courses_names.find_index("#{course_name}")
92
+ courses_names.find_index(course_name)
93
+ courses_names.find_index("course_name")
94
+ c
95
+ use_old_course
96
+ exit
97
+ courses_names.find_index("Test Course")
98
+ courses_names.find_index(1)
99
+ courses_names.find_index(2)
100
+ courses_names.find("Test Course")
101
+ courses_names.first
102
+ courses_names.methods
103
+ courses
104
+ c
105
+ exit
106
+ a=courses_names.include?(cn)
107
+ a=courses_names.includes(cn)
108
+ a=courses_names.includes?(cn)
109
+ a=courses_names.any?
110
+ a=courses_names.any?(cn)
111
+ a.class
112
+ a
113
+ a=courses_names.find(cn)
114
+ courses_names.find(cn)
115
+ courses_names.methods
116
+ cn = "Test Course"
117
+ courses_names
118
+ course_names
119
+ exit
120
+ a= courses.map{|course| course["name"]}
121
+ courses
122
+ c
123
+ courses_names = course_list.map{|course| course["name"]}
124
+ exit
125
+ c
126
+ exit
127
+ LMS::API
128
+ LMS.constants
129
+ LMS::Canvas
130
+ LMS
131
+ LMS.class
132
+ LMS.methods.sort
133
+ LMS.methods
134
+ LMS.methods?
135
+ LMS
136
+ LMS::CanvasApi
137
+ LMS
138
+ LM
139
+ c
140
+ exit
141
+ ex
142
+ n
143
+ ENV["CANVAS_TOKEN"]
144
+ ENV["APP_DEFAULT_CANVAS_URL"]
145
+ exit
146
+ t
147
+ args
148
+ exit
149
+ args
150
+ ARGS[1]
151
+ ARGs[1]
152
+ ARG[1]
153
+ args
154
+ exit
155
+ i
156
+ params
157
+ ARG[1]
158
+ exit
159
+ c
160
+ courses[course]["id"].class
161
+ courses[course]["id"]
162
+ courses[course]["name"]
163
+ courses[course]
data/.env ADDED
@@ -0,0 +1,2 @@
1
+ CANVAS_TOKEN=4346~6Xgdp0UgtzXjIxFJ9V4cm36ImRmuSkvSClWAtHId5gnkW9nDeUczGpjD5EQz2egL
2
+ APP_DEFAULT_CANVAS_URL=https://atomicjolt.instructure.com
@@ -0,0 +1,8 @@
1
+ # Url of Canvas instance to interact with
2
+ APP_DEFAULT_CANVAS_URL=https://canvas.instructure.com
3
+
4
+ # Canvas token. This can be obtained via the OAuth dance or by adding a new "Approved Integrations"
5
+ # at this url https://atomicjolt.instructure.com/profile/settings
6
+ # Push the "New Access Token" button and then fill out the form.
7
+ # This token is only used when seeding the database for the first time.
8
+ CANVAS_TOKEN=1234
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,648 @@
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/AbcSize:
88
+ Description: >-
89
+ A calculated magnitude based on number of assignments,
90
+ branches, and conditions.
91
+ Enabled: false
92
+
93
+ Metrics/CyclomaticComplexity:
94
+ Description: >-
95
+ A complexity metric that is strongly correlated to the number
96
+ of test cases needed to validate a method.
97
+ Enabled: false
98
+
99
+ Rails/Delegate:
100
+ Description: 'Prefer delegate method for delegations.'
101
+ Enabled: false
102
+
103
+ Style/DeprecatedHashMethods:
104
+ Description: 'Checks for use of deprecated Hash methods.'
105
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
106
+ Enabled: false
107
+
108
+ Style/Documentation:
109
+ Description: 'Document classes and non-namespace modules.'
110
+ Enabled: false
111
+
112
+ Style/DotPosition:
113
+ Description: 'Checks the position of the dot in multi-line method calls.'
114
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
115
+ EnforcedStyle: trailing
116
+
117
+ Style/DoubleNegation:
118
+ Description: 'Checks for uses of double negation (!!).'
119
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
120
+ Enabled: false
121
+
122
+ Style/EachWithObject:
123
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
124
+ Enabled: false
125
+
126
+ Style/EmptyLiteral:
127
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
128
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
129
+ Enabled: false
130
+
131
+ # Checks whether the source file has a utf-8 encoding comment or not
132
+ # AutoCorrectEncodingComment must match the regex
133
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
134
+ Style/Encoding:
135
+ Enabled: false
136
+
137
+ Style/EvenOdd:
138
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
139
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
140
+ Enabled: false
141
+
142
+ Style/ExtraSpacing:
143
+ Description: 'Do not use unnecessary spacing.'
144
+ Enabled: true
145
+
146
+ Style/EmptyLinesAroundClassBody:
147
+ Description: 'Do not allow extra lines around class body.'
148
+ Enabled: false
149
+
150
+ Style/EmptyLinesAroundModuleBody:
151
+ Description: 'Do not allow extra lines around module body.'
152
+ Enabled: false
153
+
154
+ Style/BracesAroundHashParameters:
155
+ Enabled: false
156
+
157
+ Style/FileName:
158
+ Description: 'Use snake_case for source file names.'
159
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
160
+ Enabled: false
161
+
162
+ Style/FrozenStringLiteralComment:
163
+ Description: >-
164
+ Add the frozen_string_literal comment to the top of files
165
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
166
+ Enabled: false
167
+
168
+ Style/FlipFlop:
169
+ Description: 'Checks for flip flops'
170
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
171
+ Enabled: false
172
+
173
+ Style/FormatString:
174
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
175
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
176
+ Enabled: false
177
+
178
+ Style/GlobalVars:
179
+ Description: 'Do not introduce global variables.'
180
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
181
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
182
+ Enabled: false
183
+
184
+ Style/GuardClause:
185
+ Description: 'Check for conditionals that can be replaced with guard clauses'
186
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
187
+ Enabled: false
188
+
189
+ Style/IfUnlessModifier:
190
+ Description: >-
191
+ Favor modifier if/unless usage when you have a
192
+ single-line body.
193
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
194
+ Enabled: false
195
+
196
+ Style/IfWithSemicolon:
197
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
198
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
199
+ Enabled: false
200
+
201
+ Style/InlineComment:
202
+ Description: 'Avoid inline comments.'
203
+ Enabled: false
204
+
205
+ Style/Lambda:
206
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
207
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
208
+ Enabled: false
209
+
210
+ Style/LambdaCall:
211
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
212
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
213
+ Enabled: false
214
+
215
+ Style/LineEndConcatenation:
216
+ Description: >-
217
+ Use \ instead of + or << to concatenate two string literals at
218
+ line end.
219
+ Enabled: false
220
+
221
+ Metrics/LineLength:
222
+ Description: 'Limit lines to 100 characters.'
223
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
224
+ Max: 100
225
+ Enabled: true
226
+
227
+ Metrics/MethodLength:
228
+ Description: 'Avoid methods longer than 10 lines of code.'
229
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
230
+ Enabled: false
231
+
232
+ Style/ModuleFunction:
233
+ Description: 'Checks for usage of `extend self` in modules.'
234
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
235
+ Enabled: false
236
+
237
+ Style/MultilineOperationIndentation:
238
+ Description: >-
239
+ Checks indentation of binary operations that span more than
240
+ one line.
241
+ Enabled: true
242
+ EnforcedStyle: indented
243
+
244
+ Style/MultilineBlockChain:
245
+ Description: 'Avoid multi-line chains of blocks.'
246
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
247
+ Enabled: false
248
+
249
+ Style/MultilineMethodCallIndentation:
250
+ Description: >-
251
+ Checks indentation of method calls with the dot operator
252
+ that span more than one line.
253
+ Enabled: true
254
+ EnforcedStyle: indented
255
+
256
+ Style/NegatedIf:
257
+ Description: >-
258
+ Favor unless over if for negative conditions
259
+ (or control flow or).
260
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
261
+ Enabled: false
262
+
263
+ Style/NegatedWhile:
264
+ Description: 'Favor until over while for negative conditions.'
265
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
266
+ Enabled: false
267
+
268
+ Style/Next:
269
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
270
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
271
+ Enabled: false
272
+
273
+ Style/NilComparison:
274
+ Description: 'Prefer x.nil? to x == nil.'
275
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
276
+ Enabled: false
277
+
278
+ Style/Not:
279
+ Description: 'Use ! instead of not.'
280
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
281
+ Enabled: false
282
+
283
+ Style/NumericLiterals:
284
+ Description: >-
285
+ Add underscores to large numeric literals to improve their
286
+ readability.
287
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
288
+ Enabled: false
289
+
290
+ Style/OneLineConditional:
291
+ Description: >-
292
+ Favor the ternary operator(?:) over
293
+ if/then/else/end constructs.
294
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
295
+ Enabled: false
296
+
297
+ Style/OpMethod:
298
+ Description: 'When defining binary operators, name the argument other.'
299
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
300
+ Enabled: false
301
+
302
+ Metrics/ParameterLists:
303
+ Description: 'Avoid parameter lists longer than three or four parameters.'
304
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
305
+ Enabled: false
306
+
307
+ Style/PercentLiteralDelimiters:
308
+ Description: 'Use `%`-literal delimiters consistently'
309
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
310
+ Enabled: false
311
+
312
+ Style/PerlBackrefs:
313
+ Description: 'Avoid Perl-style regex back references.'
314
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
315
+ Enabled: false
316
+
317
+ Style/PredicateName:
318
+ Description: 'Check the names of predicate methods.'
319
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
320
+ NamePrefixBlacklist:
321
+ - is_
322
+ Exclude:
323
+ - spec/**/*
324
+
325
+ Style/Proc:
326
+ Description: 'Use proc instead of Proc.new.'
327
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
328
+ Enabled: false
329
+
330
+ Style/RaiseArgs:
331
+ Description: 'Checks the arguments passed to raise/fail.'
332
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
333
+ Enabled: false
334
+
335
+ Style/RegexpLiteral:
336
+ Description: 'Use / or %r around regular expressions.'
337
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
338
+ Enabled: false
339
+
340
+ Style/SelfAssignment:
341
+ Description: >-
342
+ Checks for places where self-assignment shorthand should have
343
+ been used.
344
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
345
+ Enabled: false
346
+
347
+ Style/SingleLineBlockParams:
348
+ Description: 'Enforces the names of some block params.'
349
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
350
+ Enabled: false
351
+
352
+ Style/SingleLineMethods:
353
+ Description: 'Avoid single-line methods.'
354
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
355
+ Enabled: false
356
+
357
+ Style/SignalException:
358
+ Description: 'Checks for proper usage of fail and raise.'
359
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
360
+ Enabled: false
361
+
362
+ Style/SpecialGlobalVars:
363
+ Description: 'Avoid Perl-style global variables.'
364
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
365
+ Enabled: false
366
+
367
+ Style/StringLiterals:
368
+ Description: 'Checks if uses of quotes match the configured preference.'
369
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
370
+ EnforcedStyle: double_quotes
371
+ Enabled: true
372
+
373
+ Style/TrailingCommaInArguments:
374
+ Description: 'Checks for trailing comma in argument lists.'
375
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
376
+ EnforcedStyleForMultiline:
377
+ - consistent_comma
378
+ - no_comma
379
+ SupportedStyles:
380
+ - comma
381
+ - consistent_comma
382
+ - no_comma
383
+ Enabled: true
384
+
385
+ Style/TrailingCommaInLiteral:
386
+ Description: 'Checks for trailing comma in array and hash literals.'
387
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
388
+ EnforcedStyleForMultiline:
389
+ - consistent_comma
390
+ - no_comma
391
+ SupportedStyles:
392
+ - comma
393
+ - consistent_comma
394
+ - no_comma
395
+ Enabled: true
396
+
397
+ Style/TrivialAccessors:
398
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
399
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
400
+ Enabled: false
401
+
402
+ Style/VariableInterpolation:
403
+ Description: >-
404
+ Don't interpolate global, instance and class variables
405
+ directly in strings.
406
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
407
+ Enabled: false
408
+
409
+ Style/WhenThen:
410
+ Description: 'Use when x then ... for one-line cases.'
411
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
412
+ Enabled: false
413
+
414
+ Style/WhileUntilModifier:
415
+ Description: >-
416
+ Favor modifier while/until usage when you have a
417
+ single-line body.
418
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
419
+ Enabled: false
420
+
421
+ Style/WordArray:
422
+ Description: 'Use %w or %W for arrays of words.'
423
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
424
+ Enabled: false
425
+
426
+ # Lint
427
+
428
+ Lint/AmbiguousOperator:
429
+ Description: >-
430
+ Checks for ambiguous operators in the first argument of a
431
+ method invocation without parentheses.
432
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
433
+ Enabled: false
434
+
435
+ Lint/AmbiguousRegexpLiteral:
436
+ Description: >-
437
+ Checks for ambiguous regexp literals in the first argument of
438
+ a method invocation without parenthesis.
439
+ Enabled: false
440
+
441
+ Lint/AssignmentInCondition:
442
+ Description: "Don't use assignment in conditions."
443
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
444
+ Enabled: false
445
+
446
+ Lint/CircularArgumentReference:
447
+ Description: "Don't refer to the keyword argument in the default value."
448
+ Enabled: false
449
+
450
+ Lint/ConditionPosition:
451
+ Description: >-
452
+ Checks for condition placed in a confusing position relative to
453
+ the keyword.
454
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
455
+ Enabled: false
456
+
457
+ Lint/DeprecatedClassMethods:
458
+ Description: 'Check for deprecated class method calls.'
459
+ Enabled: false
460
+
461
+ Lint/DuplicatedKey:
462
+ Description: 'Check for duplicate keys in hash literals.'
463
+ Enabled: false
464
+
465
+ Lint/EachWithObjectArgument:
466
+ Description: 'Check for immutable argument given to each_with_object.'
467
+ Enabled: false
468
+
469
+ Lint/ElseLayout:
470
+ Description: 'Check for odd code arrangement in an else block.'
471
+ Enabled: false
472
+
473
+ Lint/FormatParameterMismatch:
474
+ Description: 'The number of parameters to format/sprint must match the fields.'
475
+ Enabled: false
476
+
477
+ Lint/HandleExceptions:
478
+ Description: "Don't suppress exception."
479
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
480
+ Enabled: false
481
+
482
+ Lint/InvalidCharacterLiteral:
483
+ Description: >-
484
+ Checks for invalid character literals with a non-escaped
485
+ whitespace character.
486
+ Enabled: false
487
+
488
+ Style/InitialIndentation:
489
+ Description: >-
490
+ Checks the indentation of the first non-blank non-comment line in a file.
491
+ Enabled: false
492
+
493
+ Lint/LiteralInCondition:
494
+ Description: 'Checks of literals used in conditions.'
495
+ Enabled: false
496
+
497
+ Lint/LiteralInInterpolation:
498
+ Description: 'Checks for literals used in interpolation.'
499
+ Enabled: false
500
+
501
+ Lint/Loop:
502
+ Description: >-
503
+ Use Kernel#loop with break rather than begin/end/until or
504
+ begin/end/while for post-loop tests.
505
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
506
+ Enabled: false
507
+
508
+ Lint/NestedMethodDefinition:
509
+ Description: 'Do not use nested method definitions.'
510
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
511
+ Enabled: false
512
+
513
+ Lint/NonLocalExitFromIterator:
514
+ Description: 'Do not use return in iterator to cause non-local exit.'
515
+ Enabled: false
516
+
517
+ Lint/ParenthesesAsGroupedExpression:
518
+ Description: >-
519
+ Checks for method calls with a space before the opening
520
+ parenthesis.
521
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
522
+ Enabled: false
523
+
524
+ Lint/RequireParentheses:
525
+ Description: >-
526
+ Use parentheses in the method call to avoid confusion
527
+ about precedence.
528
+ Enabled: false
529
+
530
+ Lint/UnderscorePrefixedVariableName:
531
+ Description: 'Do not use prefix `_` for a variable that is used.'
532
+ Enabled: false
533
+
534
+ Lint/UnneededDisable:
535
+ Description: >-
536
+ Checks for rubocop:disable comments that can be removed.
537
+ Note: this cop is not disabled when disabling all cops.
538
+ It must be explicitly disabled.
539
+ Enabled: false
540
+
541
+ Lint/Void:
542
+ Description: 'Possible use of operator/literal/variable in void context.'
543
+ Enabled: false
544
+
545
+ # Performance
546
+
547
+ Performance/CaseWhenSplat:
548
+ Description: >-
549
+ Place `when` conditions that use splat at the end
550
+ of the list of `when` branches.
551
+ Enabled: false
552
+
553
+ Performance/Count:
554
+ Description: >-
555
+ Use `count` instead of `select...size`, `reject...size`,
556
+ `select...count`, `reject...count`, `select...length`,
557
+ and `reject...length`.
558
+ Enabled: false
559
+
560
+ Performance/Detect:
561
+ Description: >-
562
+ Use `detect` instead of `select.first`, `find_all.first`,
563
+ `select.last`, and `find_all.last`.
564
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
565
+ Enabled: false
566
+
567
+ Performance/FlatMap:
568
+ Description: >-
569
+ Use `Enumerable#flat_map`
570
+ instead of `Enumerable#map...Array#flatten(1)`
571
+ or `Enumberable#collect..Array#flatten(1)`
572
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
573
+ Enabled: false
574
+
575
+ Performance/ReverseEach:
576
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
577
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
578
+ Enabled: false
579
+
580
+ Performance/Sample:
581
+ Description: >-
582
+ Use `sample` instead of `shuffle.first`,
583
+ `shuffle.last`, and `shuffle[Fixnum]`.
584
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
585
+ Enabled: false
586
+
587
+ Performance/Size:
588
+ Description: >-
589
+ Use `size` instead of `count` for counting
590
+ the number of elements in `Array` and `Hash`.
591
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
592
+ Enabled: false
593
+
594
+ Performance/StringReplacement:
595
+ Description: >-
596
+ Use `tr` instead of `gsub` when you are replacing the same
597
+ number of characters. Use `delete` instead of `gsub` when
598
+ you are deleting characters.
599
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
600
+ Enabled: false
601
+
602
+ # Rails
603
+
604
+ Rails/ActionFilter:
605
+ Description: 'Enforces consistent use of action filter methods.'
606
+ Enabled: false
607
+
608
+ Rails/Date:
609
+ Description: >-
610
+ Checks the correct usage of date aware methods,
611
+ such as Date.today, Date.current etc.
612
+ Enabled: false
613
+
614
+ Rails/FindBy:
615
+ Description: 'Prefer find_by over where.first.'
616
+ Enabled: false
617
+
618
+ Rails/FindEach:
619
+ Description: 'Prefer all.find_each over all.find.'
620
+ Enabled: false
621
+
622
+ Rails/HasAndBelongsToMany:
623
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
624
+ Enabled: false
625
+
626
+ Rails/Output:
627
+ Description: 'Checks for calls to puts, print, etc.'
628
+ Enabled: false
629
+
630
+ Rails/ReadWriteAttribute:
631
+ Description: >-
632
+ Checks for read_attribute(:attr) and
633
+ write_attribute(:attr, val).
634
+ Enabled: false
635
+
636
+ Rails/ScopeArgs:
637
+ Description: 'Checks the arguments of ActiveRecord scopes.'
638
+ Enabled: false
639
+
640
+ Rails/TimeZone:
641
+ Description: 'Checks the correct usage of time zone aware methods.'
642
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
643
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
644
+ Enabled: false
645
+
646
+ Rails/Validation:
647
+ Description: 'Use validates :attribute, hash of validations.'
648
+ Enabled: false