mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2024-12-12 21:29:46 +02:00
586 B
586 B
Self reference is excessive
Excessive usage of self reference with use of ThisObject
(when referencing method, property or attribute)
For form modules only check self reference for methods and existing properties
(if Check only existing form properties
parameter is set, otherwise, check for all cases)
Noncompliant Code Example
Var myParam;
Function test() Export
// code here
EndFunction
ThisObject.myParam = ThisObject.test();
Compliant Solution
Var myParam;
Function test() Export
// code here
EndFunction
myParam = test();