Tartan Smart Home

Generated on 2025-03-29 15:43:41

Quality Gate

✓ Passed

Conditions

Metric Operator Value Status
new_violations GT 0 OK
Bugs
13
Reliability Rating: E
Vulnerabilities
0
Security Rating: A
Code Smells
170
Maintainability Rating: A
Coverage
17.7%
Duplications
15.2%
Technical Debt
23.9h
Lines of Code
3100
Security Hotspots
2
Security Review Rating: E

Quality Metrics Overview

Quality Dimensions

Code Complexity Analysis

Cognitive Complexity: 448
Cyclomatic Complexity: 629
Comment Density: 18.0%

Top Issues

Severity Component Message Type
BLOCKER src/main/java/tartan/smarthome/db/HomeDAO.java Use try-with-resources or close this "Session" in a "finally" clause. BUG
BLOCKER src/test/java/tartan/smarthome/resources/BaseTest.java Add some tests to this class. CODE_SMELL
BLOCKER src/main/java/tartan/smarthome/resources/iotcontroller/IoTControlManager.java Add an end condition to this loop. BUG
BLOCKER src/main/java/tartan/smarthome/resources/iotcontroller/IoTControlManager.java Use try-with-resources or close this "FileInputStream" in a "finally" clause. BUG
CRITICAL src/main/java/tartan/smarthome/resources/iotcontroller/IoTConnectManager.java Refactor this method to reduce its Cognitive Complexity from 75 to the 15 allowed. CODE_SMELL
CRITICAL src/main/java/tartan/smarthome/resources/StaticTartanStateEvaluator.java Refactor this method to reduce its Cognitive Complexity from 71 to the 15 allowed. CODE_SMELL
CRITICAL src/main/java/tartan/smarthome/resources/iotcontroller/IoTControlManager.java Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. CODE_SMELL
CRITICAL src/main/java/tartan/smarthome/reporting/TestReportGenerator.java Refactor this method to reduce its Cognitive Complexity from 45 to the 15 allowed. CODE_SMELL
CRITICAL src/main/java/tartan/smarthome/resources/TartanHomeService.java Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. CODE_SMELL
CRITICAL src/main/java/tartan/smarthome/resources/TartanHomeService.java Add a default case to this switch. CODE_SMELL

Security Hotspots

Component Message Status
src/main/java/tartan/smarthome/resources/iotcontroller/IoTControlManager.java Make sure this debug feature is deactivated before delivering the code in production. TO_REVIEW
src/main/java/tartan/smarthome/resources/iotcontroller/IoTControlManager.java Make sure this debug feature is deactivated before delivering the code in production. TO_REVIEW