This is failing the test because there's no ruleid raptor-insecure-api-scanf-etc (probably). I did not want to remove the comments in case you wanted to do something else with them.
Found rule id mismatch - file=c/insecure-api-scanf-etc.c 'ruleid' annotation with no
YAML rule={'raptor-insecure-api-scanf-etc (probably)'}
Failing due to rule id mismatch. There is a test denoted with
'ruleid: <rule name>' where the rule name does not exist or is not expected in the test file.
You can run the tests all rules by running semgrep --test in the root of the repository.
Hi Parsia, thank you for your feedback and contribution. I've merged your PR and fixed the remaining issues with semgrep --test. All tests are passing now.
Thanks for the great rules.
One Semgrep test was failing because the ruleid had
.yaml
in the end.There are a bunch of more test failing because the test comments contain
(probably)
.For example, in
c/insecure-api-scanf-etc.c
we seeThis is failing the test because there's no ruleid
raptor-insecure-api-scanf-etc (probably)
. I did not want to remove the comments in case you wanted to do something else with them.You can run the tests all rules by running
semgrep --test
in the root of the repository.