Preparing report...

Report for github.com/CycloneDX/cyclonedx-gomod

A+    Excellent!    Found 23 issues across 51 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!


golint54%

Golint is a linter for Go source code.

    • cyclonedx-gomod/internal/gomod/download.go
    • Line 30: warning: comment on exported type ModuleDownload should be of the form "ModuleDownload ..." (with optional leading article) (golint)
    • Line 39: warning: exported method ModuleDownload.Coordinates should have comment or be unexported (golint)
    • Line 47: warning: exported function Download should have comment or be unexported (golint)
    • cyclonedx-gomod/internal/cli/options/options.go
    • Line 64: warning: exported method LogOptions.RegisterFlags should have comment or be unexported (golint)
    • Line 68: warning: exported method LogOptions.Validate should have comment or be unexported (golint)
    • Line 78: warning: exported method OutputOptions.RegisterFlags should have comment or be unexported (golint)
    • Line 83: warning: exported method OutputOptions.Validate should have comment or be unexported (golint)
    • Line 99: warning: exported method SBOMOptions.RegisterFlags should have comment or be unexported (golint)
    • Line 107: warning: exported method SBOMOptions.Validate should have comment or be unexported (golint)
    • cyclonedx-gomod/internal/gomod/package.go
    • Line 34: warning: comment on exported type Package should be of the form "Package ..." (with optional leading article) (golint)
    • Line 58: warning: exported type PackageError should have comment or be unexported (golint)
    • Line 66: warning: exported function LoadPackage should have comment or be unexported (golint)
    • Line 91: warning: exported function LoadModulesFromPackages should have comment or be unexported (golint)
    • cyclonedx-gomod/internal/sbom/convert/file/file.go
    • Line 28: warning: exported type Option should have comment or be unexported (golint)
    • Line 30: warning: exported function WithHashes should have comment or be unexported (golint)
    • Line 42: warning: exported function WithScope should have comment or be unexported (golint)
    • Line 49: warning: exported function ToComponent should have comment or be unexported (golint)
    • cyclonedx-gomod/internal/sbom/sbom.go
    • Line 40: warning: exported function BuildDependencyGraph should have comment or be unexported (golint)
    • Line 68: warning: exported function BuildToolMetadata should have comment or be unexported (golint)
    • Line 88: warning: exported function BuildStdComponent should have comment or be unexported (golint)
    • Line 127: warning: exported function CalculateFileHashes should have comment or be unexported (golint)
    • Line 189: warning: exported const PropertyPrefix should have comment or be unexported (golint)
    • Line 191: warning: exported function NewProperty should have comment or be unexported (golint)
    • cyclonedx-gomod/internal/gomod/module.go
    • Line 37: warning: comment on exported type Module should be of the form "Module ..." (with optional leading article) (golint)
    • Line 54: warning: exported method Module.Coordinates should have comment or be unexported (golint)
    • Line 62: warning: exported method Module.Hash should have comment or be unexported (golint)
    • Line 71: warning: exported method Module.PackageURL should have comment or be unexported (golint)
    • Line 83: warning: exported function LoadModule should have comment or be unexported (golint)
    • Line 103: warning: exported function LoadModules 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!


misspell98%

Misspell Finds commonly misspelled English words