Preparing report...

Report for github.com/edgesec-org/edgeca

A+    Excellent!    Found 10 issues across 17 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!


golint41%

Golint is a linter for Go source code.

    • edgeca/internal/server/sds/sdsimpl.go
    • Line 41: warning: exported type Stream should have comment or be unexported (golint)
    • Line 113: warning: exported type Resource should have comment or be unexported (golint)
    • Line 117: warning: exported function InjectSDSServer should have comment or be unexported (golint)
    • edgeca/internal/certs/tls.go
    • Line 28: warning: exported function GenerateTLSServerCert should have comment or be unexported (golint)
    • Line 48: warning: exported function LoadCAServerCert should have comment or be unexported (golint)
    • Line 64: warning: exported function GenerateTLSClientCert should have comment or be unexported (golint)
    • edgeca/internal/cli/config/configfile.go
    • Line 28: warning: exported type Config should have comment or be unexported (golint)
    • Line 41: warning: exported function GetDefaultTLSPort should have comment or be unexported (golint)
    • Line 45: warning: exported function GetDefaultTLSHost should have comment or be unexported (golint)
    • Line 50: warning: exported function GetDefaultTLSCertDir should have comment or be unexported (golint)
    • Line 68: warning: exported function InitCLIConfiguration should have comment or be unexported (golint)
    • Line 93: warning: exported function SetCSRConfiguration should have comment or be unexported (golint)
    • Line 113: warning: exported function GetConfigurationFileContents should have comment or be unexported (golint)
    • Line 123: warning: exported function GetDefaultOrganization should have comment or be unexported (golint)
    • Line 127: warning: exported function GetDefaultOrganizationalUnit should have comment or be unexported (golint)
    • Line 131: warning: exported function GetDefaultCountry should have comment or be unexported (golint)
    • Line 135: warning: exported function GetDefaultLocality should have comment or be unexported (golint)
    • Line 139: warning: exported function GetDefaultProvince should have comment or be unexported (golint)
    • edgeca/internal/server/policies/opaimpl.go
    • Line 33: warning: exported function ApplyTPPValues should have comment or be unexported (golint)
    • Line 48: warning: exported function GetDefaultValues should have comment or be unexported (golint)
    • Line 53: warning: exported function GetCurrentPolicy should have comment or be unexported (golint)
    • edgeca/internal/server/config/configfile.go
    • Line 22: warning: exported function GetDefaultTLSHost should have comment or be unexported (golint)
    • Line 26: warning: exported function GetDefaultTLSPort should have comment or be unexported (golint)
    • Line 29: warning: exported function GetDefaultTLSCertDir should have comment or be unexported (golint)
    • edgeca/internal/server/state/state.go
    • Line 48: warning: exported function GetSubCACert should have comment or be unexported (golint)
    • Line 52: warning: exported function GetSubCAKey should have comment or be unexported (golint)
    • Line 56: warning: exported function GetSubCAPEMCert should have comment or be unexported (golint)
    • Line 60: warning: exported function GetRootCACert should have comment or be unexported (golint)
    • Line 64: warning: exported function GetServerTLSCert should have comment or be unexported (golint)
    • Line 86: warning: exported function InitStateUsingCerts should have comment or be unexported (golint)
    • Line 159: warning: exported function InitStateUsingTPP should have comment or be unexported (golint)
    • edgeca/internal/certs/pem.go
    • Line 27: warning: exported function PemToRSAPrivateKey should have comment or be unexported (golint)
    • Line 36: warning: exported function PemToCert should have comment or be unexported (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!