Skip to content
This repository was archived by the owner on Aug 6, 2023. It is now read-only.

Missing private variables inside CBA functions are not detected. #63

Open
severgun opened this issue Aug 9, 2020 · 0 comments
Open

Comments

@severgun
Copy link

severgun commented Aug 9, 2020

Some CBA functions pass variables as arguments.
For example:

Wrong:

[{CBA_missionTime > 0}, {
    _obj setPos _pos;
}] call CBA_fnc_waitUntilAndExecute;

Correct:

[{CBA_missionTime > 0}, {
    params ["_obj", "_pos"];
    _obj setPos _pos;
}, [_obj, _pos]] call CBA_fnc_waitUntilAndExecute;

In first example should throw warning/error. VS Code linter can do this.

@severgun severgun changed the title Do not detect missing private variables inside CBA functions. Missing private variables inside CBA functions are not detected. Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant