core/ci: update linting (#4844)

* core/ci: update linting

* re-add exportloopref

* re-add gocheckcompilerdirectives

* re-add stylecheck

* re-add usestdlibvars

* upgrade lint

---------

Co-authored-by: Denis Mishin <dmishin@pomerium.com>
This commit is contained in:
Caleb Doxsey 2023-12-14 10:07:54 -07:00 committed by GitHub
parent b66634d1e6
commit a2fd95aae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 132 additions and 214 deletions

View file

@ -46,7 +46,7 @@ func SaveBootstrapConfigToFile(src *cluster_api.BootstrapConfig, fp string, ciph
}
ciphertext := cryptutil.Encrypt(cipher, plaintext, nil)
err = os.WriteFile(fp, ciphertext, 0600)
err = os.WriteFile(fp, ciphertext, 0o600)
if err != nil {
return fmt.Errorf("write bootstrap config: %w", err)
}

View file

@ -12,16 +12,12 @@ import (
cluster_api "github.com/pomerium/pomerium/pkg/zero/cluster"
)
var (
_ = config.Source(new(source))
)
var _ = config.Source(new(source))
var (
cmpOpts = []cmp.Option{
cmpopts.IgnoreUnexported(config.Options{}),
cmpopts.EquateEmpty(),
}
)
var cmpOpts = []cmp.Option{
cmpopts.IgnoreUnexported(config.Options{}),
cmpopts.EquateEmpty(),
}
type source struct {
cfg atomicutil.Value[*config.Config]