Skip to content

Commit

Permalink
fix config spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Oct 22, 2024
1 parent 2ccfcaf commit 2009006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions libs/sqf/src/analyze/lints/s13_undefined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ impl LintRunner<SqfLintData> for Runner {
let Some(processed) = processed else {
return Vec::new();
};
let check_oprhan_code =
if let Some(toml::Value::Boolean(b)) = config.option("check_oprhan_code") {
let check_orphan_code =
if let Some(toml::Value::Boolean(b)) = config.option("check_orphan_code") {
*b
} else {
false
Expand All @@ -68,7 +68,7 @@ impl LintRunner<SqfLintData> for Runner {
for issue in target.issues() {
if let Issue::Undefined(var, range, is_orphan_scope) = issue {
let error_hint = if *is_orphan_scope {
if !check_oprhan_code {
if !check_orphan_code {
continue;
}
Some("From Orphan Code - may not be a problem".to_owned())
Expand Down
2 changes: 1 addition & 1 deletion libs/sqf/tests/lints/project_tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ options.check_params = false

[lints.sqf.undefined]
enabled = true
options.check_oprhan_code = true
options.check_orphan_code = true

[lints.sqf.var_all_caps]
enabled = true
Expand Down

0 comments on commit 2009006

Please sign in to comment.