Skip to content

[SG-4917] feat(infracost): name the cost being measured and what it covers - #362

Merged
refeed merged 1 commit into
mainfrom
feat/infracost-message-context
Sep 4, 2026
Merged

refeed merged 1 commit into
mainfrom
feat/infracost-message-context

feat(infracost): name the cost being measured and what it covers

a8fb5fb
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis cancelled Sep 4, 2026 in 24s

SonarQube Cloud analysis failed

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

Annotations

Check warning on line 77 in src/tirith/providers/infracost/handler.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=AaBtBbR4BsTQA7zsJqlU&open=AaBtBbR4BsTQA7zsJqlU&pullRequest=362

Check warning on line 35 in src/tirith/providers/infracost/handler.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=AaBtBbR4BsTQA7zsJqlT&open=AaBtBbR4BsTQA7zsJqlT&pullRequest=362

Check warning on line 7 in src/tirith/providers/common.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=AaBtBbO1BsTQA7zsJqlS&open=AaBtBbO1BsTQA7zsJqlS&pullRequest=362

Check warning on line 321 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=AaBtBbTHBsTQA7zsJqla&open=AaBtBbTHBsTQA7zsJqla&pullRequest=362

Check warning on line 13 in tests/providers/infracost/test_infracost_message_context.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=AaBtBbVZBsTQA7zsJqlb&open=AaBtBbVZBsTQA7zsJqlb&pullRequest=362

Check failure on line 173 in src/tirith/core/core.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

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

Check warning on line 138 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=AaBtBbTHBsTQA7zsJqlW&open=AaBtBbTHBsTQA7zsJqlW&pullRequest=362

Check warning on line 275 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=AaBtBbTHBsTQA7zsJqlZ&open=AaBtBbTHBsTQA7zsJqlZ&pullRequest=362

Check warning on line 133 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=AaBtBbTHBsTQA7zsJqlV&open=AaBtBbTHBsTQA7zsJqlV&pullRequest=362

Check warning on line 143 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=AaBtBbTHBsTQA7zsJqlX&open=AaBtBbTHBsTQA7zsJqlX&pullRequest=362