Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
go vet
examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.
No problems detected. Good job!
Gocyclo calculates cyclomatic complexities of functions in Go source code.
The cyclomatic complexity of a function is calculated according to the following rules:
1 is the base complexity of a function
+1 for each 'if', 'for', 'case', '&&' or '||'
Go Report Card warns on functions with cyclomatic complexity > 15.
No problems detected. Good job!
Golint is a linter for Go source code.
-
ssl-simulation-controller/internal/simctl/simctl.go
- Line 15: warning: exported type SimulationController should have comment or be unexported (golint)
- Line 36: warning: exported function NewSimulationController should have comment or be unexported (golint)
- Line 154: warning: exported method SimulationController.Start should have comment or be unexported (golint)
- Line 160: warning: exported method SimulationController.Stop should have comment or be unexported (golint)
-
ssl-simulation-controller/internal/geom/rectangle.go
- Line 5: warning: exported type Rectangle should have comment or be unexported (golint)
- Line 46: warning: comment on exported method Rectangle.MinX should be of the form "MinX ..." (golint)
- Line 51: warning: comment on exported method Rectangle.MaxY should be of the form "MaxY ..." (golint)
- Line 56: warning: comment on exported method Rectangle.MinY should be of the form "MinY ..." (golint)
-
ssl-simulation-controller/internal/sslnet/multicast_server.go
- Line 12: warning: exported type MulticastServer should have comment or be unexported (golint)
- Line 22: warning: exported function NewMulticastServer should have comment or be unexported (golint)
- Line 29: warning: exported method MulticastServer.Start should have comment or be unexported (golint)
- Line 34: warning: exported method MulticastServer.Stop should have comment or be unexported (golint)
-
ssl-simulation-controller/internal/simctl/handler_geometry.go
- Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
- Line 18: warning: exported type GeometryHandler should have comment or be unexported (golint)
- Line 26: warning: exported function NewGeometryHandler should have comment or be unexported (golint)
- Line 33: warning: exported method GeometryHandler.Reset should have comment or be unexported (golint)
-
ssl-simulation-controller/internal/simctl/handler_robot_specs.go
- Line 12: warning: exported type TeamRobotSpecs should have comment or be unexported (golint)
- Line 16: warning: exported type RobotSpec should have comment or be unexported (golint)
- Line 27: warning: exported type Limits should have comment or be unexported (golint)
- Line 36: warning: exported type CustomRobotSpecErForce should have comment or be unexported (golint)
- Line 41: warning: exported type RobotSpecHandler should have comment or be unexported (golint)
- Line 48: warning: exported function NewRobotSpecHandler should have comment or be unexported (golint)
- Line 55: warning: exported method RobotSpecHandler.Reset should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!