This is a small Java app to demonstrate how to use CodeQL to find program patterns in code.
It prints "Hello, World!" to the console, and "Hello, foo!" if the first command-line argument is "foo".
It has no error handling, so will throw an exception if no command-line arguments are provided.
Fork the repository to a public repository, allow running the CodeQL workflow, and see the CodeQL results.
- Java 8 or later
- CodeQL CLI
- VSCode
- GitHub CLI
- GNU Make (though you can just use the commands in the
Makefile, they are not complicated)
You can follow these instructions on how to get set up with CodeQL.
It relies on the GitHub CLI, and VSCode so grab them first if you haven't already.
make Mainmake runmake clean && makeUse the VSCode Starter workspace to load the CodeQL database and run the queries.
This is a copyrighted work, and is not released under an open source license.
© Copyright 2024 GitHub, Inc.