Default method name regex?
The default method name regex (failing which, the default method name inspection flags a violation) is: '[_a-z][_a-z0-9]*[!?=]?|\[\]=?' (this is in 3.2.2, #107.446)
Thus, if I tried to write a Value Object by overriding the '==' method, I get: Method name '==' doesn't match regex.
Is this a bug or a feature?
Regards,
Kedar
Please sign in to leave a comment.
Hi Kedar,
Thanks, I filed a bug request: RUBY-9145 "Instance method naming convention" inspection false positives on operator methods names
As a workaround you can open "RubyMine | File | Settings | Inspections | Ruby | Naming Conventions | Instance method naming convention" and correct a regexp
Thanks, Roman!