New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C/C++ : Useless test #7787
C/C++ : Useless test #7787
Conversation
|
cc @HauwaOtori : this is a first PR from my students project aka CodeQL versus Suricata PS @Yonah125 do you want to co-author commits with your comrades ? |
Thanks for your contribution @Yonah125,
Here are my initial comments. Note that CI is unhappy because the query isn't hasn't been auto-formatted (see the Formatting section in https://github.com/github/codeql/blob/main/CONTRIBUTING.md#submitting-a-new-experimental-query).
None of my comments are really blocking this PR: It's mostly to help you learn to be efficient writing CodeQL queries :) If you're happy with the results you're finding with the query I'll merge it as soon as the PR is green.
|
Thank you very much for you feedback. I just fixed multiple issues that you mentionned. About the auto-formatting, I used the 'Format Document' command in VSC, is the output bad ? |
Excellent. That should all be fine now, then. Let's see what CI thinks about it now |
|
CI looks green now |
Indeed, it is @catenacyber has this been resolved:
? Because I think we're ready to merge this PR once you're all happy with the commit history. |
|
Commit history is good enough for me :-) |
This query finds any useless test of kind a==8 && a!=7.
This query found an useless test on the Suricata project that can you see in this Pull Request :
OISF/suricata#6897
The text was updated successfully, but these errors were encountered: