1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2024-12-12 21:29:46 +02:00
v8-code-style/bundles/com.e1c.v8codestyle.bsl/markdown/module-self-reference.md

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();

See