Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: ensure that all fields in (un)marshaled structs have tags #393

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ linters:
- makezero
- mirror
- misspell
# - musttag
- musttag
- nakedret
# - nilerr
# - nilnil
Expand Down
10 changes: 5 additions & 5 deletions detector/govulncheck/binary/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ type govulncheckFrame struct {
// in https://go.dev/security/vuln/database#schema.
type osvEntry struct {
// ID is a unique identifier for the vulnerability.
ID string
ID string `json:"id"`
// Aliases is a list of IDs for the same vulnerability in other
// databases (CVE, GHSA)
Aliases []string
Aliases []string `json:"aliases"`
// Summary gives a one-line, English textual summary of the vulnerability.
// It is recommended that this field be kept short, on the order of no more
// than 120 characters.
Summary string
Summary string `json:"summary"`
// Details contains additional English textual details about the vulnerability.
Details string
Details string `json:"details"`
// Affected contains information on the modules and versions
// affected by the vulnerability.
Affected []affected
Affected []affected `json:"affects"`
}

type affected struct {
Expand Down
Loading