Methods compilation directive (CompilationDirectiveLost)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Code smell |
BSL |
Major |
Yes |
1 |
standard unpredictable |
Description¶
All methods of managed forms and commands must have compilation directives.
Examples¶
Incorrect:¶
Procedure OnCreateAtServer()
...
EndProcedure
Correct:¶
&AtServer
Procedure OnCreateAtServer()
...
EndProcedure
Sources¶
- Helpful information: Development of an interface for applied solutions on the 1C: Enterprise 8 platform (RU)
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:CompilationDirectiveLost-off
// BSLLS:CompilationDirectiveLost-on
Parameter for config¶
"CompilationDirectiveLost": false