-
Type: Story
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.5
-
Component/s: bbsim
-
Labels:None
-
Story Points:3
-
Epic Link:
Running `make sca` on the BBSim repo results in a plethora or warnings, eg:
<testcase name="gosimple" classname="internal/bbsim/devices/onu.go:828:6"> <failure message="S1002: should omit comparison to bool constant, can be simplified to `o.Dhcp`"><![CDATA[ if o.Dhcp == true {]]></failure> </testcase> <testcase name="gosimple" classname="internal/bbsim/devices/onu.go:829:7"> <failure message="S1002: should omit comparison to bool constant, can be simplified to `!o.DhcpFlowReceived`"><![CDATA[ if o.DhcpFlowReceived == false {]]></failure> </testcase> <testcase name="gosimple" classname="internal/bbsim/devices/onu.go:839:11"> <failure message="S1002: should omit comparison to bool constant, can be simplified to `v`"><![CDATA[ if v == true {]]></failure> </testcase>
All of these warnings needs to be resolved and the `sca` target needs to be added to the Jenkins testing to avoid regressions.