Skip to content

Commit

Permalink
Update hemtt lints.toml for stringtables (#10725)
Browse files Browse the repository at this point in the history
* Update hemtt lints.toml for stringtables

* ban debug macros from release
  • Loading branch information
PabstMirror authored Feb 6, 2025
1 parent 755dad8 commit b7d4383
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .hemtt/lints.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[config.file_type]
options.allow_no_extension = true

[stringtables.usage]
options.ignore = [
"str_ace_repair_hit",
]
options.ignore_unused = true

[sqf.banned_commands]
options.ignore = [
"addPublicVariableEventHandler", # Alt syntax is broken, we are using main syntax
Expand All @@ -12,6 +18,11 @@ options.ignore = [
"SLX_*", "ACE_*"
]

[sqf.banned_macros]
options.release = [
"DEBUG_MODE_FULL", "DISABLE_COMPILE_CACHE", "ENABLE_PERFORMANCE_COUNTERS"
]

[sqf.undefined]
enabled = true
options.check_orphan_code = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define DEBUG_MODE_FULL
#include "..\script_component.hpp"
/*
* Author: esteldunedain
Expand Down
1 change: 0 additions & 1 deletion addons/common/functions/fnc_cbaSettings_convertHelper.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define DEBUG_MODE_FULL
#include "..\script_component.hpp"
/*
* Author: PabstMirror
Expand Down
1 change: 0 additions & 1 deletion addons/common/functions/fnc_readSettingFromModule.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define DEBUG_MODE_FULL
#include "..\script_component.hpp"
/*
* Author: esteldunedain
Expand Down
1 change: 0 additions & 1 deletion addons/common/functions/fnc_setSetting.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define DEBUG_MODE_FULL
#include "..\script_component.hpp"
/*
* Author: esteldunedain
Expand Down
1 change: 0 additions & 1 deletion addons/csw/dev/checkStaticWeapons.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define DEBUG_MODE_FULL
#include "..\script_component.hpp"

// Dev only function to search for weapons used by static weapons
Expand Down

0 comments on commit b7d4383

Please sign in to comment.