ci: use revive instead of golint (#2370)

This commit is contained in:
Caleb Doxsey 2021-07-16 10:26:47 -06:00 committed by GitHub
parent d45a7e9996
commit 2a5dcc2848
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 11 deletions

View file

@ -29,8 +29,6 @@ linters-settings:
min-complexity: 15
goimports:
local-prefixes: github.com/pomerium/pomerium
golint:
min-confidence: 0
govet:
check-shadowing: false
lll:
@ -55,7 +53,6 @@ linters:
- errcheck
- gofmt
- goimports
- golint
- goprintffuncname
- gosec
- gosimple
@ -65,6 +62,7 @@ linters:
- misspell
- nakedret
- nolintlint
- revive
- rowserrcheck
- staticcheck
- structcheck
@ -144,8 +142,6 @@ issues:
# EXC0001 errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
exclude-rules:
# https://github.com/go-critic/go-critic/issues/926
- linters:

View file

@ -58,15 +58,12 @@ func newDeltaCollection(p *Provider) *deltaCollection {
//
// Only the changed groups/members are returned. Removed groups/members have an @removed property.
func (dc *deltaCollection) Sync(ctx context.Context) error {
if err := dc.syncGroups(ctx); err != nil {
err := dc.syncGroups(ctx)
if err != nil {
return err
}
if err := dc.syncUsers(ctx); err != nil {
return err
}
return nil
return dc.syncUsers(ctx)
}
func (dc *deltaCollection) syncGroups(ctx context.Context) error {