miss_hit
miss_hit copied to clipboard
GitHub actions does not work because CLI call always returns 0
...MISS_HIT Component affected Please choose one from:
- Style checker
Your MATLAB/Octave environment
- MATLAB
Your operating system and Python version
- Linux
- Windows
- Python 3.12.5
The github actions script supplied here successfully runs MISS HIT, but it is always successful, regardless of whether something has been found or not
Actual output:
$ mh_lint; echo $?
...
In some_funtion.m, line 2
| function f = other_function()
| ^^^^^^^^^^^^^^ check (low): function name does not match the filename some_function [filename_primary_entity_name]
MISS_HIT Lint Summary: 39 file(s) analysed, 11 check(s)
0
Expected output:
$ mh_lint; echo $?
...
In some_funtion.m, line 2
| function f = other_function()
| ^^^^^^^^^^^^^^ check (low): function name does not match the filename some_function [filename_primary_entity_name]
MISS_HIT Lint Summary: 39 file(s) analysed, 11 check(s)
1
Relevance: Return codes are necessary to use MISS HIT in automated CI such as GitHub actions.