Skip to content
Arthur edited this page Nov 29, 2023 · 2 revisions

Empty Captions should be Locked.

This rule exclusively analyzes enum values. If the Caption property is empty, the Caption should be Locked to prevent their addition to the translations file.

enum 50100 MyCustomCodeAnalyzer
{
    value(0; " ")
    {
        Caption = ' ', Locked = true;
    }
    value(1; LinterCop)
    {
        Caption = 'LinterCop';
    }
    value(2; CompanialCop)
    {
        Caption = 'CompanialCop';
    }
}
Clone this wiki locally