Preparing report...

Report for github.com/adaptant-labs/consent-receipt-go

B    Not bad!    Found 18 issues across 25 files

Tweet

gofmt48%

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!


gocyclo96%

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.


golint52%

Golint is a linter for Go source code.

    • consent-receipt-go/api/consent_receipt.go
    • Line 11: warning: exported type ConsentReceipt should have comment or be unexported (golint)
    • Line 27: warning: exported function NewConsentReceipt should have comment or be unexported (golint)
    • Line 37: warning: exported method ConsentReceipt.AddDataController should have comment or be unexported (golint)
    • Line 41: warning: exported method ConsentReceipt.AddService should have comment or be unexported (golint)
    • Line 45: warning: exported method ConsentReceipt.AddSensitiveCategory should have comment or be unexported (golint)
    • Line 49: warning: exported method ConsentReceipt.GenerateJurisdictions should have comment or be unexported (golint)
    • Line 68: warning: exported type ConsentReceiptClaims should have comment or be unexported (golint)
    • Line 73: warning: exported method ConsentReceipt.GenerateClaims should have comment or be unexported (golint)
    • consent-receipt-go/api/data_controller.go
    • Line 3: warning: exported type PostalAddress should have comment or be unexported (golint)
    • Line 12: warning: exported function NewPostalAddress should have comment or be unexported (golint)
    • Line 21: warning: exported type DataController should have comment or be unexported (golint)
    • Line 31: warning: exported function NewDataController should have comment or be unexported (golint)
    • Line 42: warning: exported method DataController.NewConsentReceipt should have comment or be unexported (golint)
    • consent-receipt-go/api/purpose.go
    • Line 9: warning: exported var DefaultTermination should have comment or be unexported (golint)
    • Line 12: warning: exported type Purpose should have comment or be unexported (golint)
    • Line 26: warning: exported method Purpose.AddDataCategory should have comment or be unexported (golint)
    • Line 30: warning: exported function NewPurpose should have comment or be unexported (golint)
    • Line 34: warning: exported function NewPurposeDescription should have comment or be unexported (golint)
    • Line 46: warning: exported function NewPurposeShared should have comment or be unexported (golint)
    • Line 55: warning: exported function DefaultPurpose should have comment or be unexported (golint)
    • consent-receipt-go/api/purpose/purpose_specification.go
    • Line 1: warning: package comment should be of the form "Package purpose ..." (golint)
    • Line 14: warning: exported type PurposeSpecification should have comment or be unexported (golint)
    • Line 18: warning: exported const CoreFunction should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported method PurposeSpecification.MarshalJSON should have comment or be unexported (golint)
    • Line 44: warning: exported method PurposeSpecification.UnmarshalJSON should have comment or be unexported (golint)
    • Line 60: warning: exported method PurposeSpecification.Number should have comment or be unexported (golint)
    • Line 64: warning: exported method PurposeSpecification.Name should have comment or be unexported (golint)
    • Line 103: warning: exported method PurposeSpecification.Description should have comment or be unexported (golint)
    • Line 142: warning: exported method PurposeSpecification.Purpose should have comment or be unexported (golint)
    • Line 161: warning: exported method PurposeSpecification.PurposeWithPrefix should have comment or be unexported (golint)
    • Line 169: warning: exported function PurposeSpecificationFromString should have comment or be unexported (golint)
    • Line 187: warning: exported function DumpPurposeSpecifications should have comment or be unexported (golint)
    • consent-receipt-go/api/keys/keys.go
    • Line 18: warning: exported function GenerateKeys should have comment or be unexported (golint)
    • Line 53: warning: exported function LoadKeys should have comment or be unexported (golint)
    • Line 141: warning: exported function Fingerprint should have comment or be unexported (golint)
    • consent-receipt-go/config/configuration.go
    • Line 9: warning: exported type ConfigurationOptions should have comment or be unexported (golint)
    • Line 16: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 24: warning: exported method Configuration.GenerateJwtToken should have comment or be unexported (golint)
    • consent-receipt-go/api/service.go
    • Line 3: warning: exported type Service should have comment or be unexported (golint)
    • Line 8: warning: exported method Service.AddPurpose should have comment or be unexported (golint)
    • Line 12: warning: exported function NewServiceMultiPurpose should have comment or be unexported (golint)
    • Line 19: warning: exported function NewServiceSinglePurpose should have comment or be unexported (golint)
    • consent-receipt-go/api/category/data_category.go
    • Line 13: warning: exported type DataCategory should have comment or be unexported (golint)
    • Line 17: warning: exported const Biographical should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported method DataCategory.MarshalJSON should have comment or be unexported (golint)
    • Line 63: warning: exported method DataCategory.UnmarshalJSON should have comment or be unexported (golint)
    • Line 75: warning: exported method DataCategory.Number should have comment or be unexported (golint)
    • Line 79: warning: exported method DataCategory.Name should have comment or be unexported (golint)
    • Line 88: warning: exported method DataCategory.Category should have comment or be unexported (golint)
    • Line 105: warning: exported method DataCategory.CategoryWithPrefix should have comment or be unexported (golint)
    • Line 118: warning: exported function DataCategoryFromString should have comment or be unexported (golint)
    • Line 136: warning: exported function DumpDataCategories 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!