Inspectopedia Help

Unconventional instance method name

Reports instance methods 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 instance method 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-z][_a-z0-9]*[!?=]?

Min length

Number

2

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