Skip to content

Commit

Permalink
setMarkerDrawPriority (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Jan 19, 2025
1 parent 37c3947 commit 9a6c3de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/sqf/src/analyze/lints/s24_marker_spam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ impl LintRunner<LintData> for Runner {
}

fn is_marker_global(cmd: &str) -> bool {
cmd.starts_with("setMarker") && !cmd.ends_with("Local")
let cmd = cmd.to_lowercase();
if cmd == "setmarkerdrawpriority" {
return false;
}
cmd.starts_with("setmarker") && !cmd.ends_with("local")
}

fn marker_name(var: &Expression) -> Option<String> {
Expand Down

0 comments on commit 9a6c3de

Please sign in to comment.