Preparing report...

Report for github.com/sirikon/molly

A+    Excellent!    Found 10 issues across 22 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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!


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!


ineffassign54%

IneffAssign detects ineffectual assignments in Go code.

    • molly/project_logic_test.go
    • Line 21: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 25: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 29: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 33: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 37: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 41: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 45: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 49: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 53: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 57: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 61: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 65: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 69: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 73: warning: m.Called undefined (type *ProjectLogicMock has no field or method Called) (ineffassign)
    • Line 99: warning: fileSystem.On undefined (type *FileSystemMock has no field or method On) (ineffassign)
    • Line 100: warning: projectSerialization.On undefined (type *ProjectSerializationMock has no field or method On) (ineffassign)
    • Line 106: warning: fileSystem.AssertExpectations undefined (type *FileSystemMock has no field or method AssertExpectations) (ineffassign)
    • Line 107: warning: projectSerialization.AssertExpectations undefined (type *ProjectSerializationMock has no field or method AssertExpectations) (ineffassign)
    • Line 124: warning: fileSystem.On undefined (type *FileSystemMock has no field or method On) (ineffassign)
    • Line 125: warning: fileSystem.On undefined (type *FileSystemMock has no field or method On) (ineffassign)
    • Line 126: warning: cmd.On undefined (type *CMDMock has no field or method On) (ineffassign)
    • Line 133: warning: fileSystem.AssertExpectations undefined (type *FileSystemMock has no field or method AssertExpectations) (ineffassign)
    • Line 150: warning: fileSystem.On undefined (type *FileSystemMock has no field or method On) (ineffassign)
    • Line 151: warning: fileSystem.On undefined (type *FileSystemMock has no field or method On) (ineffassign)
    • Line 152: warning: cmd.On undefined (type *CMDMock has no field or method On) (ineffassign)
    • Line 160: warning: fileSystem.AssertExpectations undefined (type *FileSystemMock has no field or method AssertExpectations) (ineffassign)
    • Line 171: warning: fileSystem.On undefined (type *FileSystemMock has no field or method On) (ineffassign)
    • Line 172: warning: fileSystem.On undefined (type *FileSystemMock has no field or method On) (ineffassign)
    • Line 179: warning: fileSystem.AssertExpectations undefined (type *FileSystemMock has no field or method AssertExpectations) (ineffassign)
    • molly/daemon.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/gin-gonic/gin (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/gin-gonic/gin (invalid package name: "") (ineffassign)
    • molly/cli.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • molly/filesystem_test.go
    • Line 14: warning: m.Called undefined (type *FileSystemMock has no field or method Called) (ineffassign)
    • Line 18: warning: m.Called undefined (type *FileSystemMock has no field or method Called) (ineffassign)
    • Line 22: warning: m.Called undefined (type *FileSystemMock has no field or method Called) (ineffassign)
    • Line 26: warning: m.Called undefined (type *FileSystemMock has no field or method Called) (ineffassign)
    • Line 30: warning: m.Called undefined (type *FileSystemMock has no field or method Called) (ineffassign)
    • molly/cmd_test.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/stretchr/testify/mock (invalid package name: "") (ineffassign)
    • Line 10: warning: m.Called undefined (type *CMDMock has no field or method Called) (ineffassign)
    • molly/project_serialization_test.go
    • Line 10: warning: m.Called undefined (type *ProjectSerializationMock has no field or method Called) (ineffassign)
    • Line 16: warning: m.Called undefined (type *ProjectSerializationMock has no field or method Called) (ineffassign)
    • molly/service_manager_test.go
    • Line 12: warning: m.Called undefined (type *ServiceManagerMock has no field or method Called) (ineffassign)
    • Line 16: warning: m.Called undefined (type *ServiceManagerMock has no field or method Called) (ineffassign)
    • Line 20: warning: m.Called undefined (type *ServiceManagerMock has no field or method Called) (ineffassign)
    • Line 24: warning: m.Called undefined (type *ServiceManagerMock has no field or method Called) (ineffassign)
    • molly/project_logic.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import golang.org/x/crypto/bcrypt (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import golang.org/x/crypto/bcrypt (invalid package name: "") (ineffassign)
    • molly/project_serialization.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • Line 3: warning: could not import gopkg.in/yaml.v2 (invalid package name: "") (ineffassign)
    • molly/project_actions_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 15: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 16: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 17: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 18: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 19: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 20: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 21: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 22: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 28: warning: projectLogic.AssertExpectations undefined (type *ProjectLogicMock has no field or method AssertExpectations) (ineffassign)
    • Line 33: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 37: warning: projectLogic.AssertExpectations undefined (type *ProjectLogicMock has no field or method AssertExpectations) (ineffassign)
    • Line 43: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 44: warning: projectLogic.On undefined (type *ProjectLogicMock has no field or method On) (ineffassign)
    • Line 49: warning: projectLogic.AssertExpectations undefined (type *ProjectLogicMock has no field or method AssertExpectations) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!