origen 0.60.7 → 0.60.8

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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/config/rubocop/easy.yml +4875 -308
  3. data/config/rubocop/strict.yml +4875 -308
  4. data/config/version.rb +1 -1
  5. data/lib/origen/application/configuration.rb +6 -3
  6. data/lib/origen/application/deployer.rb +4 -4
  7. data/lib/origen/application/environment.rb +4 -2
  8. data/lib/origen/application/lsf.rb +23 -4
  9. data/lib/origen/application/lsf_manager.rb +48 -52
  10. data/lib/origen/application/plugins.rb +7 -7
  11. data/lib/origen/application/release.rb +5 -3
  12. data/lib/origen/application/runner.rb +5 -6
  13. data/lib/origen/application/statistics.rb +1 -0
  14. data/lib/origen/application/target.rb +9 -6
  15. data/lib/origen/application/version_tracker.rb +4 -5
  16. data/lib/origen/application/workspace_manager.rb +5 -2
  17. data/lib/origen/application.rb +9 -9
  18. data/lib/origen/boot/api.rb +3 -0
  19. data/lib/origen/boot/app.rb +28 -30
  20. data/lib/origen/boot.rb +1 -0
  21. data/lib/origen/bugs.rb +2 -2
  22. data/lib/origen/chip_mode.rb +7 -4
  23. data/lib/origen/chip_package.rb +50 -53
  24. data/lib/origen/chips/chip.rb +8 -4
  25. data/lib/origen/chips.rb +16 -12
  26. data/lib/origen/client.rb +1 -0
  27. data/lib/origen/clocks/clock.rb +8 -7
  28. data/lib/origen/clocks/clocks_collection.rb +2 -1
  29. data/lib/origen/code_generators/actions.rb +1 -1
  30. data/lib/origen/code_generators/base.rb +1 -1
  31. data/lib/origen/code_generators.rb +3 -0
  32. data/lib/origen/commands/archive.rb +1 -1
  33. data/lib/origen/commands/compile.rb +2 -2
  34. data/lib/origen/commands/fetch.rb +1 -1
  35. data/lib/origen/commands/generate.rb +3 -3
  36. data/lib/origen/commands/interactive.rb +6 -7
  37. data/lib/origen/commands/lint.rb +1 -1
  38. data/lib/origen/commands/lsf.rb +2 -2
  39. data/lib/origen/commands/new.rb +1 -1
  40. data/lib/origen/commands/plugin.rb +2 -2
  41. data/lib/origen/commands/program.rb +3 -3
  42. data/lib/origen/commands/rc.rb +4 -4
  43. data/lib/origen/commands/save.rb +1 -1
  44. data/lib/origen/commands/time.rb +4 -6
  45. data/lib/origen/commands/web.rb +5 -2
  46. data/lib/origen/commands.rb +1 -1
  47. data/lib/origen/componentable.rb +1 -0
  48. data/lib/origen/controller.rb +11 -13
  49. data/lib/origen/core_ext/array.rb +2 -1
  50. data/lib/origen/core_ext/enumerable.rb +4 -2
  51. data/lib/origen/core_ext/hash.rb +5 -6
  52. data/lib/origen/core_ext/integer.rb +2 -4
  53. data/lib/origen/core_ext/object.rb +2 -2
  54. data/lib/origen/core_ext/option_parser/optparse.rb +1 -1
  55. data/lib/origen/core_ext/string.rb +8 -8
  56. data/lib/origen/database/key_value_store.rb +12 -14
  57. data/lib/origen/database/key_value_stores.rb +1 -0
  58. data/lib/origen/errata/hw_erratum.rb +1 -1
  59. data/lib/origen/errata.rb +7 -8
  60. data/lib/origen/features/feature.rb +1 -0
  61. data/lib/origen/features.rb +4 -6
  62. data/lib/origen/file_handler.rb +8 -7
  63. data/lib/origen/fuses/fuse_field.rb +2 -2
  64. data/lib/origen/generator/compiler.rb +2 -4
  65. data/lib/origen/generator/job.rb +3 -2
  66. data/lib/origen/generator/pattern.rb +3 -3
  67. data/lib/origen/generator/pattern_finder.rb +6 -5
  68. data/lib/origen/generator/pattern_sequence.rb +3 -0
  69. data/lib/origen/generator/renderer.rb +3 -4
  70. data/lib/origen/generator/resources.rb +1 -1
  71. data/lib/origen/generator/stage.rb +3 -0
  72. data/lib/origen/limits/limit.rb +14 -11
  73. data/lib/origen/limits/limit_set.rb +2 -1
  74. data/lib/origen/loader.rb +4 -2
  75. data/lib/origen/log.rb +3 -2
  76. data/lib/origen/memory.rb +1 -0
  77. data/lib/origen/model.rb +10 -4
  78. data/lib/origen/models.rb +2 -2
  79. data/lib/origen/netlist/list.rb +1 -0
  80. data/lib/origen/netlist.rb +5 -7
  81. data/lib/origen/org_file/interceptor.rb +1 -1
  82. data/lib/origen/org_file.rb +4 -1
  83. data/lib/origen/parameters/set.rb +1 -0
  84. data/lib/origen/parameters.rb +3 -1
  85. data/lib/origen/pins/pin.rb +18 -12
  86. data/lib/origen/pins/pin_bank.rb +3 -0
  87. data/lib/origen/pins/pin_clock.rb +3 -2
  88. data/lib/origen/pins/pin_collection.rb +3 -0
  89. data/lib/origen/pins/timing/wave.rb +5 -0
  90. data/lib/origen/pins.rb +7 -1
  91. data/lib/origen/ports.rb +1 -1
  92. data/lib/origen/power_domains/power_domain.rb +5 -2
  93. data/lib/origen/power_domains/power_domains_collection.rb +2 -1
  94. data/lib/origen/registers/bit.rb +21 -17
  95. data/lib/origen/registers/bit_collection.rb +15 -6
  96. data/lib/origen/registers/reg.rb +34 -28
  97. data/lib/origen/registers.rb +25 -24
  98. data/lib/origen/remote_manager.rb +3 -2
  99. data/lib/origen/revision_control/base.rb +1 -4
  100. data/lib/origen/revision_control/design_sync.rb +10 -10
  101. data/lib/origen/revision_control/git.rb +4 -2
  102. data/lib/origen/site_config/config.rb +3 -1
  103. data/lib/origen/site_config.rb +3 -0
  104. data/lib/origen/specs/checkers.rb +12 -8
  105. data/lib/origen/specs/doc_resource.rb +3 -4
  106. data/lib/origen/specs/spec.rb +5 -1
  107. data/lib/origen/specs/version_history.rb +1 -1
  108. data/lib/origen/specs.rb +52 -37
  109. data/lib/origen/sub_blocks.rb +20 -14
  110. data/lib/origen/top_level.rb +2 -1
  111. data/lib/origen/users/user.rb +4 -5
  112. data/lib/origen/utility/csv_data.rb +6 -4
  113. data/lib/origen/utility/diff.rb +9 -9
  114. data/lib/origen/utility/file_diff.rb +4 -0
  115. data/lib/origen/utility/input_capture.rb +6 -6
  116. data/lib/origen/utility/mailer.rb +8 -11
  117. data/lib/origen/utility/time_and_date.rb +1 -2
  118. data/lib/origen/utility.rb +2 -2
  119. data/lib/origen/value.rb +2 -1
  120. data/lib/origen/version_string.rb +33 -41
  121. data/lib/origen.rb +62 -64
  122. data/origen_app_generators/origen_app_generators.gemspec +1 -1
  123. metadata +9 -27
  124. data/config/rubocop/easy_disabled.yml +0 -275
  125. data/config/rubocop/easy_enabled.yml +0 -727
  126. data/config/rubocop/strict_disabled.yml +0 -251
  127. data/config/rubocop/strict_enabled.yml +0 -751
