Skip to content

Commit

Permalink
Fix staticcheck errors
Browse files Browse the repository at this point in the history
Fixed the following staticcheck errors:
filters/auth/grantcallback.go:11:1: comment on exported const GrantCallbackName should be of the form "GrantCallbackName ..." (ST1022)
filters/auth/grantclaimsquery.go:12:1: comment on exported const GrantClaimsQueryName should be of the form "GrantClaimsQueryName ..." (ST1022)
filters/diag/absorb.go:14:1: comment on exported const AbsorbName should be of the form "AbsorbName ..." (ST1022)
filters/diag/absorb.go:17:1: comment on exported const AbsorbSilentName should be of the form "AbsorbSilentName ..." (ST1022)
filters/rfc/rfc.go:8:1: comment on exported const Name should be of the form "Name ..." (ST1022)
filters/tee/teeloopback.go:9:1: comment on exported const FilterName should be of the form "FilterName ..." (ST1022)
predicates/cookie/cookie.go:14:1: comment on exported const Name should be of the form "Name ..." (ST1022)
predicates/methods/methods.go:29:1: comment on exported const Name should be of the form "Name ..." (ST1022)

Signed-off-by: Peter Klijn <[email protected]>
  • Loading branch information
peterklijn committed Oct 1, 2021
1 parent c87a70c commit cbbc53e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions filters/auth/grantcallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"golang.org/x/oauth2"
)

// GrantCallbackName is the filter name
// Deprecated, use filters.GrantCallbackName instead
const GrantCallbackName = filters.GrantCallbackName

Expand Down
1 change: 1 addition & 0 deletions filters/auth/grantclaimsquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package auth

import "github.com/zalando/skipper/filters"

// GrantClaimsQueryName is the filter name
// Deprecated, use filters.GrantClaimsQueryName instead
const GrantClaimsQueryName = filters.GrantClaimsQueryName

Expand Down
2 changes: 2 additions & 0 deletions filters/diag/absorb.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import (
"github.com/zalando/skipper/logging"
)

// AbsorbName contains the name of the absorb filter.
// Deprecated, use filters.AbsorbName instead
const AbsorbName = filters.AbsorbName

// AbsorbSilentName contains the name of the absorbSilent filter.
// Deprecated, use filters.AbsorbSilentName instead
const AbsorbSilentName = filters.AbsorbSilentName

Expand Down
1 change: 1 addition & 0 deletions filters/rfc/rfc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/zalando/skipper/rfc"
)

// Name is the filter name
// Deprecated, use filters.RfcPathName instead
const Name = filters.RfcPathName

Expand Down
1 change: 1 addition & 0 deletions filters/tee/teeloopback.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
teepredicate "github.com/zalando/skipper/predicates/tee"
)

// FilterName is the filter name
// Deprecated, use filters.TeeLoopbackName instead
const FilterName = filters.TeeLoopbackName

Expand Down
1 change: 1 addition & 0 deletions predicates/cookie/cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/zalando/skipper/routing"
)

// Name the predicate can be referenced in eskip by the name "Cookie".
// Deprecated, use predicates.CookieName instead
const Name = predicates.CookieName

Expand Down
1 change: 1 addition & 0 deletions predicates/methods/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/zalando/skipper/routing"
)

// Name is the predicate name
// Deprecated, use predicates.MethodsName instead
const Name = predicates.MethodsName

Expand Down

0 comments on commit cbbc53e

Please sign in to comment.