[cmake] Cleanup accross the entire build system (#5527)

Co-authored-by: Mathieu Taillefumier <mathieu.taillefumier@free.fr>
This commit is contained in:
Taillefumier Mathieu 2026-07-04 18:36:14 +00:00 committed by GitHub
parent c75d734d70
commit f50e850e17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 186 additions and 119 deletions

View file

@ -67,6 +67,18 @@ def cmakeformat():
return run_tool(["cmake-format", "-i"], timeout=30)
# ======================================================================================
@app.route("/cmakelint", methods=["POST"])
def cmakelint():
# Note: the config path must be passed as a single "--flag=value" token.
# cmake-lint's "-c"/"--config-files" option is nargs="+", so passing it as
# two separate argv tokens ("-c", path) would greedily swallow the target
# filename that run_tool() appends as another config file, and silently
# scan zero files instead.
config = f"--config-files={os.getcwd()}/cmake-lint.yaml"
return run_tool(["cmake-lint", config], timeout=30)
# ======================================================================================
@app.route("/fortitude", methods=["POST"])
def fortitude():