Add custom path state search queries for languages beyond C++ #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Validate Query Formatting" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| XARGS_MAX_PROCS: 4 | |
| jobs: | |
| validate-query-formatting: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup CodeQL | |
| id: install-codeql | |
| uses: ./.github/actions/install-codeql | |
| - name: Validate query format | |
| run: | | |
| codeql version | |
| find . \( -name \*.ql -or -name \*.qll \) -print0 | xargs -0 --max-procs "$XARGS_MAX_PROCS" codeql query format --in-place | |
| git diff | |
| git diff --compact-summary | |
| git diff --quiet |