Welcome to Code Pathfinder, the open-source alternative to CodeQL. Designed for precise flow analysis and advanced structural search, Code Pathfinder identifies vulnerabilities in your code. Currently optimized for Java, Code Pathfinder offers robust query support to enhance your code’s security and integrity.
We recommend using the following IDEs for developing with Code Pathfinder:
- GoLand
- VS Code
The core of Code Pathfinder is the sourcecode-parser
project, written in Go.
We use the Gradle build system to ensure seamless development across Linux, Windows, and macOS.
Here are the key Gradle commands to work with Code Pathfinder:
-
Build the Binary
gradle buildGo
-
Run the Application
gradle runGo
This will run the application with an example test directory source code.
-
Clean the Build Directory
gradle clean
This command clears the build directory and binary.
-
Run Tests
gradle testGo
This command runs tests on the source code.
-
Lint the Source Code
gradle lintGo
This command is useful for linting the source code.
-
Prepare for Release
gradle prepareRelease
This command helps in bumping the version and publishing the branch.
We appreciate your contributions to Code Pathfinder! Here are some guidelines to help you get started:
-
Fork the Repository
- Create a fork of the Code Pathfinder repository to your GitHub account.
-
Clone the Repository
- Clone your fork to your local machine:
git clone https://github.com/your-username/code-pathfinder.git
- Clone your fork to your local machine:
-
Create a Branch
- Create a new branch for your feature or bug fix:
git checkout -b feature-or-bugfix-branch
- Create a new branch for your feature or bug fix:
-
Make Changes
- Implement your changes in the new branch.
-
Run Tests
- Ensure that all tests pass:
gradle testGo
- Ensure that all tests pass:
-
Commit Changes
- Commit your changes with a clear and concise message:
git commit -m "Description of your changes"
- Commit your changes with a clear and concise message:
-
Push to GitHub
- Push your changes to your forked repository:
git push origin feature-or-bugfix-branch
- Push your changes to your forked repository:
-
Submit a Pull Request
- Open a pull request from your forked repository to the main repository.
By participating in this project, you agree to abide by our Code of Conduct.
Thank you for contributing to Code Pathfinder!