Fix static analysis errors in Gitlab CI

Closes #3439610

Merge request reports

Loading