diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc45dfe..b4f54a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,6 @@ jobs: uses: xmidt-org/shared-go/.github/workflows/ci.yml@6dd1fab69f841fbea827a053e21fa83ea94774d9 # v3.0.0 with: copyright-skip: true - style-skip: true go-generate-deps: golang.org/x/tools/cmd/stringer@latest release-type: library secrets: inherit diff --git a/acquire/auth.go b/acquire/auth.go index 6bb2232..ffa73e2 100644 --- a/acquire/auth.go +++ b/acquire/auth.go @@ -24,9 +24,9 @@ import ( "net/http" ) -//ErrEmptyCredentials is returned whenever an Acquirer is attempted to -//be built with empty credentials. -//Use DefaultAcquirer for such no-op use case. +// ErrEmptyCredentials is returned whenever an Acquirer is attempted to +// be built with empty credentials. +// Use DefaultAcquirer for such no-op use case. var ErrEmptyCredentials = errors.New("Empty credentials are not valid") // Acquirer gets an Authorization value that can be added to an http request. @@ -39,12 +39,12 @@ type Acquirer interface { // DefaultAcquirer is a no-op Acquirer. type DefaultAcquirer struct{} -//Acquire returns the zero values of the return types. +// Acquire returns the zero values of the return types. func (d *DefaultAcquirer) Acquire() (string, error) { return "", nil } -//AddAuth adds an auth value to the Authorization header of an http request. +// AddAuth adds an auth value to the Authorization header of an http request. func AddAuth(r *http.Request, acquirer Acquirer) error { if r == nil { return errors.New("can't add authorization to nil request") @@ -67,7 +67,7 @@ func AddAuth(r *http.Request, acquirer Acquirer) error { return nil } -//FixedValueAcquirer implements Acquirer with a constant authorization value. +// FixedValueAcquirer implements Acquirer with a constant authorization value. type FixedValueAcquirer struct { authValue string } diff --git a/attributes.go b/attributes.go index 0a98c75..430a8bf 100644 --- a/attributes.go +++ b/attributes.go @@ -28,8 +28,8 @@ func (a BasicAttributes) Get(key string) (interface{}, bool) { return v, ok } -//NewAttributes builds an Attributes instance with -//the given map as datasource. +// NewAttributes builds an Attributes instance with +// the given map as datasource. func NewAttributes(m map[string]interface{}) Attributes { return BasicAttributes(m) } diff --git a/basculechecks/metricvalidator.go b/basculechecks/metricvalidator.go index 9a41971..9187ea4 100644 --- a/basculechecks/metricvalidator.go +++ b/basculechecks/metricvalidator.go @@ -44,7 +44,7 @@ var ( // CapabilitiesChecker is an object that can determine if a request is // authorized given a bascule.Authentication object. If it's not authorized, an -// error is given for logging and metrics. +// error is given for logging and metrics. type CapabilitiesChecker interface { CheckAuthentication(auth bascule.Authentication, vals ParsedValues) error }