Preparing report...

Report for github.com/max-planck-innovation-competition/go-uspto

(v0.0.0-20220214133458-2ee87148937d)

A+    Excellent!    Found 11 issues across 21 files

Tweet

gofmt95%

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!


golint47%

Golint is a linter for Go source code.

    • pkg/uspto/download_bulk_file.go
    • Line 14: warning: exported var ErrNoFilenameInUrl should have comment or be unexported (golint)
    • Line 15: warning: exported var ErrFileIsNoZip should have comment or be unexported (golint)
    • Line 17: warning: exported function DownloadBulkFile should have comment or be unexported (golint)
    • pkg/uspto/process_xml_simple.go
    • Line 15: warning: exported var ErrCanNotFindParser should have comment or be unexported (golint)
    • Line 17: warning: exported function ProcessXMLFileSimple should have comment or be unexported (golint)
    • pkg/uspto/document_aliases.go
    • Line 12: warning: exported var ErrEmptyDocumentNumber should have comment or be unexported (golint)
    • Line 13: warning: exported var ErrEmptyKind should have comment or be unexported (golint)
    • Line 14: warning: exported var ErrEmptyPublicationDate should have comment or be unexported (golint)
    • Line 80: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 101: warning: exported method UsptoPatentDocumentSimple.GenerateAliases should have comment or be unexported (golint)
    • pkg/uspto/get_bulk_file_list.go
    • Line 14: warning: exported type Product should have comment or be unexported (golint)
    • Line 17: warning: exported const XmlPatentGrantsOnlyXML should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type BulkFileResponse should have comment or be unexported (golint)
    • pkg/uspto/patent_simple.go
    • Line 11: warning: exported type UsptoPatentDocumentSimple should have comment or be unexported (golint)
    • Line 36: warning: exported type Country should have comment or be unexported (golint)
    • Line 38: warning: exported type Title should have comment or be unexported (golint)
    • Line 43: warning: exported type Abstract should have comment or be unexported (golint)
    • Line 48: warning: exported type Claim should have comment or be unexported (golint)
    • Line 54: warning: exported type Description should have comment or be unexported (golint)
    • Line 59: warning: exported type Citation should have comment or be unexported (golint)
    • Line 65: warning: exported type Inventor should have comment or be unexported (golint)
    • Line 76: warning: exported type Owner should have comment or be unexported (golint)
    • Line 85: warning: exported type Representative should have comment or be unexported (golint)
    • Line 93: warning: exported type ClassificationSystem should have comment or be unexported (golint)
    • Line 95: warning: exported const IPC should have comment or be unexported (golint)
    • Line 96: warning: exported const CPC should have comment or be unexported (golint)
    • Line 97: warning: exported const US should have comment or be unexported (golint)
    • Line 99: warning: exported type ClassificationItem should have comment or be unexported (golint)
    • Line 120: warning: exported function NewClassificationItemFromString 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!