Skip to content

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

Snippets

Diagnostic ignorance in code

// BSLLS:CompilationDirectiveLost-off
// BSLLS:CompilationDirectiveLost-on

Parameter for config

"CompilationDirectiveLost": false