Skip to content

feat: Governance changes#118

Open
viswa-uipath wants to merge 9 commits into
mainfrom
feat/governance-core
Open

feat: Governance changes#118
viswa-uipath wants to merge 9 commits into
mainfrom
feat/governance-core

fix(governance): PR-118 review feedback + default mode DISABLED

9e04128
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 10, 2026 in 34s

Quality Gate failed

Failed conditions
59.6% Coverage on New Code (required ≥ 90%)
C Reliability 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 warning on line 182 in src/uipath/runtime/governance/native/policy_api_client.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant Exception class; it derives from another which is already caught.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTaKAhDy5lsNsv_h&open=AZ6sQTaKAhDy5lsNsv_h&pullRequest=118

Check failure on line 290 in src/uipath/runtime/governance/audit/base.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTXOAhDy5lsNsv_Z&open=AZ6sQTXOAhDy5lsNsv_Z&pullRequest=118

Check failure on line 166 in src/uipath/runtime/governance/audit/traces.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=UiPath_uipath-runtime-python&issues=AZ6w_jj7arivAkdSbDOr&open=AZ6w_jj7arivAkdSbDOr&pullRequest=118

Check warning on line 27 in src/uipath/runtime/governance/audit/base.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either remove or fill this block of code.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTXNAhDy5lsNsv_V&open=AZ6sQTXNAhDy5lsNsv_V&pullRequest=118

Check failure on line 200 in src/uipath/runtime/governance/native/_yaml_to_index.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTZgAhDy5lsNsv_b&open=AZ6sQTZgAhDy5lsNsv_b&pullRequest=118

Check failure on line 303 in src/uipath/runtime/governance/native/evaluator.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=UiPath_uipath-runtime-python&issues=AZ6sQTaBAhDy5lsNsv_f&open=AZ6sQTaBAhDy5lsNsv_f&pullRequest=118

Check warning on line 182 in src/uipath/runtime/governance/native/policy_api_client.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant Exception class; it derives from another which is already caught.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTaKAhDy5lsNsv_i&open=AZ6sQTaKAhDy5lsNsv_i&pullRequest=118

Check failure on line 361 in src/uipath/runtime/governance/wrapper.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTaYAhDy5lsNsv_k&open=AZ6sQTaYAhDy5lsNsv_k&pullRequest=118

Check warning on line 169 in src/uipath/runtime/governance/native/loader.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "pack_name".

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTZ0AhDy5lsNsv_d&open=AZ6sQTZ0AhDy5lsNsv_d&pullRequest=118

Check failure on line 751 in src/uipath/runtime/governance/native/evaluator.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTaBAhDy5lsNsv_g&open=AZ6sQTaBAhDy5lsNsv_g&pullRequest=118

Check failure on line 532 in src/uipath/runtime/governance/audit/base.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=UiPath_uipath-runtime-python&issues=AZ6xwv388KynPpzuZ9U_&open=AZ6xwv388KynPpzuZ9U_&pullRequest=118

Check warning on line 193 in src/uipath/runtime/governance/native/evaluator.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove or rework this redundant alternative.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTaBAhDy5lsNsv_e&open=AZ6sQTaBAhDy5lsNsv_e&pullRequest=118

Check failure on line 266 in src/uipath/runtime/governance/audit/base.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=UiPath_uipath-runtime-python&issues=AZ6sQTXOAhDy5lsNsv_Y&open=AZ6sQTXOAhDy5lsNsv_Y&pullRequest=118

Check warning on line 137 in src/uipath/runtime/governance/audit/base.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant return.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTXOAhDy5lsNsv_W&open=AZ6sQTXOAhDy5lsNsv_W&pullRequest=118

Check failure on line 529 in src/uipath/runtime/governance/wrapper.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=UiPath_uipath-runtime-python&issues=AZ6sQTaYAhDy5lsNsv_l&open=AZ6sQTaYAhDy5lsNsv_l&pullRequest=118

Check warning on line 144 in src/uipath/runtime/governance/audit/base.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant return.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTXOAhDy5lsNsv_X&open=AZ6sQTXOAhDy5lsNsv_X&pullRequest=118

Check failure on line 113 in src/uipath/runtime/governance/native/guardrail_compensation.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTZqAhDy5lsNsv_c&open=AZ6sQTZqAhDy5lsNsv_c&pullRequest=118

Check failure on line 101 in src/uipath/runtime/governance/wrapper.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTaYAhDy5lsNsv_j&open=AZ6sQTaYAhDy5lsNsv_j&pullRequest=118

Check warning on line 30 in src/uipath/runtime/wrapper.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use asynchronous features in this function or remove the `async` keyword.

See more on https://sonarcloud.io/project/issues?id=UiPath_uipath-runtime-python&issues=AZ6sQTahAhDy5lsNsv_m&open=AZ6sQTahAhDy5lsNsv_m&pullRequest=118