Unconventional class/module name
Reports classes and modules with names that are either too short, too long or don't match the specified regular expression pattern.
Use the Pattern field to specify a regular expression for validating class and module names.
Use the Min length and Max length fields to specify the minimum and maximum length of a name correspondingly.
Inspired by 'Ruby Style Guide'
Inspection options
Option | Type | Default |
---|---|---|
Pattern | String | [_A-Za-z\x7f-\xff\x{001C0}-\x{10FFFF}][_A-Za-z0-9\x7f-\xff\x{001C0}-\x{10FFFF}]* |
Min length | Number | 3 |
Max length | Number | 30 |
Inspection Details | |
---|---|
Available in: | Qodana for Ruby 2023.3, RubyMine 2023.3 |
Plugin: | Ruby, 233.SNAPSHOT |
Last modified: 13 July 2023