How to disable naming convention warnings? #98
-
|
The naming convention enforcement does not work for me. For example, when creating a function named
The first part about the pascalcase miiiight be debatable, but the last one about the function not starting with a verb is very hard for me to understand. What is the recommended naming for such a case where we are trying name e.g. a vtable function name or other opaque loosely related prefixed function? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Two things that I think clear this up:
There is currently no off-switch to silence the warnings entirely. If a flag (e.g. |
Beta Was this translation helpful? Give feedback.
Two things that I think clear this up:
The warnings are advisory, not blocking. The function was actually renamed successfully — the response includes
status: "success"alongside thewarningsarray. Anything inwarningsis just a flag for review; it does not roll back the operation. So yourGameApp_InitInstance_candidaterename did go through.For module-prefix style names (vtable methods, opaque containers, etc.), use an
UPPERCASE_prefix followed by_. The validator recognizes this pattern (NamingConventions.MODULE_PREFIX = ^[A-Z]+_[A-Z].*) and strips the prefix before applying the PascalCase / verb-first checks to the remainder. SoGAMEAPP_InitInstanceCandidate(uppercase module pr…