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