Skip to content

sqf: Inspector - Check params sub-elements#1104

Merged
BrettMayson merged 1 commit intomainfrom
params
Oct 31, 2025
Merged

sqf: Inspector - Check params sub-elements#1104
BrettMayson merged 1 commit intomainfrom
params

Conversation

@PabstMirror
Copy link
Copy Markdown
Collaborator

Close #1081

help[L-S12]: Invalid arguments to command `[U:params] - 1: Element Type`
  ┌─ addons/main/test.sqf:1:1
  │
1 │ params ["_var1", objNull];
  │ ^^^^^^ invalid arguments


help[L-S12]: Invalid arguments to command `[U:params] - 0: Expected Data Types`
  ┌─ addons/main/test.sqf:2:1
  │
2 │ params [["_var2", "", ""]];
  │ ^^^^^^ invalid arguments


help[L-S12]: Invalid arguments to command `[U:params] - 0: Default Value does not match declared types`
  ┌─ addons/main/test.sqf:3:1
  │
3 │ params [["_var3", objNull, [false]]];
  │ ^^^^^^ invalid arguments

CBA has one example of the last type
https://github.com/CBATeam/CBA_A3/blob/master/addons/common/fnc_registerFeatureCamera.sqf#L28
but I don't see any good reason to write it like that, so I think it's a safe thing to check

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 26, 2025

Codecov Report

❌ Patch coverage is 92.50000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.7%. Comparing base (cbb89fd) to head (37296ce).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
libs/sqf/src/analyze/inspector/commands.rs 92.3% 6 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
libs/sqf/src/analyze/inspector/mod.rs 94.1% <100.0%> (ø)
libs/sqf/src/analyze/inspector/commands.rs 86.0% <92.3%> (+1.1%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BrettMayson BrettMayson merged commit a39b5a9 into main Oct 31, 2025
34 checks passed
@BrettMayson BrettMayson deleted the params branch October 31, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestion - add Check for params

2 participants