feat(platform): add tirith platform check - #272
SonarQube Cloud analysis failed
❌ The last analysis has failed.
Annotations
Check failure on line 38 in src/tirith/platform/cli.py
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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