Preparing report...

Report for github.com/codenotary/immugw

A+    Excellent!    Found 12 issues across 55 files

Tweet

gofmt98%

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!


gocyclo98%

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.


golint81%

Golint is a linter for Go source code.

    • immugw/cmd/immugw/command/service/servicetest/sservice.go
    • Line 24: warning: exported type Sservicemock should have comment or be unexported (golint)
    • Line 26: warning: exported method Sservicemock.NewDaemon should have comment or be unexported (golint)
    • Line 30: warning: exported method Sservicemock.IsAdmin should have comment or be unexported (golint)
    • Line 33: warning: exported method Sservicemock.InstallSetup should have comment or be unexported (golint)
    • Line 36: warning: exported method Sservicemock.UninstallSetup should have comment or be unexported (golint)
    • Line 39: warning: exported method Sservicemock.EraseData should have comment or be unexported (golint)
    • Line 42: warning: exported method Sservicemock.IsRunning should have comment or be unexported (golint)
    • Line 45: warning: exported method Sservicemock.GetDefaultConfigPath should have comment or be unexported (golint)
    • Line 49: warning: exported method Sservicemock.ReadConfig should have comment or be unexported (golint)
    • Line 52: warning: exported method Sservicemock.InstallConfig should have comment or be unexported (golint)
    • Line 55: warning: exported method Sservicemock.CopyExecInOsDefault should have comment or be unexported (golint)
    • Line 58: warning: exported method Sservicemock.GetDefaultExecPath should have comment or be unexported (golint)
    • Line 61: warning: exported method Sservicemock.UninstallExecutables should have comment or be unexported (golint)
    • Line 65: warning: exported type SservicePermissionsMock should have comment or be unexported (golint)
    • Line 67: warning: exported method SservicePermissionsMock.GroupCreateIfNotExists should have comment or be unexported (golint)
    • Line 70: warning: exported method SservicePermissionsMock.UserCreateIfNotExists should have comment or be unexported (golint)
    • Line 73: warning: exported method SservicePermissionsMock.SetOwnership should have comment or be unexported (golint)
    • immugw/cmd/immugw/command/service/constants/linux.dist.go
    • Line 23: warning: exported const ExecPath should have comment or be unexported (golint)
    • Line 24: warning: exported const ConfigPath should have comment or be unexported (golint)
    • Line 25: warning: exported const OSUser should have comment or be unexported (golint)
    • Line 26: warning: exported const OSGroup should have comment or be unexported (golint)
    • Line 28: warning: exported var StartUpConfig should have comment or be unexported (golint)
    • immugw/cmd/immugw/command/service/servicetest/configservice.go
    • Line 24: warning: exported type ConfigServiceMock should have comment or be unexported (golint)
    • Line 28: warning: exported method ConfigServiceMock.WriteConfigAs should have comment or be unexported (golint)
    • Line 31: warning: exported method ConfigServiceMock.GetString should have comment or be unexported (golint)
    • Line 34: warning: exported method ConfigServiceMock.SetConfigType should have comment or be unexported (golint)
    • Line 36: warning: exported method ConfigServiceMock.ReadConfig should have comment or be unexported (golint)
    • immugw/pkg/api/patterns.go
    • Line 21: warning: don't use underscores in Go names; func Pattern_ImmuService_VerifiedGet_0 should be PatternImmuServiceVerifiedGet0 (golint)
    • Line 26: warning: don't use underscores in Go names; func Pattern_ImmuService_VerifiedSet_0 should be PatternImmuServiceVerifiedSet0 (golint)
    • Line 31: warning: don't use underscores in Go names; func Pattern_ImmuService_VerifiedSetReference_0 should be PatternImmuServiceVerifiedSetReference0 (golint)
    • Line 36: warning: don't use underscores in Go names; func Pattern_ImmuService_VerifiedZAdd_0 should be PatternImmuServiceVerifiedZAdd0 (golint)
    • Line 41: warning: don't use underscores in Go names; func Pattern_ImmuService_VerifiedTxById_0 should be PatternImmuServiceVerifiedTxByID0 (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!