Unconventional parameter name
Reports parameters with names that are either too short or too long.
Use the Min length and Max length fields to specify the minimum and maximum length of a name correspondingly.
Use checkboxes to configure the inspection to ignore block
, lambda
, or rescue
parameters.
Inspired by 'Ruby Style Guide'
Inspection options
Option | Type | Default |
---|---|---|
Pattern | String | [_a-z][_a-z0-9]* |
Min length | Number | 1 |
Max length | Number | 20 |
Ignore for block parameters | Checkbox | true |
Ignore for lambda parameters | Checkbox | true |
Ignore for rescue parameters | Checkbox | true |
Inspection Details | |
---|---|
Available in: | Qodana for Ruby 2023.3, RubyMine 2023.3 |
Plugin: | Ruby, 233.SNAPSHOT |
Last modified: 13 July 2023