LC0092 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki
Names must match the allowed pattern and must not match the disallowed pattern
Improve readability and enforce consistent, project-specific naming conventions.
The setup and configuration for this rule are defined in the LinterCop.json rile.
{
"procedure.name": {
"allow.pattern": "^[A-Z][A-Za-z0-9]*$", // No special characters allowed (exept "_") & must start with upper case letter
"disallow.pattern": "^A42.*", // prodeure names must not start with A42
"local.procedure.allow.pattern": "^.*_loc$", // local procedure names have to end with _loc
"global.procedure.disallow.pattern": "^Global.*" // global procedure names must not start with Global
}
}
{
"procedure.name": {
"allow.pattern": "",
"disallow.pattern": "",
"local.procedure.allow.pattern": "",
"local.procedure.disallow.pattern": "",
"global.procedure.allow.pattern": "",
"global.procedure.disallow.pattern": "",
"event.subscriber.allow.pattern": "",
"event.subscriber.disallow.pattern": "",
"event.declaration.allow.pattern": "",
"event.declaration.disallow.pattern": "",
},
"variable.name": {
"allow.pattern": "",
"disallow.pattern": ""
}