Preparing report...

Report for github.com/amdonov/lite-idp

A+    Excellent!    Found 17 issues across 63 files

Tweet

gofmt96%

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!


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!


golint80%

Golint is a linter for Go source code.

    • lite-idp/saml/protocol.go
    • Line 24: warning: exported type AuthnRequest should have comment or be unexported (golint)
    • Line 32: warning: exported type ArtifactResolveEnvelope should have comment or be unexported (golint)
    • Line 37: warning: exported type ArtifactResolveBody should have comment or be unexported (golint)
    • Line 42: warning: exported type ArtifactResolve should have comment or be unexported (golint)
    • Line 49: warning: exported type ArtifactResponseEnvelope should have comment or be unexported (golint)
    • Line 54: warning: exported type ArtifactResponseBody should have comment or be unexported (golint)
    • Line 59: warning: exported type ArtifactResponse should have comment or be unexported (golint)
    • Line 65: warning: exported type ECPResponseEnvelope should have comment or be unexported (golint)
    • Line 71: warning: exported type ECPResponseHeader should have comment or be unexported (golint)
    • Line 77: warning: exported type ECPResponse should have comment or be unexported (golint)
    • Line 84: warning: exported type ECPRequestAuthenticated should have comment or be unexported (golint)
    • Line 89: warning: exported type ECPResponseBody should have comment or be unexported (golint)
    • Line 94: warning: exported type Response should have comment or be unexported (golint)
    • Line 101: warning: exported type Status should have comment or be unexported (golint)
    • Line 106: warning: exported type StatusCode should have comment or be unexported (golint)
    • Line 111: warning: exported type RequestAbstractType should have comment or be unexported (golint)
    • Line 119: warning: exported type StatusResponseType should have comment or be unexported (golint)
    • Line 129: warning: exported type SOAPFaultEnvelope should have comment or be unexported (golint)
    • Line 134: warning: exported type SOAPFaultBody should have comment or be unexported (golint)
    • Line 139: warning: exported type SOAPFault should have comment or be unexported (golint)
    • lite-idp/sign/sign.go
    • Line 21: warning: exported type Signer should have comment or be unexported (golint)
    • Line 25: warning: exported type Validator should have comment or be unexported (golint)
    • lite-idp/model/model.go
    • Line 30: warning: exported method User.AppendAttributes should have comment or be unexported (golint)
    • Line 38: warning: exported method User.AttributeStatement should have comment or be unexported (golint)
    • lite-idp/saml/assertion.go
    • Line 25: warning: exported type Subject should have comment or be unexported (golint)
    • Line 31: warning: exported type Issuer should have comment or be unexported (golint)
    • Line 37: warning: exported type Conditions should have comment or be unexported (golint)
    • Line 44: warning: exported type SubjectLocality should have comment or be unexported (golint)
    • Line 50: warning: exported type AuthnContext should have comment or be unexported (golint)
    • Line 55: warning: exported type AuthnStatement should have comment or be unexported (golint)
    • Line 63: warning: exported type AttributeValue should have comment or be unexported (golint)
    • Line 68: warning: exported type Attribute should have comment or be unexported (golint)
    • Line 76: warning: exported type AttributeStatement should have comment or be unexported (golint)
    • Line 81: warning: exported type NameID should have comment or be unexported (golint)
    • Line 89: warning: exported type SubjectConfirmation should have comment or be unexported (golint)
    • Line 95: warning: exported type SubjectConfirmationData should have comment or be unexported (golint)
    • Line 103: warning: exported type AudienceRestriction should have comment or be unexported (golint)
    • Line 108: warning: exported type Assertion should have comment or be unexported (golint)
    • lite-idp/saml/metadata.go
    • Line 23: warning: exported type EntityDescriptor should have comment or be unexported (golint)
    • Line 30: warning: exported type SPEntityDescriptor should have comment or be unexported (golint)
    • Line 35: warning: exported type IDPEntityDescriptor should have comment or be unexported (golint)
    • Line 41: warning: exported type IDPSSODescriptor should have comment or be unexported (golint)
    • Line 51: warning: exported type Service should have comment or be unexported (golint)
    • Line 56: warning: exported type AttributeService should have comment or be unexported (golint)
    • Line 61: warning: exported type AttributeAuthorityDescriptor should have comment or be unexported (golint)
    • Line 69: warning: exported type SingleSignOnService should have comment or be unexported (golint)
    • Line 74: warning: exported type ArtifactResolutionService should have comment or be unexported (golint)
    • Line 80: warning: exported type SPSSODescriptor should have comment or be unexported (golint)
    • Line 89: warning: exported type AssertionConsumerService should have comment or be unexported (golint)
    • Line 96: warning: exported type KeyDescriptor should have comment or be unexported (golint)
    • lite-idp/saml/query.go
    • Line 9: warning: exported type AttributeQueryEnv should have comment or be unexported (golint)
    • Line 14: warning: exported type AttributeQueryBody should have comment or be unexported (golint)
    • Line 19: warning: exported type AttributeQuery should have comment or be unexported (golint)
    • Line 26: warning: exported type AttributeRespEnv should have comment or be unexported (golint)
    • Line 31: warning: exported type AttributeRespBody should have comment or be unexported (golint)
    • lite-idp/store/cache.go
    • Line 23: warning: exported type Cache should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function New should be of the form "New ..." (golint)
    • lite-idp/saml/helpers.go
    • Line 23: warning: exported function NewID should have comment or be unexported (golint)
    • Line 27: warning: exported function NewIssuer should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!