Skip to content

fix: resolve 8 reliability bugs + ~500 code smells for SonarCloud quality gate#39

Merged
aksOps merged 2 commits into
mainfrom
fix/sonarcloud-quality-gate
Apr 4, 2026
Merged

fix: resolve 8 reliability bugs + ~500 code smells for SonarCloud quality gate#39
aksOps merged 2 commits into
mainfrom
fix/sonarcloud-quality-gate

fix: resolve SonarCloud reliability bugs, unused imports, string cons…

c48ec85
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 4, 2026 in 1m 1s

Quality Gate failed

Failed conditions
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 461 in src/main/java/io/github/randomcodespace/iq/analyzer/ConfigScanner.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFqhr-X0o8pqOhKP&open=AZ1ZcFqhr-X0o8pqOhKP&pullRequest=39

Check failure on line 162 in src/main/java/io/github/randomcodespace/iq/flow/FlowViews.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_APP_MESSAGING' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF1kr-X0o8pqOhKn&open=AZ1ZcF1kr-X0o8pqOhKn&pullRequest=39

Check failure on line 113 in src/main/java/io/github/randomcodespace/iq/detector/java/AzureMessagingDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal " sends to " 3 times.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFv0r-X0o8pqOhKc&open=AZ1ZcFv0r-X0o8pqOhKc&pullRequest=39

Check failure on line 40 in src/main/java/io/github/randomcodespace/iq/flow/FlowViews.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this constant name to match the regular expression '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF1kr-X0o8pqOhKo&open=AZ1ZcF1kr-X0o8pqOhKo&pullRequest=39

Check failure on line 280 in src/main/java/io/github/randomcodespace/iq/detector/config/KubernetesDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_CRONJOB' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFsKr-X0o8pqOhKU&open=AZ1ZcFsKr-X0o8pqOhKU&pullRequest=39

Check warning on line 236 in src/main/java/io/github/randomcodespace/iq/detector/java/ClassHierarchyDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFwRr-X0o8pqOhKf&open=AZ1ZcFwRr-X0o8pqOhKf&pullRequest=39

Check failure on line 530 in src/main/java/io/github/randomcodespace/iq/analyzer/ServiceDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_PYPROJECT_TOML' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFoWr-X0o8pqOhKL&open=AZ1ZcFoWr-X0o8pqOhKL&pullRequest=39

Check warning on line 61 in src/main/java/io/github/randomcodespace/iq/detector/config/KubernetesRbacDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 114 to 64, Complexity from 22 to 14, Nesting Level from 4 to 2, Number of Variables from 44 to 6.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFrqr-X0o8pqOhKT&open=AZ1ZcFrqr-X0o8pqOhKT&pullRequest=39

Check warning on line 1127 in src/main/java/io/github/randomcodespace/iq/graph/GraphStore.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "targetId" local variable.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF35r-X0o8pqOhKu&open=AZ1ZcF35r-X0o8pqOhKu&pullRequest=39

Check failure on line 566 in src/main/java/io/github/randomcodespace/iq/analyzer/ServiceDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_DJANGO' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFoWr-X0o8pqOhKM&open=AZ1ZcFoWr-X0o8pqOhKM&pullRequest=39

Check warning on line 165 in src/main/java/io/github/randomcodespace/iq/detector/java/JpaEntityDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFuer-X0o8pqOhKY&open=AZ1ZcFuer-X0o8pqOhKY&pullRequest=39

Check failure on line 80 in src/main/java/io/github/randomcodespace/iq/detector/typescript/TypeScriptStructuresDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_TYPESCRIPT' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFzer-X0o8pqOhKj&open=AZ1ZcFzer-X0o8pqOhKj&pullRequest=39

Check failure on line 187 in src/main/java/io/github/randomcodespace/iq/detector/go/GoOrmDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_DATABASE_SQL' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF1Dr-X0o8pqOhKk&open=AZ1ZcF1Dr-X0o8pqOhKk&pullRequest=39

Check failure on line 337 in src/main/java/io/github/randomcodespace/iq/query/QueryService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_LAYER' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF3Mr-X0o8pqOhKr&open=AZ1ZcF3Mr-X0o8pqOhKr&pullRequest=39

Check failure on line 84 in src/main/java/io/github/randomcodespace/iq/detector/config/KubernetesRbacDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_CLUSTERROLE' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFrqr-X0o8pqOhKR&open=AZ1ZcFrqr-X0o8pqOhKR&pullRequest=39

Check warning on line 1127 in src/main/java/io/github/randomcodespace/iq/graph/GraphStore.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to local variable "targetId".

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF35r-X0o8pqOhKt&open=AZ1ZcF35r-X0o8pqOhKt&pullRequest=39

Check warning on line 196 in src/main/java/io/github/randomcodespace/iq/detector/java/JpaEntityDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFuer-X0o8pqOhKZ&open=AZ1ZcFuer-X0o8pqOhKZ&pullRequest=39

Check warning on line 238 in src/main/java/io/github/randomcodespace/iq/detector/java/JpaEntityDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 85 to 64, Complexity from 19 to 14, Nesting Level from 5 to 2, Number of Variables from 34 to 6.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFuer-X0o8pqOhKa&open=AZ1ZcFuer-X0o8pqOhKa&pullRequest=39

Check failure on line 411 in src/main/java/io/github/randomcodespace/iq/analyzer/ServiceDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_GRADLE' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFoWr-X0o8pqOhKJ&open=AZ1ZcFoWr-X0o8pqOhKJ&pullRequest=39

Check warning on line 197 in src/main/java/io/github/randomcodespace/iq/detector/config/HelmChartDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Return an empty map instead of null.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFrMr-X0o8pqOhKQ&open=AZ1ZcFrMr-X0o8pqOhKQ&pullRequest=39

Check warning on line 37 in src/main/java/io/github/randomcodespace/iq/detector/java/SpringRestDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "PROP_REQUESTMAPPING" private field.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFvWr-X0o8pqOhKb&open=AZ1ZcFvWr-X0o8pqOhKb&pullRequest=39

Check failure on line 534 in src/main/java/io/github/randomcodespace/iq/analyzer/ServiceDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_SETUP_PY' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFoWr-X0o8pqOhKK&open=AZ1ZcFoWr-X0o8pqOhKK&pullRequest=39

Check failure on line 188 in src/main/java/io/github/randomcodespace/iq/flow/FlowViews.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_INFRA' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF1kr-X0o8pqOhKm&open=AZ1ZcF1kr-X0o8pqOhKm&pullRequest=39

Check failure on line 73 in src/main/java/io/github/randomcodespace/iq/detector/config/PropertiesDetector.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_PROPERTIES' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcFshr-X0o8pqOhKW&open=AZ1ZcFshr-X0o8pqOhKW&pullRequest=39

Check failure on line 184 in src/main/java/io/github/randomcodespace/iq/cli/StatsCommand.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use already-defined constant 'PROP_INFRA' instead of duplicating its value here.

See more on https://sonarcloud.io/project/issues?id=RandomCodeSpace_code-iq&issues=AZ1ZcF2Br-X0o8pqOhKp&open=AZ1ZcF2Br-X0o8pqOhKp&pullRequest=39