@@ -1,727 +0,0 @@
1
- # These are all the cops that are enabled in the strict configuration.
2
-
3
- Style/AccessModifierIndentation:
4
- Description: Check indentation of private/protected visibility modifiers.
5
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
6
- Enabled: true
7
-
8
- Style/Alias:
9
- Description: 'Use alias_method instead of alias.'
10
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
11
- Enabled: true
12
-
13
- Style/AlignArray:
14
- Description: >-
15
- Align the elements of an array literal if they span more than
16
- one line.
17
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
18
- Enabled: true
19
-
20
- Style/AlignHash:
21
- Description: >-
22
- Align the elements of a hash literal if they span more than
23
- one line.
24
- Enabled: true
25
-
26
- Style/AlignParameters:
27
- Description: >-
28
- Align the parameters of a method call if they span more
29
- than one line.
30
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
31
- Enabled: true
32
-
33
- Style/ArrayJoin:
34
- Description: 'Use Array#join instead of Array#*.'
35
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
36
- Enabled: true
37
-
38
- Style/AsciiComments:
39
- Description: 'Use only ascii symbols in comments.'
40
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
41
- Enabled: true
42
-
43
- Style/AsciiIdentifiers:
44
- Description: 'Use only ascii symbols in identifiers.'
45
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
46
- Enabled: true
47
-
48
- Style/Attr:
49
- Description: 'Checks for uses of Module#attr.'
50
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
51
- Enabled: true
52
-
53
- Style/BeginBlock:
54
- Description: 'Avoid the use of BEGIN blocks.'
55
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
56
- Enabled: true
57
-
58
- Style/BarePercentLiterals:
59
- Description: 'Checks if usage of %() or %Q() matches configuration.'
60
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
61
- Enabled: true
62
-
63
- Style/BlockComments:
64
- Description: 'Do not use block comments.'
65
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
66
- Enabled: true
67
-
68
- Style/BlockEndNewline:
69
- Description: 'Put end statement of multiline block on its own line.'
70
- Enabled: true
71
-
72
- Style/BracesAroundHashParameters:
73
- Description: 'Enforce braces style around hash parameters.'
74
- Enabled: true
75
-
76
- Style/CharacterLiteral:
77
- Description: 'Checks for uses of character literals.'
78
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
79
- Enabled: true
80
-
81
- Style/ClassCheck:
82
- Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
83
- Enabled: true
84
-
85
- Style/ClassMethods:
86
- Description: 'Use self when defining module/class methods.'
87
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-singletons'
88
- Enabled: true
89
-
90
- Style/ColonMethodCall:
91
- Description: 'Do not use :: for method call.'
92
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
93
- Enabled: true
94
-
95
- Style/CommentAnnotation:
96
- Description: >-
97
- Checks formatting of special comments
98
- (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
99
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
100
- Enabled: true
101
-
102
- Style/CommentIndentation:
103
- Description: 'Indentation of comments.'
104
- Enabled: true
105
-
106
- Style/ConstantName:
107
- Description: 'Constants should use SCREAMING_SNAKE_CASE.'
108
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
109
- Enabled: true
110
-
111
- Style/DefWithParentheses:
112
- Description: 'Use def with parentheses when there are arguments.'
113
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
114
- Enabled: true
115
-
116
- Style/DeprecatedHashMethods:
117
- Description: 'Checks for use of deprecated Hash methods.'
118
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
119
- Enabled: true
120
-
121
- Style/DotPosition:
122
- Description: 'Checks the position of the dot in multi-line method calls.'
123
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
124
- Enabled: true
125
-
126
- Style/ElseAlignment:
127
- Description: 'Align elses and elsifs correctly.'
128
- Enabled: true
129
-
130
- Style/EmptyLineBetweenDefs:
131
- Description: 'Use empty lines between defs.'
132
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
133
- Enabled: true
134
-
135
- Style/EmptyLines:
136
- Description: "Don't use several empty lines in a row."
137
- Enabled: true
138
-
139
- Style/EmptyLinesAroundAccessModifier:
140
- Description: "Keep blank lines around access modifiers."
141
- Enabled: true
142
-
143
- #Style/EmptyLinesAroundBlockBody:
144
- # Description: "Keeps track of empty lines around block bodies."
145
- # Enabled: true
146
-
147
- Style/EmptyLinesAroundClassBody:
148
- Description: "Keeps track of empty lines around class bodies."
149
- Enabled: true
150
-
151
- Style/EmptyLinesAroundModuleBody:
152
- Description: "Keeps track of empty lines around module bodies."
153
- Enabled: true
154
-
155
- Style/EmptyLinesAroundMethodBody:
156
- Description: "Keeps track of empty lines around method bodies."
157
- Enabled: true
158
-
159
- Style/EmptyLiteral:
160
- Description: 'Prefer literals to Array.new/Hash.new/String.new.'
161
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
162
- Enabled: true
163
-
164
- Style/EndBlock:
165
- Description: 'Avoid the use of END blocks.'
166
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
167
- Enabled: true
168
-
169
- Style/EvenOdd:
170
- Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
171
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
172
- Enabled: true
173
-
174
- Style/FileName:
175
- Description: 'Use snake_case for source file names.'
176
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
177
- Enabled: true
178
-
179
- Style/FlipFlop:
180
- Description: 'Checks for flip flops'
181
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
182
- Enabled: true
183
-
184
- Style/For:
185
- Description: 'Checks use of for or each in multiline loops.'
186
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
187
- Enabled: true
188
-
189
- Style/HashSyntax:
190
- Description: >-
191
- Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
192
- { :a => 1, :b => 2 }.
193
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
194
- Enabled: true
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: true
200
-
201
- Style/IndentationConsistency:
202
- Description: 'Keep indentation straight.'
203
- Enabled: true
204
-
205
- Style/IndentationWidth:
206
- Description: 'Use 2 spaces for indentation.'
207
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
208
- Enabled: true
209
-
210
- Style/IndentArray:
211
- Description: >-
212
- Checks the indentation of the first element in an array
213
- literal.
214
- Enabled: true
215
-
216
- Style/IndentHash:
217
- Description: 'Checks the indentation of the first key in a hash literal.'
218
- Enabled: true
219
-
220
- Style/InfiniteLoop:
221
- Description: 'Use Kernel#loop for infinite loops.'
222
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
223
- Enabled: true
224
-
225
- Style/LambdaCall:
226
- Description: 'Use lambda.call(...) instead of lambda.(...).'
227
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
228
- Enabled: true
229
-
230
- Style/LeadingCommentSpace:
231
- Description: 'Comments should start with a space.'
232
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
233
- Enabled: true
234
-
235
- Style/LineEndConcatenation:
236
- Description: >-
237
- Use \ instead of + or << to concatenate two string literals at
238
- line end.
239
- Enabled: true
240
-
241
- Style/MethodCallParentheses:
242
- Description: 'Do not use parentheses for method calls with no arguments.'
243
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
244
- Enabled: true
245
-
246
- Style/MethodDefParentheses:
247
- Description: >-
248
- Checks if the method definitions have or don't have
249
- parentheses.
250
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
251
- Enabled: true
252
-
253
- Style/MethodName:
254
- Description: 'Use the configured style when naming methods.'
255
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
256
- Enabled: true
257
-
258
- Style/ModuleFunction:
259
- Description: 'Checks for usage of `extend self` in modules.'
260
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
261
- Enabled: true
262
-
263
- Style/MultilineBlockLayout:
264
- Description: 'Ensures newlines after multiline block do statements.'
265
- Enabled: true
266
-
267
- Style/MultilineIfThen:
268
- Description: 'Do not use then for multi-line if/unless.'
269
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
270
- Enabled: true
271
-
272
- Style/MultilineOperationIndentation:
273
- Description: >-
274
- Checks indentation of binary operations that span more than
275
- one line.
276
- Enabled: true
277
-
278
- Style/MultilineTernaryOperator:
279
- Description: >-
280
- Avoid multi-line ?: (the ternary operator);
281
- use if/unless instead.
282
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary'
283
- Enabled: true
284
-
285
- Style/NegatedIf:
286
- Description: >-
287
- Favor unless over if for negative conditions
288
- (or control flow or).
289
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
290
- Enabled: true
291
-
292
- Style/NegatedWhile:
293
- Description: 'Favor until over while for negative conditions.'
294
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
295
- Enabled: true
296
-
297
- Style/NestedTernaryOperator:
298
- Description: 'Use one expression per branch in a ternary operator.'
299
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
300
- Enabled: true
301
-
302
- Style/NilComparison:
303
- Description: 'Prefer x.nil? to x == nil.'
304
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
305
- Enabled: true
306
-
307
- Style/NonNilCheck:
308
- Description: 'Checks for redundant nil checks.'
309
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
310
- Enabled: true
311
-
312
- Style/Not:
313
- Description: 'Use ! instead of not.'
314
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
315
- Enabled: true
316
-
317
- Style/NumericLiterals:
318
- Description: >-
319
- Add underscores to large numeric literals to improve their
320
- readability.
321
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
322
- Enabled: true
323
-
324
- Style/OneLineConditional:
325
- Description: >-
326
- Favor the ternary operator(?:) over
327
- if/then/else/end constructs.
328
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
329
- Enabled: true
330
-
331
- Style/ParenthesesAroundCondition:
332
- Description: >-
333
- Don't use parentheses around the condition of an
334
- if/unless/while.
335
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
336
- Enabled: true
337
-
338
- Style/PercentLiteralDelimiters:
339
- Description: 'Use `%`-literal delimiters consistently'
340
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
341
- Enabled: true
342
-
343
- Style/PercentQLiterals:
344
- Description: 'Checks if uses of %Q/%q match the configured preference.'
345
- Enabled: true
346
-
347
- Style/PerlBackrefs:
348
- Description: 'Avoid Perl-style regex back references.'
349
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
350
- Enabled: true
351
-
352
- Style/Proc:
353
- Description: 'Use proc instead of Proc.new.'
354
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
355
- Enabled: true
356
-
357
- Style/RaiseArgs:
358
- Description: 'Checks the arguments passed to raise/fail.'
359
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
360
- Enabled: true
361
-
362
- Style/RedundantBegin:
363
- Description: "Don't use begin blocks when they are not needed."
364
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
365
- Enabled: true
366
-
367
- Style/RedundantException:
368
- Description: "Checks for an obsolete RuntimeException argument in raise/fail."
369
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
370
- Enabled: true
371
-
372
- Style/RedundantReturn:
373
- Description: "Don't use return where it's not required."
374
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
375
- Enabled: true
376
-
377
- Style/RedundantSelf:
378
- Description: "Don't use self where it's not needed."
379
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
380
- Enabled: true
381
-
382
- Style/RescueModifier:
383
- Description: 'Avoid using rescue in its modifier form.'
384
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
385
- Enabled: true
386
-
387
- Style/SignalException:
388
- Description: 'Checks for proper usage of fail and raise.'
389
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
390
- Enabled: true
391
-
392
- Style/SingleLineMethods:
393
- Description: 'Avoid single-line methods.'
394
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
395
- Enabled: true
396
-
397
- Style/SingleSpaceBeforeFirstArg:
398
- Description: >-
399
- Checks that exactly one space is used between a method name
400
- and the first argument for method calls without parentheses.
401
- Enabled: true
402
-
403
- Style/SpaceAfterColon:
404
- Description: 'Use spaces after colons.'
405
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
406
- Enabled: true
407
-
408
- Style/SpaceAfterComma:
409
- Description: 'Use spaces after commas.'
410
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
411
- Enabled: true
412
-
413
- Style/SpaceAfterControlKeyword:
414
- Description: 'Use spaces after if/elsif/unless/while/until/case/when.'
415
- Enabled: true
416
-
417
- Style/SpaceAfterMethodName:
418
- Description: >-
419
- Do not put a space between a method name and the opening
420
- parenthesis in a method definition.
421
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
422
- Enabled: true
423
-
424
- Style/SpaceAfterNot:
425
- Description: Tracks redundant space after the ! operator.
426
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
427
- Enabled: true
428
-
429
- Style/SpaceAfterSemicolon:
430
- Description: 'Use spaces after semicolons.'
431
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
432
- Enabled: true
433
-
434
- Style/SpaceBeforeBlockBraces:
435
- Description: >-
436
- Checks that the left block brace has or doesn't have space
437
- before it.
438
- Enabled: true
439
-
440
- Style/SpaceBeforeComma:
441
- Description: 'No spaces before commas.'
442
- Enabled: true
443
-
444
- Style/SpaceBeforeComment:
445
- Description: >-
446
- Checks for missing space between code and a comment on the
447
- same line.
448
- Enabled: true
449
-
450
- Style/SpaceBeforeSemicolon:
451
- Description: 'No spaces before semicolons.'
452
- Enabled: true
453
-
454
- Style/SpaceInsideBlockBraces:
455
- Description: >-
456
- Checks that block braces have or don't have surrounding space.
457
- For blocks taking parameters, checks that the left brace has
458
- or doesn't have trailing space.
459
- Enabled: true
460
-
461
- Style/SpaceAroundEqualsInParameterDefault:
462
- Description: >-
463
- Checks that the equals signs in parameter default assignments
464
- have or don't have surrounding space depending on
465
- configuration.
466
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
467
- Enabled: true
468
-
469
- Style/SpaceAroundOperators:
470
- Description: 'Use spaces around operators.'
471
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
472
- Enabled: true
473
-
474
- Style/SpaceBeforeModifierKeyword:
475
- Description: 'Put a space before the modifier keyword.'
476
- Enabled: true
477
-
478
- Style/SpaceInsideBrackets:
479
- Description: 'No spaces after [ or before ].'
480
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
481
- Enabled: true
482
-
483
- Style/SpaceInsideHashLiteralBraces:
484
- Description: "Use spaces inside hash literal braces - or don't."
485
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
486
- Enabled: true
487
-
488
- Style/SpaceInsideParens:
489
- Description: 'No spaces after ( or before ).'
490
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
491
- Enabled: true
492
-
493
- Style/SpaceInsideRangeLiteral:
494
- Description: 'No spaces inside range literals.'
495
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
496
- Enabled: true
497
-
498
- Style/SpecialGlobalVars:
499
- Description: 'Avoid Perl-style global variables.'
500
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
501
- Enabled: true
502
-
503
- Style/StringLiterals:
504
- Description: 'Checks if uses of quotes match the configured preference.'
505
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
506
- Enabled: true
507
-
508
- Style/StringLiteralsInInterpolation:
509
- Description: >-
510
- Checks if uses of quotes inside expressions in interpolated
511
- strings match the configured preference.
512
- Enabled: true
513
-
514
- Style/SymbolProc:
515
- Description: 'Use symbols as procs instead of blocks when possible.'
516
- Enabled: true
517
-
518
- Style/Tab:
519
- Description: 'No hard tabs.'
520
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
521
- Enabled: true
522
-
523
- Style/TrailingBlankLines:
524
- Description: 'Checks trailing blank lines and final newline.'
525
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
526
- Enabled: true
527
-
528
- Style/TrailingComma:
529
- Description: 'Checks for trailing comma in parameter lists and literals.'
530
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
531
- Enabled: true
532
-
533
- Style/TrailingWhitespace:
534
- Description: 'Avoid trailing whitespace.'
535
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
536
- Enabled: true
537
-
538
- Style/UnlessElse:
539
- Description: >-
540
- Do not use unless with else. Rewrite these with the positive
541
- case first.
542
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
543
- Enabled: true
544
-
545
- Style/UnneededCapitalW:
546
- Description: 'Checks for %W when interpolation is not needed.'
547
- Enabled: true
548
-
549
- Style/UnneededPercentQ:
550
- Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
551
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
552
- Enabled: true
553
-
554
- Style/VariableInterpolation:
555
- Description: >-
556
- Don't interpolate global, instance and class variables
557
- directly in strings.
558
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
559
- Enabled: true
560
-
561
- Style/VariableName:
562
- Description: 'Use the configured style when naming variables.'
563
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
564
- Enabled: true
565
-
566
- Style/WhenThen:
567
- Description: 'Use when x then ... for one-line cases.'
568
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
569
- Enabled: true
570
-
571
- Style/WhileUntilDo:
572
- Description: 'Checks for redundant do after while or until.'
573
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
574
- Enabled: true
575
-
576
- Style/WhileUntilModifier:
577
- Description: >-
578
- Favor modifier while/until usage when you have a
579
- single-line body.
580
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
581
- Enabled: true
582
-
583
- Style/WordArray:
584
- Description: 'Use %w or %W for arrays of words.'
585
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
586
- Enabled: true
587
-
588
- #################### Metrics ################################
589
-
590
- Metrics/ParameterLists:
591
- Description: 'Avoid parameter lists longer than three or four parameters.'
592
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
593
- Enabled: true
594
-
595
- #################### Lint ################################
596
- ### Warnings
597
-
598
- Lint/AmbiguousOperator:
599
- Description: >-
600
- Checks for ambiguous operators in the first argument of a
601
- method invocation without parentheses.
602
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
603
- Enabled: true
604
-
605
- Lint/AmbiguousRegexpLiteral:
606
- Description: >-
607
- Checks for ambiguous regexp literals in the first argument of
608
- a method invocation without parenthesis.
609
- Enabled: true
610
-
611
- Lint/BlockAlignment:
612
- Description: 'Align block ends correctly.'
613
- Enabled: true
614
-
615
- Lint/ConditionPosition:
616
- Description: >-
617
- Checks for condition placed in a confusing position relative to
618
- the keyword.
619
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
620
- Enabled: true
621
-
622
- Lint/Debugger:
623
- Description: 'Check for debugger calls.'
624
- Enabled: true
625
-
626
- Lint/DefEndAlignment:
627
- Description: 'Align ends corresponding to defs correctly.'
628
- Enabled: true
629
-
630
- Lint/DeprecatedClassMethods:
631
- Description: 'Check for deprecated class method calls.'
632
- Enabled: true
633
-
634
- Lint/ElseLayout:
635
- Description: 'Check for odd code arrangement in an else block.'
636
- Enabled: true
637
-
638
- Lint/EmptyEnsure:
639
- Description: 'Checks for empty ensure block.'
640
- Enabled: true
641
-
642
- Lint/EmptyInterpolation:
643
- Description: 'Checks for empty string interpolation.'
644
- Enabled: true
645
-
646
- Lint/EndInMethod:
647
- Description: 'END blocks should not be placed inside method definitions.'
648
- Enabled: true
649
-
650
- Lint/EnsureReturn:
651
- Description: 'Do not use return in an ensure block.'
652
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
653
- Enabled: true
654
-
655
- Lint/InvalidCharacterLiteral:
656
- Description: >-
657
- Checks for invalid character literals with a non-escaped
658
- whitespace character.
659
- Enabled: true
660
-
661
- Lint/LiteralInCondition:
662
- Description: 'Checks of literals used in conditions.'
663
- Enabled: true
664
-
665
- Lint/LiteralInInterpolation:
666
- Description: 'Checks for literals used in interpolation.'
667
- Enabled: true
668
-
669
- Lint/Loop:
670
- Description: >-
671
- Use Kernel#loop with break rather than begin/end/until or
672
- begin/end/while for post-loop tests.
673
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
674
- Enabled: true
675
-
676
- Lint/ParenthesesAsGroupedExpression:
677
- Description: >-
678
- Checks for method calls with a space before the opening
679
- parenthesis.
680
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
681
- Enabled: true
682
-
683
- Lint/RequireParentheses:
684
- Description: >-
685
- Use parentheses in the method call to avoid confusion
686
- about precedence.
687
- Enabled: true
688
-
689
- Lint/SpaceBeforeFirstArg:
690
- Description: >-
691
- Put a space between a method name and the first argument
692
- in a method call without parentheses.
693
- Enabled: true
694
-
695
- Lint/StringConversionInInterpolation:
696
- Description: 'Checks for Object#to_s usage in string interpolation.'
697
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
698
- Enabled: true
699
-
700
- Lint/UnreachableCode:
701
- Description: 'Unreachable code.'
702
- Enabled: true
703
-
704
- Lint/UselessAccessModifier:
705
- Description: 'Checks for useless access modifiers.'
706
- Enabled: true
707
-
708
- Lint/UselessAssignment:
709
- Description: 'Checks for useless assignment to a local variable.'
710
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
711
- Enabled: true
712
-
713
- Lint/UselessComparison:
714
- Description: 'Checks for comparison of something with itself.'
715
- Enabled: true
716
-
717
- Lint/UselessElseWithoutRescue:
718
- Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
719
- Enabled: true
720
-
721
- Lint/UselessSetterCall:
722
- Description: 'Checks for useless setter call to a local variable.'
723
- Enabled: true
724
-
725
- Lint/Void:
726
- Description: 'Possible use of operator/literal/variable in void context.'
727
- Enabled: true