mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
850 B
850 B
When reviewing code:
- do not review changes in files with
.expectedextension (they are automatically ensured to be correct). - in
.qland.qllfiles, do not try to review the code itself as you don't understand the programming language well enough to make comments in these languages. You can still check for typos or comment improvements.
When editing .ql and .qll files:
- All edited
.qland.qllfiles should be autoformatted afterwards using the CodeQL CLI. - To install and use the CodeQL CLI autoformatter:
- Download and extract CodeQL CLI:
cd /tmp && curl -L -o codeql-linux64.zip https://github.com/github/codeql-cli-binaries/releases/latest/download/codeql-linux64.zip && unzip -q codeql-linux64.zip - Add to PATH:
export PATH="/tmp/codeql:$PATH" - Run autoformatter:
codeql query format [file] --in-place
- Download and extract CodeQL CLI: