Skip to content

feat(platform): add tirith platform check - #272

Open
refeed wants to merge 5 commits into
mainfrom
feat/gate-capable-engine
Open

feat(platform): add tirith platform check#272
refeed wants to merge 5 commits into
mainfrom
feat/gate-capable-engine

fix(platform): rank approval-required above warned

43490ff
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis cancelled Aug 3, 2026 in 25s

SonarQube Cloud analysis failed

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

Annotations

Check failure on line 38 in src/tirith/platform/cli.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

LLMs running this code with faulty CLI arguments can escape file system restrictions. Refactor this code to validate the constructed path before accessing the file system.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfGyWuIL-NWUCkCf&open=AZ_GkfGyWuIL-NWUCkCf&pullRequest=272

Check failure on line 151 in src/tirith/platform/archive.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 29 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJyWuIL-NWUCkCl&open=AZ_GkfJyWuIL-NWUCkCl&pullRequest=272

Check failure on line 78 in src/tirith/platform/archive.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

LLMs running this code with faulty CLI arguments can escape file system restrictions. Refactor this code to validate the constructed path before accessing the file system.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJyWuIL-NWUCkCm&open=AZ_GkfJyWuIL-NWUCkCm&pullRequest=272

Check warning on line 2 in tests/core/test_core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Import "pytest" as a module.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfNjWuIL-NWUCkCt&open=AZ_GkfNjWuIL-NWUCkCt&pullRequest=272

Check warning on line 93 in src/tirith/core/core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfDhWuIL-NWUCkCb&open=AZ_GkfDhWuIL-NWUCkCb&pullRequest=272

Check failure on line 63 in src/tirith/platform/report.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJgWuIL-NWUCkCg&open=AZ_GkfJgWuIL-NWUCkCg&pullRequest=272

Check warning on line 88 in src/tirith/core/core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfDhWuIL-NWUCkCa&open=AZ_GkfDhWuIL-NWUCkCa&pullRequest=272

Check failure on line 40 in src/tirith/platform/check.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

LLMs running this code with faulty CLI arguments can escape file system restrictions. Refactor this code to validate the constructed path before accessing the file system.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJ4WuIL-NWUCkCo&open=AZ_GkfJ4WuIL-NWUCkCo&pullRequest=272

Check failure on line 121 in src/tirith/platform/cli.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfGyWuIL-NWUCkCe&open=AZ_GkfGyWuIL-NWUCkCe&pullRequest=272

Check failure on line 218 in src/tirith/platform/check.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

LLMs running this code with faulty CLI arguments can escape file system restrictions. Refactor this code to validate the constructed path before accessing the file system.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJ4WuIL-NWUCkCn&open=AZ_GkfJ4WuIL-NWUCkCn&pullRequest=272

Check warning on line 374 in src/tirith/platform/redact.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either merge this branch with the identical one on line "372" or change one of the implementations.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJmWuIL-NWUCkCj&open=AZ_GkfJmWuIL-NWUCkCj&pullRequest=272

Check failure on line 113 in src/tirith/platform/check.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

LLMs running this code with faulty CLI arguments can escape file system restrictions. Refactor this code to validate the constructed path before accessing the file system.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJ4WuIL-NWUCkCp&open=AZ_GkfJ4WuIL-NWUCkCp&pullRequest=272

Check failure on line 184 in src/tirith/platform/redact.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJmWuIL-NWUCkCi&open=AZ_GkfJmWuIL-NWUCkCi&pullRequest=272

Check warning on line 13 in tests/core/test_output_compatibility.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Import "pytest" as a module.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfNaWuIL-NWUCkCs&open=AZ_GkfNaWuIL-NWUCkCs&pullRequest=272

Check warning on line 51 in setup.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfNwWuIL-NWUCkCu&open=AZ_GkfNwWuIL-NWUCkCu&pullRequest=272

Check warning on line 205 in src/tirith/core/core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfDhWuIL-NWUCkCc&open=AZ_GkfDhWuIL-NWUCkCc&pullRequest=272

Check warning on line 251 in src/tirith/core/core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace chained "endswith" calls with a single call using a tuple argument.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfDhWuIL-NWUCkCd&open=AZ_GkfDhWuIL-NWUCkCd&pullRequest=272

Check warning on line 183 in src/tirith/platform/report.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add replacement fields or use a normal string instead of an f-string.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJgWuIL-NWUCkCh&open=AZ_GkfJgWuIL-NWUCkCh&pullRequest=272

Check warning on line 85 in src/tirith/core/core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this constructor call with a literal.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfDhWuIL-NWUCkCZ&open=AZ_GkfDhWuIL-NWUCkCZ&pullRequest=272

Check warning on line 165 in src/tirith/cli.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfKmWuIL-NWUCkCr&open=AZ_GkfKmWuIL-NWUCkCr&pullRequest=272

Check failure on line 74 in src/tirith/platform/client.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfJsWuIL-NWUCkCk&open=AZ_GkfJsWuIL-NWUCkCk&pullRequest=272

Check failure on line 29 in src/tirith/prettyprinter.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this assignment; "GREY" is assigned again on line 37.

See more on https://sonarcloud.io/project/issues?id=StackGuardian_policy-framework&issues=AZ_GkfKEWuIL-NWUCkCq&open=AZ_GkfKEWuIL-NWUCkCq&pullRequest=272