AAPS v4#4903
Quality Gate failed
Failed conditions
E Security Rating on New Code (required ≥ A)
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 98 in core/ui/src/main/kotlin/app/aaps/core/ui/search/SearchableItem.kt
sonarqubecloud / SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSP8D89fT3f9p50zd&open=AZ7RSP8D89fT3f9p50zd&pullRequest=4903
Check warning on line 56 in ui/src/main/kotlin/app/aaps/ui/search/SearchResults.kt
sonarqubecloud / SonarCloud Code Analysis
This function has 9 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ8h_ZWntbhij3bT7cxI&open=AZ8h_ZWntbhij3bT7cxI&pullRequest=4903
Check failure on line 216 in ui/src/main/kotlin/app/aaps/ui/compose/fillDialog/FillDialogScreen.kt
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQZi89fT3f9p502D&open=AZ7RSQZi89fT3f9p502D&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Add a type test to this method.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RU8LXlwJ5gPmb1Y1D&open=AZ7RU8LXlwJ5gPmb1Y1D&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "◄ ERROR" 7 times.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSPfi89fT3f9p50wz&open=AZ7RSPfi89fT3f9p50wz&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
This function has 13 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQc389fT3f9p502q&open=AZ7RSQc389fT3f9p502q&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 25 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSOsl89fT3f9p50tn&open=AZ7RSOsl89fT3f9p50tn&pullRequest=4903
Check failure on line 69 in ui/src/main/kotlin/app/aaps/ui/compose/careDialog/CareDialogScreen.kt
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQga89fT3f9p503X&open=AZ7RSQga89fT3f9p503X&pullRequest=4903
Check warning on line 918 in plugins/aps/src/main/kotlin/app/aaps/plugins/aps/loop/LoopPlugin.kt
sonarqubecloud / SonarCloud Code Analysis
This function has 8 parameters, which is greater than the 7 authorized.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSPuI89fT3f9p50xh&open=AZ7RSPuI89fT3f9p50xh&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Add a nested comment explaining why this function is empty or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSP5989fT3f9p50y-&open=AZ7RSP5989fT3f9p50y-&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQBc89fT3f9p50z5&open=AZ7RSQBc89fT3f9p50z5&pullRequest=4903
Check failure on line 182 in ui/src/main/kotlin/app/aaps/ui/search/SearchResults.kt
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQj189fT3f9p504E&open=AZ7RSQj189fT3f9p504E&pullRequest=4903
Check warning on line 40 in plugins/source/src/main/kotlin/app/aaps/plugins/source/GlimpPlugin.kt
sonarqubecloud / SonarCloud Code Analysis
Use "_" instead of this unused lambda parameter "plugin".
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSPX-89fT3f9p50vp&open=AZ7RSPX-89fT3f9p50vp&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Reduce the number of when branches from 37 to at most 30.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQRf89fT3f9p501K&open=AZ7RSQRf89fT3f9p501K&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Reduce the number of when branches from 39 to at most 30.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSP7D89fT3f9p50zQ&open=AZ7RSP7D89fT3f9p50zQ&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Remove this cast that can never succeed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQmo89fT3f9p504R&open=AZ7RSQmo89fT3f9p504R&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
This branch's code block is the same as the block for the branch on line 169.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSP1Z89fT3f9p50x8&open=AZ7RSP1Z89fT3f9p50x8&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RU8S-lwJ5gPmb1Y1L&open=AZ7RU8S-lwJ5gPmb1Y1L&pullRequest=4903
Check failure on line 114 in wear/src/main/kotlin/app/aaps/wear/comm/DataHandlerWear.kt
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RU9eJlwJ5gPmb1Y1f&open=AZ7RU9eJlwJ5gPmb1Y1f&pullRequest=4903
Check warning on line 65 in wear/src/main/kotlin/app/aaps/wear/tile/source/RunningModeSource.kt
sonarqubecloud / SonarCloud Code Analysis
Remove this cast that can never succeed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQpe89fT3f9p504d&open=AZ7RSQpe89fT3f9p504d&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Merge chained "if" statements into a single "when" statement.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSO0I89fT3f9p50t8&open=AZ7RSO0I89fT3f9p50t8&pullRequest=4903
Check failure on line 654 in pump/insight/src/main/kotlin/app/aaps/pump/insight/InsightPlugin.kt
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 32 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSO7189fT3f9p50uV&open=AZ7RSO7189fT3f9p50uV&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Replace with interface delegation using "by" in the class header.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQQ589fT3f9p5005&open=AZ7RSQQ589fT3f9p5005&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Use "_" instead of this unused lambda parameter "plugin".
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSPZj89fT3f9p50vz&open=AZ7RSPZj89fT3f9p50vz&pullRequest=4903
sonarqubecloud / SonarCloud Code Analysis
Replace with interface delegation using "by" in the class header.
See more on https://sonarcloud.io/project/issues?id=nightscout_AndroidAPS&issues=AZ7RSQQ589fT3f9p500-&open=AZ7RSQQ589fT3f9p500-&pullRequest=4903