Refactoring of ThermalGrid.handleInfeed
to fix thermal storage recharge correctly when empty
#931
Quality Gate success
Analysis Details
7 Issues
Coverage and Duplications
Project ID: edu.ie3:simona
Annotations
Check warning on line 246 in src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala
sonarqubegithubprchecks / simona Sonarqube Results
src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala#L246
Use the opposite operator (">=") instead.
Check warning on line 169 in src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala
sonarqubegithubprchecks / simona Sonarqube Results
src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala#L169
This function has 8 parameters, which is greater than the 7 authorized.
Check warning on line 62 in src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala
sonarqubegithubprchecks / simona Sonarqube Results
src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala#L62
Take the required action to fix the issue indicated by this "FIXME" comment.
Check warning on line 220 in src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala
sonarqubegithubprchecks / simona Sonarqube Results
src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala#L220
This function has 8 parameters, which is greater than the 7 authorized.
Check warning on line 375 in src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala
sonarqubegithubprchecks / simona Sonarqube Results
src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala#L375
Take the required action to fix the issue indicated by this "FIXME" comment.
Check warning on line 653 in src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala
sonarqubegithubprchecks / simona Sonarqube Results
src/main/scala/edu/ie3/simona/model/thermal/ThermalGrid.scala#L653
Take the required action to fix the issue indicated by this "FIXME" comment.
sonarqubegithubprchecks / simona Sonarqube Results
src/main/scala/edu/ie3/simona/agent/participant/hp/HpAgentFundamentals.scala#L315
Unnecessary store before return.