Skip to content

Commit

Permalink
The newly added input quantity check in AXIS_PTS must handle NO_INPUT…
Browse files Browse the repository at this point in the history
…_QUANTITY

Not handling this leads to false positives
  • Loading branch information
DanielT committed Oct 3, 2024
1 parent dfaef88 commit 0878e63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion a2lfile/src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ fn check_axis_pts(axis_pts: &AxisPts, name_map: &ModuleNameMap, log_msgs: &mut V
));
}

if !name_map.object.contains_key(&axis_pts.input_quantity) {
if axis_pts.input_quantity != "NO_INPUT_QUANTITY"
&& !name_map.object.contains_key(&axis_pts.input_quantity)
{
log_msgs.push(format!(
"In AXIS_PTS {} on line {}: Referenced input MEASUREMENT {} does not exist.",
name, line, axis_pts.input_quantity
Expand Down

0 comments on commit 0878e63

Please sign in to comment.