Preparing report...

Report for github.com/valocode/bubbly

A    Great!    Found 79 issues across 96 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!


gocyclo95%

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.


golint19%

Golint is a linter for Go source code.

    • bubbly/store/api/release.go
    • Line 8: warning: exported type ReleaseCreateRequest should have comment or be unexported (golint)
    • Line 15: warning: exported type ReleaseGetRequest should have comment or be unexported (golint)
    • Line 21: warning: exported type ReleaseGetResponse should have comment or be unexported (golint)
    • Line 25: warning: exported type ReleaseRead should have comment or be unexported (golint)
    • Line 34: warning: exported type ArtifactLogRequest should have comment or be unexported (golint)
    • bubbly/ent/schema/adapter.go
    • Line 17: warning: exported type Adapter should have comment or be unexported (golint)
    • Line 21: warning: exported method Adapter.Annotations should have comment or be unexported (golint)
    • Line 28: warning: exported method Adapter.Fields should have comment or be unexported (golint)
    • Line 43: warning: exported method Adapter.Edges should have comment or be unexported (golint)
    • Line 49: warning: exported method Adapter.Indexes should have comment or be unexported (golint)
    • bubbly/ent/schema/project.go
    • Line 14: warning: exported type Project should have comment or be unexported (golint)
    • Line 18: warning: exported method Project.Annotations should have comment or be unexported (golint)
    • Line 25: warning: exported method Project.Fields should have comment or be unexported (golint)
    • Line 34: warning: exported method Project.Edges should have comment or be unexported (golint)
    • Line 43: warning: exported method Project.Indexes should have comment or be unexported (golint)
    • bubbly/ent/schema/release_policy.go
    • Line 16: warning: exported type ReleasePolicy should have comment or be unexported (golint)
    • Line 20: warning: exported method ReleasePolicy.Annotations should have comment or be unexported (golint)
    • Line 27: warning: exported method ReleasePolicy.Fields should have comment or be unexported (golint)
    • Line 55: warning: exported method ReleasePolicy.Edges should have comment or be unexported (golint)
    • bubbly/ent/schema/repo.go
    • Line 14: warning: exported type Repo should have comment or be unexported (golint)
    • Line 18: warning: exported method Repo.Annotations should have comment or be unexported (golint)
    • Line 25: warning: exported method Repo.Fields should have comment or be unexported (golint)
    • Line 37: warning: exported method Repo.Edges should have comment or be unexported (golint)
    • Line 48: warning: exported method Repo.Indexes should have comment or be unexported (golint)
    • bubbly/ent/schema/test_case.go
    • Line 16: warning: exported type TestCase should have comment or be unexported (golint)
    • Line 20: warning: exported method TestCase.Annotations should have comment or be unexported (golint)
    • Line 27: warning: exported method TestCase.Fields should have comment or be unexported (golint)
    • Line 45: warning: exported method TestCase.Edges should have comment or be unexported (golint)
    • bubbly/store/api/component.go
    • Line 8: warning: exported type ComponentVulnerabilityRequest should have comment or be unexported (golint)
    • Line 13: warning: exported type ComponentVulnerability should have comment or be unexported (golint)
    • Line 18: warning: exported type Vulnerability should have comment or be unexported (golint)
    • Line 22: warning: exported type ComponentRead should have comment or be unexported (golint)
    • bubbly/ent/schema/release_policy_violation.go
    • Line 13: warning: exported type ReleasePolicyViolation should have comment or be unexported (golint)
    • Line 17: warning: exported method ReleasePolicyViolation.Annotations should have comment or be unexported (golint)
    • Line 24: warning: exported method ReleasePolicyViolation.Fields should have comment or be unexported (golint)
    • Line 34: warning: exported method ReleasePolicyViolation.Edges should have comment or be unexported (golint)
    • bubbly/ent/schema/test_run.go
    • Line 19: warning: exported type TestRun should have comment or be unexported (golint)
    • Line 23: warning: exported method TestRun.Annotations should have comment or be unexported (golint)
    • Line 30: warning: exported method TestRun.Fields should have comment or be unexported (golint)
    • Line 46: warning: exported method TestRun.Edges should have comment or be unexported (golint)
    • Line 54: warning: exported method TestRun.Hooks should have comment or be unexported (golint)
    • bubbly/store/store.go
    • Line 18: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 83: warning: exported type Store should have comment or be unexported (golint)
    • Line 90: warning: exported method Store.Client should have comment or be unexported (golint)
    • Line 94: warning: exported method Store.Close should have comment or be unexported (golint)
    • bubbly/config/config.go
    • Line 33: warning: exported method ServerConfig.HostURL should have comment or be unexported (golint)
    • Line 45: warning: exported const ProviderSqlite should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported type NATSServerConfig should have comment or be unexported (golint)
    • Line 86: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 92: warning: exported method ClientConfig.V1 should have comment or be unexported (golint)
    • Line 100: warning: exported type CLIConfig should have comment or be unexported (golint)
    • bubbly/ent/schema/helpers.go
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • bubbly/ent/schema/release_vulnerability.go
    • Line 10: warning: exported type ReleaseVulnerability should have comment or be unexported (golint)
    • Line 14: warning: exported method ReleaseVulnerability.Annotations should have comment or be unexported (golint)
    • Line 20: warning: exported method ReleaseVulnerability.Fields should have comment or be unexported (golint)
    • Line 24: warning: exported method ReleaseVulnerability.Edges should have comment or be unexported (golint)
    • bubbly/ent/schema/vulnerability_review.go
    • Line 18: warning: exported method VulnerabilityReview.Annotations should have comment or be unexported (golint)
    • Line 24: warning: exported method VulnerabilityReview.Fields should have comment or be unexported (golint)
    • Line 36: warning: exported method VulnerabilityReview.Edges should have comment or be unexported (golint)
    • bubbly/store/handler.go
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 29: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 72: warning: exported method Handler.Client should have comment or be unexported (golint)
    • Line 76: warning: exported function WithStore should have comment or be unexported (golint)
    • Line 84: warning: exported function WithContext should have comment or be unexported (golint)
    • Line 90: warning: exported function WithClient should have comment or be unexported (golint)
    • Line 96: warning: exported function WithOrgName should have comment or be unexported (golint)
    • Line 102: warning: exported function WithUserID should have comment or be unexported (golint)
    • Line 108: warning: exported function WithValidator should have comment or be unexported (golint)
    • bubbly/adapter/adapter.go
    • Line 23: warning: exported const DefaultTag should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type AdapterResult should have comment or be unexported (golint)
    • Line 65: warning: exported function RunFromFile should have comment or be unexported (golint)
    • Line 73: warning: exported function Run should have comment or be unexported (golint)
    • Line 172: warning: exported function Validate should have comment or be unexported (golint)
    • Line 234: warning: exported function ParseAdpaterID should have comment or be unexported (golint)
    • bubbly/ent/schema/artifact.go
    • Line 21: warning: exported type Artifact should have comment or be unexported (golint)
    • Line 25: warning: exported method Artifact.Annotations should have comment or be unexported (golint)
    • Line 32: warning: exported method Artifact.Fields should have comment or be unexported (golint)
    • Line 57: warning: exported method Artifact.Edges should have comment or be unexported (golint)
    • Line 64: warning: exported method Artifact.Indexes should have comment or be unexported (golint)
    • Line 71: warning: exported method Artifact.Hooks should have comment or be unexported (golint)
    • bubbly/policy/policy.go
    • Line 36: warning: exported type PolicyResult should have comment or be unexported (golint)
    • Line 41: warning: exported function EvaluatePolicy should have comment or be unexported (golint)
    • Line 111: warning: exported function Validate should have comment or be unexported (golint)
    • bubbly/ent/schema/organization.go
    • Line 12: warning: exported type Organization should have comment or be unexported (golint)
    • Line 16: warning: exported method Organization.Annotations should have comment or be unexported (golint)
    • Line 24: warning: exported method Organization.Fields should have comment or be unexported (golint)
    • Line 31: warning: exported method Organization.Edges should have comment or be unexported (golint)
    • bubbly/store/policy.go
    • Line 18: warning: exported method Handler.SaveReleasePolicy should have comment or be unexported (golint)
    • Line 64: warning: exported method Handler.GetReleasePolicy should have comment or be unexported (golint)
    • Line 85: warning: exported method Handler.SetReleasePolicyAffects should have comment or be unexported (golint)
    • Line 109: warning: exported method Handler.EvaluateReleasePolicies should have comment or be unexported (golint)
    • bubbly/env/context.go
    • Line 45: warning: exported function WithBubblyUI should have comment or be unexported (golint)
    • Line 51: warning: exported function WithVersion should have comment or be unexported (golint)
    • bubbly/ent/schema/code_issue.go
    • Line 14: warning: exported type CodeIssue should have comment or be unexported (golint)
    • Line 18: warning: exported method CodeIssue.Annotations should have comment or be unexported (golint)
    • Line 25: warning: exported method CodeIssue.Fields should have comment or be unexported (golint)
    • Line 46: warning: exported method CodeIssue.Edges should have comment or be unexported (golint)
    • bubbly/integrations/cve.go
    • Line 13: warning: exported type CVEResponse should have comment or be unexported (golint)
    • Line 27: warning: exported type CVEItem should have comment or be unexported (golint)
    • Line 41: warning: exported type CVEImpact should have comment or be unexported (golint)
    • Line 53: warning: exported type CVEFetchOptions should have comment or be unexported (golint)
    • Line 62: warning: exported function DefaultCVEFetchOptions should have comment or be unexported (golint)
    • Line 68: warning: exported type CVEHandler should have comment or be unexported (golint)
    • Line 70: warning: exported function InitFetchAllCVEs should have comment or be unexported (golint)
    • Line 98: warning: exported function FetchCVEs should have comment or be unexported (golint)
    • bubbly/store/release.go
    • Line 12: warning: exported method Handler.CreateRelease should have comment or be unexported (golint)
    • Line 25: warning: exported method Handler.GetReleases should have comment or be unexported (golint)
    • Line 76: warning: exported method Handler.LogArtifact should have comment or be unexported (golint)
    • bubbly/server/server.go
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 29: warning: exported function NewWithStore should have comment or be unexported (golint)
    • Line 149: warning: exported type Server should have comment or be unexported (golint)
    • Line 155: warning: exported method Server.Start should have comment or be unexported (golint)
    • bubbly/ent/schema/release_component.go
    • Line 23: warning: exported type ReleaseComponent should have comment or be unexported (golint)
    • Line 27: warning: exported method ReleaseComponent.Annotations should have comment or be unexported (golint)
    • Line 33: warning: exported method ReleaseComponent.Fields should have comment or be unexported (golint)
    • Line 46: warning: exported method ReleaseComponent.Edges should have comment or be unexported (golint)
    • Line 55: warning: exported method ReleaseComponent.Indexes should have comment or be unexported (golint)
    • Line 63: warning: exported method ReleaseComponent.Hooks should have comment or be unexported (golint)
    • bubbly/store/api/policy.go
    • Line 6: warning: exported type ReleasePolicySaveRequest should have comment or be unexported (golint)
    • Line 11: warning: exported type ReleasePolicySetRequest should have comment or be unexported (golint)
    • Line 16: warning: exported type ReleasePolicyGetRequest should have comment or be unexported (golint)
    • Line 20: warning: exported type ReleasePolicyGetResponse should have comment or be unexported (golint)
    • bubbly/ent/schema/component.go
    • Line 15: warning: exported type Component should have comment or be unexported (golint)
    • Line 19: warning: exported method Component.Annotations should have comment or be unexported (golint)
    • Line 26: warning: exported method Component.Fields should have comment or be unexported (golint)
    • Line 46: warning: exported method Component.Edges should have comment or be unexported (golint)
    • Line 55: warning: exported method Component.Indexes should have comment or be unexported (golint)
    • bubbly/ent/schema/gitcommit.go
    • Line 14: warning: exported type GitCommit should have comment or be unexported (golint)
    • Line 18: warning: exported method GitCommit.Annotations should have comment or be unexported (golint)
    • Line 25: warning: exported method GitCommit.Fields should have comment or be unexported (golint)
    • Line 46: warning: exported method GitCommit.Edges should have comment or be unexported (golint)
    • Line 55: warning: exported method GitCommit.Indexes should have comment or be unexported (golint)
    • bubbly/ent/schema/release_entry.go
    • Line 15: warning: exported type ReleaseEntry should have comment or be unexported (golint)
    • Line 19: warning: exported method ReleaseEntry.Annotations should have comment or be unexported (golint)
    • Line 28: warning: exported method ReleaseEntry.Fields should have comment or be unexported (golint)
    • Line 45: warning: exported method ReleaseEntry.Edges should have comment or be unexported (golint)
    • Line 59: warning: exported method ReleaseEntry.Hooks should have comment or be unexported (golint)
    • bubbly/ent/schema/types/types.go
    • Line 11: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 13: warning: exported type Labels should have comment or be unexported (golint)
    • Line 15: warning: exported function MarshalLabels should have comment or be unexported (golint)
    • Line 24: warning: exported function UnmarshalLabels should have comment or be unexported (golint)
    • bubbly/ent/schema/license_use.go
    • Line 10: warning: exported type LicenseUse should have comment or be unexported (golint)
    • Line 14: warning: exported method LicenseUse.Annotations should have comment or be unexported (golint)
    • Line 20: warning: exported method LicenseUse.Fields should have comment or be unexported (golint)
    • Line 24: warning: exported method LicenseUse.Edges should have comment or be unexported (golint)
    • Line 34: warning: exported method LicenseUse.Indexes should have comment or be unexported (golint)
    • bubbly/store/components.go
    • Line 9: warning: exported method Handler.SaveComponentVulnerabilities should have comment or be unexported (golint)
    • Line 42: warning: exported method Handler.GetComponentOrError should have comment or be unexported (golint)
    • Line 53: warning: exported method Handler.GetVulnerabilityOrCreate should have comment or be unexported (golint)
    • bubbly/ent/extensions/entmodel/extension.go
    • Line 23: warning: exported type Extensions should have comment or be unexported (golint)
    • Line 27: warning: exported type Annotation should have comment or be unexported (golint)
    • Line 32: warning: exported function NewExtension should have comment or be unexported (golint)
    • Line 56: warning: exported method Annotation.Name should have comment or be unexported (golint)
    • Line 60: warning: exported function SkipCreate should have comment or be unexported (golint)
    • Line 64: warning: comment on exported function DecodeAnnotation should be of the form "DecodeAnnotation ..." (golint)
    • bubbly/ent/schema/vulnerability.go
    • Line 20: warning: comment on exported type Vulnerability should be of the form "Vulnerability ..." (with optional leading article) (golint)
    • Line 25: warning: exported method Vulnerability.Annotations should have comment or be unexported (golint)
    • Line 32: warning: exported method Vulnerability.Fields should have comment or be unexported (golint)
    • Line 66: warning: exported method Vulnerability.Edges should have comment or be unexported (golint)
    • Line 75: warning: exported method Vulnerability.Indexes should have comment or be unexported (golint)
    • Line 81: warning: exported method Vulnerability.Hooks should have comment or be unexported (golint)
    • bubbly/store/demo.go
    • Line 12: warning: exported method Handler.PopulateStoreWithDummyData should have comment or be unexported (golint)
    • Line 39: warning: exported method Handler.PopulateStoreWithPolicies should have comment or be unexported (golint)
    • bubbly/ent/schema/code_scan.go
    • Line 19: warning: exported type CodeScan should have comment or be unexported (golint)
    • Line 23: warning: exported method CodeScan.Annotations should have comment or be unexported (golint)
    • Line 30: warning: exported method CodeScan.Fields should have comment or be unexported (golint)
    • Line 46: warning: exported method CodeScan.Edges should have comment or be unexported (golint)
    • Line 58: warning: exported method CodeScan.Hooks should have comment or be unexported (golint)
    • bubbly/ent/schema/license.go
    • Line 13: warning: exported type License should have comment or be unexported (golint)
    • Line 17: warning: exported method License.Annotations should have comment or be unexported (golint)
    • Line 23: warning: exported method License.Fields should have comment or be unexported (golint)
    • Line 41: warning: exported method License.Edges should have comment or be unexported (golint)
    • Line 48: warning: exported method License.Indexes should have comment or be unexported (golint)
    • bubbly/store/adapter.go
    • Line 10: warning: exported method Handler.SaveAdapter should have comment or be unexported (golint)
    • Line 40: warning: exported method Handler.GetAdapter should have comment or be unexported (golint)
    • bubbly/config/defaults.go
    • Line 148: warning: exported function DefaultClientConfig should have comment or be unexported (golint)
    • Line 159: warning: exported function DefaultCLIConfig should have comment or be unexported (golint)
    • bubbly/ent/schema/release.go
    • Line 20: warning: exported type Release should have comment or be unexported (golint)
    • Line 24: warning: exported method Release.Annotations should have comment or be unexported (golint)
    • Line 31: warning: exported method Release.Fields should have comment or be unexported (golint)
    • Line 50: warning: exported method Release.Edges should have comment or be unexported (golint)
    • Line 68: warning: exported method Release.Hooks should have comment or be unexported (golint)
    • Line 78: warning: exported method Release.Indexes should have comment or be unexported (golint)
    • bubbly/ent/schema/release_license.go
    • Line 10: warning: exported type ReleaseLicense should have comment or be unexported (golint)
    • Line 14: warning: exported method ReleaseLicense.Annotations should have comment or be unexported (golint)
    • Line 20: warning: exported method ReleaseLicense.Fields should have comment or be unexported (golint)
    • Line 24: warning: exported method ReleaseLicense.Edges should have comment or be unexported (golint)
    • bubbly/release/release.go
    • Line 18: warning: exported type ReleaseSpec should have comment or be unexported (golint)
    • Line 31: warning: exported type ReleaseSpecWrap should have comment or be unexported (golint)
    • Line 35: warning: exported function DefaultReleaseSpec should have comment or be unexported (golint)
    • Line 41: warning: exported function Commit should have comment or be unexported (golint)
    • Line 54: warning: exported function CreateRelease should have comment or be unexported (golint)
    • Line 73: warning: exported function ParseReleaseSpec should have comment or be unexported (golint)
    • Line 166: warning: exported method ReleaseSpec.Validate should have comment or be unexported (golint)
    • Line 200: warning: exported type GitSpec should have comment or be unexported (golint)
    • bubbly/store/errors.go
    • Line 12: warning: exported function HandleValidatorError should have comment or be unexported (golint)
    • Line 33: warning: exported function HandleEntError should have comment or be unexported (golint)
    • Line 53: warning: exported function NewConflictError should have comment or be unexported (golint)
    • Line 80: warning: exported function NewValidationError should have comment or be unexported (golint)
    • Line 110: warning: exported function NewNotFoundError should have comment or be unexported (golint)
    • Line 137: warning: exported function NewServerError should have comment or be unexported (golint)
    • bubbly/store/api/adapter.go
    • Line 8: warning: exported type AdapterSaveRequest should have comment or be unexported (golint)
    • Line 12: warning: exported type AdapterGetRequest should have comment or be unexported (golint)
    • Line 17: warning: exported type AdapterGetResponse should have comment or be unexported (golint)
    • Line 23: warning: exported type CodeScanRequest should have comment or be unexported (golint)
    • Line 28: warning: exported type CodeScan should have comment or be unexported (golint)
    • Line 34: warning: exported type CodeScanIssue should have comment or be unexported (golint)
    • Line 38: warning: exported type CodeScanComponent should have comment or be unexported (golint)
    • Line 45: warning: exported type TestRunRequest should have comment or be unexported (golint)
    • Line 50: warning: exported type TestRun should have comment or be unexported (golint)
    • Line 55: warning: exported type TestRunCase should have comment or be unexported (golint)
    • bubbly/client/client.go
    • Line 15: warning: exported function CreateRelease should have comment or be unexported (golint)
    • Line 19: warning: exported function GetRelease should have comment or be unexported (golint)
    • Line 31: warning: exported function SaveCodeScan should have comment or be unexported (golint)
    • Line 35: warning: exported function SaveTestRun should have comment or be unexported (golint)
    • Line 39: warning: exported function GetAdapter should have comment or be unexported (golint)
    • Line 52: warning: exported function SaveAdapter should have comment or be unexported (golint)
    • Line 56: warning: exported function GetPolicy should have comment or be unexported (golint)
    • Line 64: warning: exported function SavePolicy should have comment or be unexported (golint)
    • Line 68: warning: exported function SetPolicy should have comment or be unexported (golint)
    • bubbly/policy/resolver.go
    • Line 18: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 24: warning: exported type EntResolver should have comment or be unexported (golint)
    • Line 30: warning: exported method EntResolver.Functions should have comment or be unexported (golint)
    • bubbly/test/demo.go
    • Line 20: warning: exported type DemoRepoOptions should have comment or be unexported (golint)
    • Line 42: warning: exported type RepoData should have comment or be unexported (golint)
    • Line 46: warning: exported type ReleaseData should have comment or be unexported (golint)
    • Line 76: warning: exported function SaveSPDXData should have comment or be unexported (golint)
    • Line 97: warning: exported function CreateDummyData should have comment or be unexported (golint)
    • bubbly/integrations/spdx.go
    • Line 17: warning: exported type SpdxRelease should have comment or be unexported (golint)
    • Line 21: warning: exported type SpdxLicenseList should have comment or be unexported (golint)
    • Line 27: warning: exported type SpdxLicense should have comment or be unexported (golint)
    • Line 36: warning: exported function FetchSPDXLicenses should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 3)


misspell96%

Misspell Finds commonly misspelled English words