-
Notifications
You must be signed in to change notification settings - Fork 1.7k
CodeQL CLI prints warning for valid config file #16147
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
Comments
Hi @Kiemes 👋 The documentation you have linked to is for configuration files that are understood by the CodeQL GitHub Action. The |
Thanks for that hint @mbg. 😅 |
You may be able to use the paths-ignore:
- '**/*.Test.java' in that file. You can skip the |
I think I tried that before but it did not work. Retried and I get
The command I am running is Seems not so easy to just ignore some files from the CodeQL check. I would not even know how to verify what files are actually checked and which are not, based on the output of the CLI. I looked into some of the generated files but did not identify clear evidence. For example, I saw the |
Hi @Kiemes, You could try running I also saw your comment in #8689 which I assume is related to this.
The database contains information about all extracted files, which can be queried with something like |
Downloading the latest version (2.17.0) and running just the executable without any arguments, prints warning
/Users/<user>/.config/codeql/config:1: Warning: Ignoring line with no option name."
when this config file is present.There is nothing else in the config file. Still it should be valid according to this documentation. Or does the snippet only show a partial config file? If so, this could be better visualized or mentioned on the documentation. Is there a general syntax description of the config file?
Expectation is that there is no warning for valid config files or that the documentation states how a valid config file should look like.
The text was updated successfully, but these errors were encountered: