Closed BrettMayson closed 3 weeks ago
Attention: Patch coverage is 80.00000%
with 40 lines
in your changes missing coverage. Please review.
Project coverage is 68.3%. Comparing base (
faaccb2
) to head (cee099c
). Report is 2 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
...rc/analyze/lints/s23_reassign_reserved_variable.rs | 79.7% | 40 Missing :warning: |
~20 hits in CBA (although mostly in test funcs)
macro DEFAULT_PARAM
triggers it
DEFAULT_PARAM(2,_resolution,10);
#define DEFAULT_PARAM(INDEX,NAME,DEF_VALUE) \
private [#NAME,"_this"]; \
ISNILS(_this,[]); \
NAME = _this param [INDEX, DEF_VALUE]; \
TRACE_3("DEFAULT_PARAM",INDEX,NAME,DEF_VALUE)
#define ISNILS(VARIABLE,DEFAULT_VALUE) if (isNil #VARIABLE) then { VARIABLE = DEFAULT_VALUE }
maybe warning instead of error?
tag PR https://github.com/BrettMayson/HEMTT/pull/802
need to protect _this
Should also cover params