Skip to content

feat: add --lines-changed-only to the clang-format hook - #327

Open
shenxianpeng wants to merge 1 commit into
mainfrom
claude/project-thread-cxtp4n
Open

shenxianpeng wants to merge 1 commit into
mainfrom
claude/project-thread-cxtp4n

feat: add --lines-changed-only to the clang-format hook and test with…

7032e75
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 10, 2026 in 17s

Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 98 in cpp_linter_hooks/clang_format.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Command Argument Injection via faulty LLM-supplied CLI arguments in clang_format.run_clang_format()

See more on https://sonarcloud.io/project/issues?id=cpp-linter_cpp-linter-hooks&issues=AaHFiKnN_wxgQOln4JIX&open=AaHFiKnN_wxgQOln4JIX&pullRequest=327

Check failure on line 98 in cpp_linter_hooks/clang_format.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Command Injection via faulty LLM-supplied CLI arguments in clang_format.run_clang_format()

See more on https://sonarcloud.io/project/issues?id=cpp-linter_cpp-linter-hooks&issues=AaHFiKnN_wxgQOln4JIW&open=AaHFiKnN_wxgQOln4JIW&pullRequest=327