Preparing report...

Report for github.com/hdhauk/TTK4145-Lift

A+    Excellent!    Found 11 issues across 38 files

Tweet

gofmt94%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

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!


gocyclo97%

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.


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign76%

IneffAssign detects ineffectual assignments in Go code.

    • TTK4145-Lift/main.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/dimiro1/banner (invalid package name: "") (ineffassign)
    • TTK4145-Lift/statetools/costfunction.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/hdhauk/TTK4145-Lift/globalstate (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/hdhauk/TTK4145-Lift/globalstate (invalid package name: "") (ineffassign)
    • TTK4145-Lift/statetools/costfunction_test.go
    • Line 12: warning: undeclared name: State (ineffassign)
    • Line 13: warning: undeclared name: LiftStatus (ineffassign)
    • Line 16: warning: undeclared name: LiftStatus (ineffassign)
    • Line 24: warning: undeclared name: LiftStatus (ineffassign)
    • Line 32: warning: undeclared name: LiftStatus (ineffassign)
    • Line 40: warning: undeclared name: LiftStatus (ineffassign)
    • Line 58: warning: undeclared name: State (ineffassign)
    • Line 59: warning: undeclared name: LiftStatus (ineffassign)
    • Line 60: warning: undeclared name: LiftStatus (ineffassign)
    • Line 68: warning: undeclared name: LiftStatus (ineffassign)
    • Line 76: warning: undeclared name: LiftStatus (ineffassign)
    • Line 85: warning: undeclared name: Status (ineffassign)
    • Line 86: warning: undeclared name: Status (ineffassign)
    • Line 91: warning: undeclared name: Status (ineffassign)
    • Line 96: warning: undeclared name: Status (ineffassign)
    • Line 7: warning: "github.com/hdhauk/TTK4145-Lift/globalstate" imported but not used (ineffassign)
    • TTK4145-Lift/btnsync.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/hdhauk/TTK4145-Lift/driver (invalid package name: "") (ineffassign)
    • TTK4145-Lift/callbacks.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/hdhauk/TTK4145-Lift/globalstate (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/hdhauk/TTK4145-Lift/peerdiscovery (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/hdhauk/TTK4145-Lift/statetools (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!