Skip to content

Commit

Permalink
Merge pull request #1698 from CBATeam/inspector
Browse files Browse the repository at this point in the history
Add some lint annotations
  • Loading branch information
PabstMirror authored Oct 14, 2024
2 parents f0ea595 + 2f91ba9 commit 0f60173
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions addons/common/fnc_directCall.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ private "_CBA_return";

isNil {
// Wrap the _CBA_code in an extra call block to prevent problems with exitWith and apply
//IGNORE_PRIVATE_WARNING ["_x"];
_CBA_return = ([_x] apply {call _CBA_code}) select 0;
};

Expand Down
1 change: 1 addition & 0 deletions addons/common/init_perFrameHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ if (isMultiplayer) then {
[QFUNC(missionTimePFH), {
SCRIPT(missionTimePFH_server);
if (time != GVAR(lastTime)) then {
//IGNORE_PRIVATE_WARNING ["_tickTime"];
CBA_missionTime = CBA_missionTime + (_tickTime - GVAR(lastTickTime));
GVAR(lastTime) = time; // used to detect paused game
};
Expand Down
2 changes: 1 addition & 1 deletion addons/common/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define DEBUG_MODE_FULL
#include "script_component.hpp"

#define TESTS ["common", "config", "inventory", "weaponComponents", "position", "ret", "macro_is_x"]
#define TESTS ["common", "config", "inventory", "weaponComponents", "position", "ret.inc", "macro_is_x"]

SCRIPT(test-common);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"
SCRIPT(test_ret);

// execVM "\x\cba\addons\common\test_ret.sqf";
// execVM "\x\cba\addons\common\test_ret.inc.sqf";

private ["_funcName", "_result"];

Expand Down
1 change: 1 addition & 0 deletions addons/hashes/fnc_parseYAML.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ private _parse = {
};

if !(_error) then {
//IGNORE_PRIVATE_WARNING ["_data"];
_data pushBack _value;
_mode = YAML_MODE_STRING;
};
Expand Down
1 change: 1 addition & 0 deletions addons/versioning/fnc_version_check.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "script_component.hpp"

// _key, _value are injected by the CBA_fnc_hashEachPair
//IGNORE_PRIVATE_WARNING ["_key", "_value"];

private _localValue = [GVAR(versions), _key] call CBA_fnc_hashGet;
TRACE_3("Version Check",_key,_value,_localValue);
Expand Down

0 comments on commit 0f60173

Please sign in to comment.