Skip to content

Commit

Permalink
fix: linter complaining about missing gofmt -s (#183)
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <nscuro@protonmail.com>

Signed-off-by: nscuro <nscuro@protonmail.com>
  • Loading branch information
nscuro committed Aug 10, 2022
1 parent e62fb7e commit 038a657
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions internal/gomod/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import (
// Note that this method doesn't work when replacements have already been applied to the module slice.
// Consider a go.mod file containing the following lines:
//
// require golang.org/x/crypto v0.0.0-xxx-xxx
// replace golang.org/x/crypto => github.com/ProtonMail/go-crypto v0.0.0-xxx-xxx
// require golang.org/x/crypto v0.0.0-xxx-xxx
// replace golang.org/x/crypto => github.com/ProtonMail/go-crypto v0.0.0-xxx-xxx
//
// Querying `go mod why -m` with `golang.org/x/crypto` yields the expected result, querying it with
// `github.com/ProtonMail/go-crypto` will always yield `(main module does not need github.com/ProtonMail/go-crypto)`.
Expand Down
8 changes: 4 additions & 4 deletions pkg/generate/app/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ func parseTagsFromGoFlags(goflags string) (tags []string) {
//
// + moduleDir
// |-+ cmd
// |-+ mainDir <- application name
// |-+ main.go
// ..|-+ mainDir <- application name
// ....|-+ main.go
//
// The package URLs for the above examples would look like this:
// 1. pkg:golang/.../module@version (untouched)
// 2. pkg:golang/.../module@version#cmd/mainDir (with sub path)
// 1. pkg:golang/.../module@version (untouched)
// 2. pkg:golang/.../module@version#cmd/mainDir (with sub path)
//
// If the package URL is updated, the BOM reference is as well.
// All places within the BOM that reference the main component will be updated accordingly.
Expand Down
15 changes: 8 additions & 7 deletions pkg/generate/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ import cdx "github.com/CycloneDX/cyclonedx-go"
//
// Generators MUST only consider facts. Results MUST be reproducible.
// The returned BOM MUST NOT include any of the following elements:
// - SerialNumber
// - Metadata.Timestamp
// - Metadata.Tools
// - Metadata.Authors
// - Metadata.Manufacture
// - Metadata.Supplier
// - Metadata.Licenses
// - SerialNumber
// - Metadata.Timestamp
// - Metadata.Tools
// - Metadata.Authors
// - Metadata.Manufacture
// - Metadata.Supplier
// - Metadata.Licenses
//
// It is the responsibility of the caller to ensure that these elements
// are set according to their context and use case.
//
Expand Down

0 comments on commit 038a657

Please sign in to comment.