Preparing report...

Report for github.com/aquasecurity/vuln-list-update

A    Great!    Found 32 issues across 45 files

Tweet

gofmt91%

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!


gocyclo93%

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.


golint40%

Golint is a linter for Go source code.

    • vuln-list-update/photon/photon.go
    • Line 25: warning: exported type Config should have comment or be unexported (golint)
    • Line 32: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 54: warning: exported method Config.Update should have comment or be unexported (golint)
    • vuln-list-update/oracle/oval/oval.go
    • Line 19: warning: exported var ErrInvalidELSAID should have comment or be unexported (golint)
    • Line 29: warning: exported type Config should have comment or be unexported (golint)
    • Line 36: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 45: warning: exported method Config.Update should have comment or be unexported (golint)
    • vuln-list-update/amazon/amazon.go
    • Line 27: warning: exported var LinuxMirrorListURI should have comment or be unexported (golint)
    • Line 67: warning: comment on exported type Date should be of the form "Date ..." (with optional leading article) (golint)
    • Line 90: warning: exported type Config should have comment or be unexported (golint)
    • Line 95: warning: exported method Config.Update should have comment or be unexported (golint)
    • vuln-list-update/utils/utils.go
    • Line 22: warning: exported function CacheDir should have comment or be unexported (golint)
    • Line 31: warning: exported function VulnListDir should have comment or be unexported (golint)
    • Line 35: warning: exported function SaveCVEPerYear should have comment or be unexported (golint)
    • Line 53: warning: exported function Write should have comment or be unexported (golint)
    • Line 118: warning: exported function RandInt should have comment or be unexported (golint)
    • Line 193: warning: exported function IsCommandAvailable should have comment or be unexported (golint)
    • Line 201: warning: exported function Exists should have comment or be unexported (golint)
    • Line 212: warning: exported function Exec should have comment or be unexported (golint)
    • Line 224: warning: exported function LookupEnv should have comment or be unexported (golint)
    • vuln-list-update/debian/tracker/debian.go
    • Line 21: warning: exported type DebianJSON should have comment or be unexported (golint)
    • Line 23: warning: exported type DebianCveMap should have comment or be unexported (golint)
    • Line 25: warning: exported type Client should have comment or be unexported (golint)
    • Line 31: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.Update should have comment or be unexported (golint)
    • vuln-list-update/ubuntu/ubuntu.go
    • Line 47: warning: exported type Vulnerability should have comment or be unexported (golint)
    • Line 64: warning: exported type Package should have comment or be unexported (golint)
    • Line 66: warning: exported type Release should have comment or be unexported (golint)
    • Line 68: warning: exported type Statuses should have comment or be unexported (golint)
    • Line 70: warning: exported type Status should have comment or be unexported (golint)
    • Line 75: warning: exported function Update should have comment or be unexported (golint)
    • vuln-list-update/suse/cvrf/cvrf.go
    • Line 30: warning: exported type Config should have comment or be unexported (golint)
    • Line 37: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 46: warning: exported method Config.Update should have comment or be unexported (golint)
    • vuln-list-update/git/git.go
    • Line 14: warning: exported type Operations should have comment or be unexported (golint)
    • Line 20: warning: exported type Config should have comment or be unexported (golint)
    • Line 23: warning: exported method Config.CloneOrPull should have comment or be unexported (golint)
    • Line 145: warning: exported method Config.Commit should have comment or be unexported (golint)
    • Line 160: warning: exported method Config.Push should have comment or be unexported (golint)
    • Line 169: warning: exported method Config.Clean should have comment or be unexported (golint)
    • Line 183: warning: exported method Config.RemoteBranch should have comment or be unexported (golint)
    • Line 193: warning: exported method Config.Checkout should have comment or be unexported (golint)
    • Line 203: warning: exported method Config.Status should have comment or be unexported (golint)
    • vuln-list-update/ghsa/types.go
    • Line 5: warning: exported type GetVulnerabilitiesQuery should have comment or be unexported (golint)
    • Line 9: warning: exported type SecurityVulnerabilities should have comment or be unexported (golint)
    • Line 13: warning: exported type PageInfo should have comment or be unexported (golint)
    • Line 18: warning: exported type GithubSecurityAdvisory should have comment or be unexported (golint)
    • Line 27: warning: exported type GitHubClient should have comment or be unexported (golint)
    • Line 31: warning: exported type Package should have comment or be unexported (golint)
    • Line 36: warning: exported type Advisory should have comment or be unexported (golint)
    • Line 51: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 56: warning: exported type Reference should have comment or be unexported (golint)
    • Line 60: warning: exported type FirstPatchedVersion should have comment or be unexported (golint)
    • Line 64: warning: exported type Version should have comment or be unexported (golint)
    • Line 69: warning: exported type GithubSecurityAdvisoryJson should have comment or be unexported (golint)
    • vuln-list-update/redhat/oval/redhat.go
    • Line 37: warning: exported var ErrInvalidRHSAFormat should have comment or be unexported (golint)
    • Line 41: warning: exported type Config should have comment or be unexported (golint)
    • Line 48: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 57: warning: exported method Config.Update should have comment or be unexported (golint)
    • vuln-list-update/suse/cvrf/types.go
    • Line 3: warning: exported type Cvrf should have comment or be unexported (golint)
    • Line 12: warning: exported type DocumentTracking should have comment or be unexported (golint)
    • Line 21: warning: exported type DocumentNote should have comment or be unexported (golint)
    • Line 27: warning: exported type ProductTree should have comment or be unexported (golint)
    • Line 31: warning: exported type Relationship should have comment or be unexported (golint)
    • Line 37: warning: exported type Revision should have comment or be unexported (golint)
    • Line 43: warning: exported type Vulnerability should have comment or be unexported (golint)
    • Line 52: warning: exported type Threat should have comment or be unexported (golint)
    • Line 57: warning: exported type Reference should have comment or be unexported (golint)
    • Line 62: warning: exported type Status should have comment or be unexported (golint)
    • Line 67: warning: exported type ScoreSet should have comment or be unexported (golint)
    • vuln-list-update/cwe/cwe_types.go
    • Line 10: warning: exported type RelatedAttackPattern should have comment or be unexported (golint)
    • Line 19: warning: exported type Mitigation should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type PhaseEnumeration should be of the form "PhaseEnumeration ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported type MitigationStrategyEnumeration should be of the form "MitigationStrategyEnumeration ..." (with optional leading article) (golint)
    • Line 45: warning: exported type Consequence should have comment or be unexported (golint)
    • Line 50: warning: comment on exported type TechnicalImpactEnumeration should be of the form "TechnicalImpactEnumeration ..." (with optional leading article) (golint)
    • Line 53: warning: comment on exported type ScopeEnumeration should be of the form "ScopeEnumeration ..." (with optional leading article) (golint)
    • Line 55: warning: exported type StructuredTextType should have comment or be unexported (golint)
    • Line 57: warning: exported method StructuredTextType.MarshalXML should have comment or be unexported (golint)
    • Line 67: warning: exported method StructuredTextType.UnmarshalXML should have comment or be unexported (golint)
    • Line 83: warning: exported type WeaknessCatalog should have comment or be unexported (golint)
    • Line 87: warning: exported method WeaknessCatalog.MarshalXML should have comment or be unexported (golint)
    • Line 95: warning: exported method WeaknessCatalog.UnmarshalXML should have comment or be unexported (golint)
    • Line 104: warning: exported type WeaknessType should have comment or be unexported (golint)
    • Line 114: warning: exported type Weaknesses should have comment or be unexported (golint)
    • vuln-list-update/redhat/oval/types.go
    • Line 7: warning: exported type OvalDefinitions should have comment or be unexported (golint)
    • Line 17: warning: exported type Generator should have comment or be unexported (golint)
    • Line 25: warning: exported type Definitions should have comment or be unexported (golint)
    • Line 29: warning: exported type Definition should have comment or be unexported (golint)
    • Line 37: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 45: warning: exported type Advisory should have comment or be unexported (golint)
    • Line 56: warning: exported type Criteria should have comment or be unexported (golint)
    • Line 62: warning: exported type Criterion should have comment or be unexported (golint)
    • Line 67: warning: exported type Affected should have comment or be unexported (golint)
    • Line 72: warning: exported type Reference should have comment or be unexported (golint)
    • Line 78: warning: exported type Issued should have comment or be unexported (golint)
    • Line 82: warning: exported type Updated should have comment or be unexported (golint)
    • Line 86: warning: exported type Cve should have comment or be unexported (golint)
    • Line 96: warning: exported type Bugzilla should have comment or be unexported (golint)
    • Line 101: warning: exported type State should have comment or be unexported (golint)
    • Line 106: warning: exported type Object should have comment or be unexported (golint)
    • Line 111: warning: exported type RpminfoTest should have comment or be unexported (golint)
    • Line 121: warning: exported type RpminfoObject should have comment or be unexported (golint)
    • Line 127: warning: exported type RpminfoState should have comment or be unexported (golint)
    • Line 135: warning: exported type SignatureKeyID should have comment or be unexported (golint)
    • Line 140: warning: exported type Arch should have comment or be unexported (golint)
    • Line 146: warning: exported type Evr should have comment or be unexported (golint)
    • Line 152: warning: exported type Tests should have comment or be unexported (golint)
    • Line 159: warning: exported type Textfilecontent54Test should have comment or be unexported (golint)
    • Line 168: warning: exported type RpmverifyfileTest should have comment or be unexported (golint)
    • Line 177: warning: exported type UnameTest should have comment or be unexported (golint)
    • Line 186: warning: exported type Objects should have comment or be unexported (golint)
    • Line 193: warning: exported type UnameObject should have comment or be unexported (golint)
    • Line 199: warning: exported type Filepath should have comment or be unexported (golint)
    • Line 204: warning: exported type Pattern should have comment or be unexported (golint)
    • Line 209: warning: exported type Instance should have comment or be unexported (golint)
    • Line 215: warning: exported type Textfilecontent54Object should have comment or be unexported (golint)
    • Line 222: warning: exported type Behaviors should have comment or be unexported (golint)
    • Line 236: warning: exported type RpmverifyfileObject should have comment or be unexported (golint)
    • Line 247: warning: exported type Epoch should have comment or be unexported (golint)
    • Line 252: warning: exported type Release should have comment or be unexported (golint)
    • Line 256: warning: exported type Name should have comment or be unexported (golint)
    • Line 261: warning: exported type States should have comment or be unexported (golint)
    • Line 268: warning: exported type Version should have comment or be unexported (golint)
    • Line 273: warning: exported type RpmverifyfileState should have comment or be unexported (golint)
    • Line 280: warning: exported type Textfilecontent54State should have comment or be unexported (golint)
    • Line 286: warning: exported type Text should have comment or be unexported (golint)
    • Line 291: warning: exported type OsRelease should have comment or be unexported (golint)
    • Line 296: warning: exported type UnameState should have comment or be unexported (golint)
    • vuln-list-update/redhat/securitydataapi/types.go
    • Line 9: warning: exported type RedhatEntry should have comment or be unexported (golint)
    • Line 13: warning: exported type RedhatCVEJSON should have comment or be unexported (golint)
    • Line 33: warning: exported method RedhatCVEJSON.UnmarshalJSON should have comment or be unexported (golint)
    • Line 103: warning: exported method RedhatCVEJSON.MarshalJSON should have comment or be unexported (golint)
    • Line 118: warning: exported type RedhatCVEJSONAffectedReleaseArray should have comment or be unexported (golint)
    • Line 122: warning: exported type RedhatCVEJSONAffectedReleaseObject should have comment or be unexported (golint)
    • Line 126: warning: exported type RedhatCVEJSONPackageStateArray should have comment or be unexported (golint)
    • Line 130: warning: exported type RedhatCVEJSONPackageStateObject should have comment or be unexported (golint)
    • Line 134: warning: exported type RedhatCVEJSONMitigationObject should have comment or be unexported (golint)
    • Line 139: warning: exported type RedhatDetail should have comment or be unexported (golint)
    • Line 144: warning: exported type RedhatReference should have comment or be unexported (golint)
    • Line 149: warning: exported type RedhatBugzilla should have comment or be unexported (golint)
    • Line 157: warning: exported type RedhatCvss should have comment or be unexported (golint)
    • Line 164: warning: exported type RedhatCvss3 should have comment or be unexported (golint)
    • Line 171: warning: exported type RedhatAffectedRelease should have comment or be unexported (golint)
    • Line 180: warning: exported type RedhatPackageState should have comment or be unexported (golint)
    • vuln-list-update/utils/last_updated.go
    • Line 21: warning: exported type LastUpdated should have comment or be unexported (golint)
    • Line 23: warning: exported function GetLastUpdatedDate should have comment or be unexported (golint)
    • Line 55: warning: exported function SetLastUpdatedDate should have comment or be unexported (golint)
    • vuln-list-update/oracle/oval/types.go
    • Line 3: warning: exported type Oval should have comment or be unexported (golint)
    • Line 7: warning: exported type Definition should have comment or be unexported (golint)
    • Line 17: warning: exported type Reference should have comment or be unexported (golint)
    • Line 23: warning: exported type Cve should have comment or be unexported (golint)
    • Line 29: warning: exported type Criteria should have comment or be unexported (golint)
    • Line 35: warning: exported type Criterion should have comment or be unexported (golint)
    • vuln-list-update/glad/glad.go
    • Line 28: warning: exported type Updater should have comment or be unexported (golint)
    • Line 34: warning: exported function NewUpdater should have comment or be unexported (golint)
    • Line 42: warning: exported method Updater.Update should have comment or be unexported (golint)
    • vuln-list-update/cwe/cwe.go
    • Line 18: warning: exported type CWEConfig should have comment or be unexported (golint)
    • Line 28: warning: exported function NewCWEConfig should have comment or be unexported (golint)
    • Line 32: warning: exported function NewCWEWithConfig should have comment or be unexported (golint)
    • Line 40: warning: exported method CWEConfig.Update should have comment or be unexported (golint)
    • vuln-list-update/alpine/alpine.go
    • Line 26: warning: exported type Updater should have comment or be unexported (golint)
    • Line 35: warning: exported function WithVulnListDir should have comment or be unexported (golint)
    • Line 39: warning: exported function WithAppFs should have comment or be unexported (golint)
    • Line 43: warning: exported function WithBaseURL should have comment or be unexported (golint)
    • Line 47: warning: exported function WithRetry should have comment or be unexported (golint)
    • Line 51: warning: exported function NewUpdater should have comment or be unexported (golint)
    • Line 66: warning: exported method Updater.Update should have comment or be unexported (golint)
    • vuln-list-update/arch/archlinux.go
    • Line 42: warning: exported function WithURL should have comment or be unexported (golint)
    • Line 46: warning: exported function WithDir should have comment or be unexported (golint)
    • Line 50: warning: exported function WithRetry should have comment or be unexported (golint)
    • Line 54: warning: exported type ArchLinux should have comment or be unexported (golint)
    • Line 58: warning: exported function NewArchLinux should have comment or be unexported (golint)
    • Line 74: warning: exported method ArchLinux.Update should have comment or be unexported (golint)
    • vuln-list-update/ghsa/ghsa.go
    • Line 21: warning: comment on exported type SecurityAdvisoryEcosystem should be of the form "SecurityAdvisoryEcosystem ..." (with optional leading article) (golint)
    • Line 25: warning: exported var Composer should have comment or be unexported (golint)
    • Line 45: warning: exported type Config should have comment or be unexported (golint)
    • Line 52: warning: exported type GithubClient should have comment or be unexported (golint)
    • Line 56: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 65: warning: exported method Config.Update 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!


misspell91%

Misspell Finds commonly misspelled English words

    • vuln-list-update/oracle/oval/types_test.go
    • Line 19: warning: "criterias" is a misspelling of "criteria" (misspell)
    • Line 47: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 50: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 53: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 65: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 77: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 89: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 101: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 113: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 125: warning: "Criterias" is a misspelling of "Criteria" (misspell)
    • Line 137: warning: "Criterias" is a misspelling of "Criteria" (misspell)