Skip to content

Commit

Permalink
Add some lint annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Oct 7, 2024
1 parent 9a6b78e commit 1887642
Show file tree
Hide file tree
Showing 7 changed files with 7 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/ui/fnc_openItemContextMenu.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ private _longestName = "";
{
_x params ["_slots", "_displayName", "_tooltip", "_color", "_icon", "_conditionEnable", "_conditionShow", "_statement", "_consume", "_params"];

//IGNORE_PRIVATE_WARNING ["_unit"]; // seems to come from upper scopes
private _args = [_unit, _container, _item, _slot, _params];
if (isLocalized _displayName) then {
_displayName = localize _displayName;
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 1887642

Please sign in to comment.