Checks that method names conform to a format specified by the format
property.
Configuration
{
"type": "MethodName",
"props": {
"severity": "ERROR",
"format": "^[a-z][a-zA-Z0-9]*$",
"tokens": [
"PUBLIC",
"PRIVATE"
]
}
}
You can define different rules for different type of methods using the tokens
property.
The above regex allows camelCase
names.
Available Tokens
PUBLIC
PRIVATE
STATIC
NOTSTATIC
INLINE
NOTINLINE