Skip to content

Commit 2207d82

Browse files
authored
chore: golangci-lint issues detected
1 parent f58fa0a commit 2207d82

1 file changed

Lines changed: 135 additions & 0 deletions

File tree

golangci_output.txt

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
storage/kubernetes/k8sapi/time.go:76:42: t.Format undefined (type Time has no field or method Format) (typecheck)
2+
copied, _ := time.Parse(time.RFC3339, t.Format(time.RFC3339))
3+
^
4+
storage/kubernetes/k8sapi/time.go:127:24: t.UTC undefined (type Time has no field or method UTC) (typecheck)
5+
return json.Marshal(t.UTC().Format(time.RFC3339))
6+
^
7+
storage/kubernetes/k8sapi/time.go:137:11: t.UTC undefined (type Time has no field or method UTC) (typecheck)
8+
return t.UTC().Format(time.RFC3339), nil
9+
^
10+
storage/ent/schema/keys.go:35:29: undefined: jose (typecheck)
11+
field.JSON("signing_key", jose.JSONWebKey{}),
12+
^
13+
storage/ent/schema/keys.go:36:33: undefined: jose (typecheck)
14+
field.JSON("signing_key_pub", jose.JSONWebKey{}),
15+
^
16+
cmd/dex/config.go:114:5: p.Hash undefined (type *password has no field or method Hash) (typecheck)
17+
p.Hash = []byte(data.Hash)
18+
^
19+
cmd/dex/config.go:126:4: p.Hash undefined (type *password has no field or method Hash) (typecheck)
20+
p.Hash = hashBytes
21+
^
22+
cmd/dex/serve.go:471:3: undefined: api (typecheck)
23+
api.RegisterDexServer(grpcSrv, server.NewAPI(serverConfig.Storage, logger, version))
24+
^
25+
connector/keystone/keystone.go:1: : # github.com/dexidp/dex/connector/keystone [github.com/dexidp/dex/connector/keystone.test]
26+
connector/keystone/keystone_test.go:54:17: undefined: domain
27+
connector/keystone/keystone_test.go:222:30: cannot use testDomain (untyped string constant "default") as domainKeystone value in struct literal
28+
connector/keystone/keystone_test.go:299:32: cannot use tt.input.domain (variable of type string) as domainKeystone value in struct literal
29+
connector/keystone/keystone_test.go:336:30: cannot use testDomain (untyped string constant "default") as domainKeystone value in struct literal
30+
connector/keystone/keystone_test.go:361:30: cannot use testDomain (untyped string constant "default") as domainKeystone value in struct literal
31+
connector/keystone/keystone_test.go:391:30: cannot use testDomain (untyped string constant "default") as domainKeystone value in struct literal
32+
connector/keystone/keystone_test.go:427:30: cannot use testDomain (untyped string constant "default") as domainKeystone value in struct literal (typecheck)
33+
// Package keystone provides authentication strategy using Keystone.
34+
connector/ldap/ldap.go:215:11: undefined: ldap (typecheck)
35+
Entry ldap.Entry `json:"entry"`
36+
^
37+
connector/ldap/ldap.go:313:57: undefined: ldap (typecheck)
38+
func (c *ldapConnector) do(_ context.Context, f func(c *ldap.Conn) error) error {
39+
^
40+
connector/ldap/ldap.go:350:17: undefined: ldap (typecheck)
41+
func getAttrs(e ldap.Entry, name string) []string {
42+
^
43+
connector/oidc/oidc_test.go:502:20: undefined: jose (typecheck)
44+
func newToken(key *jose.JSONWebKey, claims map[string]interface{}) (string, error) {
45+
^
46+
connector/openshift/openshift.go:207:96: user.Name undefined (type user has no field or method Name) (typecheck)
47+
return identity, fmt.Errorf("openshift: user %q is not in any of the required groups", user.Name)
48+
^
49+
connector/openshift/openshift.go:212:27: user.UID undefined (type user has no field or method UID) (typecheck)
50+
UserID: user.UID,
51+
^
52+
connector/openshift/openshift.go:213:27: user.Name undefined (type user has no field or method Name) (typecheck)
53+
Username: user.Name,
54+
^
55+
connector/openshift/openshift.go:214:27: user.Name undefined (type user has no field or method Name) (typecheck)
56+
PreferredUsername: user.Name,
57+
^
58+
connector/openshift/openshift_test.go:81:20: u.Name undefined (type user has no field or method Name) (typecheck)
59+
expectEquals(t, u.Name, "jdoe")
60+
^
61+
connector/openshift/openshift_test.go:139:20: u.Name undefined (type user has no field or method Name) (typecheck)
62+
expectEquals(t, u.Name, "jdoe")
63+
^
64+
server/server.go:18:2: could not import sync/atomic (-: could not load export data: internal error in importing "sync/atomic" (unsupported version: 2); please report an issue) (typecheck)
65+
"sync/atomic"
66+
^
67+
server/api.go:41:2: undefined: api (typecheck)
68+
api.UnimplementedDexServer
69+
^
70+
server/api_test.go:26:2: undefined: api (typecheck)
71+
api.DexClient
72+
^
73+
server/rotation.go:98:17: k.GetKeys undefined (type keyRotator has no field or method GetKeys) (typecheck)
74+
keys, err := k.GetKeys()
75+
^
76+
server/templates.go:57:11: undefined: sprig (typecheck)
77+
funcs := sprig.FuncMap()
78+
^
79+
server/api_test.go:86:25: client.CreatePassword undefined (type *apiClient has no field or method CreatePassword) (typecheck)
80+
if resp, err := client.CreatePassword(ctx, &createReq); err != nil || resp.AlreadyExists {
81+
^
82+
server/api_test.go:94:23: client.CreatePassword undefined (type *apiClient has no field or method CreatePassword) (typecheck)
83+
if resp, _ := client.CreatePassword(ctx, &createReq); !resp.AlreadyExists {
84+
^
85+
server/api_test.go:103:32: client.VerifyPassword undefined (type *apiClient has no field or method VerifyPassword) (typecheck)
86+
goodVerifyResp, err := client.VerifyPassword(ctx, goodVerifyReq)
87+
^
88+
server/api_test.go:119:36: client.VerifyPassword undefined (type *apiClient has no field or method VerifyPassword) (typecheck)
89+
badEmailVerifyResp, err := client.VerifyPassword(ctx, badEmailVerifyReq)
90+
^
91+
server/api_test.go:135:35: client.VerifyPassword undefined (type *apiClient has no field or method VerifyPassword) (typecheck)
92+
badPassVerifyResp, err := client.VerifyPassword(ctx, badPassVerifyReq)
93+
^
94+
server/api_test.go:151:22: client.UpdatePassword undefined (type *apiClient has no field or method UpdatePassword) (typecheck)
95+
if _, err := client.UpdatePassword(ctx, &updateReq); err != nil {
96+
^
97+
server/api_test.go:168:22: client.DeletePassword undefined (type *apiClient has no field or method DeletePassword) (typecheck)
98+
if _, err := client.DeletePassword(ctx, &deleteReq); err != nil {
99+
^
100+
server/api_test.go:300:26: client.ListRefresh undefined (type *apiClient has no field or method ListRefresh) (typecheck)
101+
listResp, err := client.ListRefresh(ctx, &listReq)
102+
^
103+
server/api_test.go:320:22: client.RevokeRefresh undefined (type *apiClient has no field or method RevokeRefresh) (typecheck)
104+
resp, err := client.RevokeRefresh(ctx, &revokeReq)
105+
^
106+
server/api_test.go:331:21: client.RevokeRefresh undefined (type *apiClient has no field or method RevokeRefresh) (typecheck)
107+
resp, err = client.RevokeRefresh(ctx, &revokeReq)
108+
^
109+
server/api_test.go:339:23: client.ListRefresh undefined (type *apiClient has no field or method ListRefresh) (typecheck)
110+
if resp, _ := client.ListRefresh(ctx, &listReq); len(resp.RefreshTokens) != 0 {
111+
^
112+
server/api_test.go:357:23: client.CreateClient undefined (type *apiClient has no field or method CreateClient) (typecheck)
113+
resp, err := client.CreateClient(ctx, &api.CreateClientReq{
114+
^
115+
server/api_test.go:385:23: client.DeleteClient undefined (type *apiClient has no field or method DeleteClient) (typecheck)
116+
resp, err := client.DeleteClient(ctx, &api.DeleteClientReq{
117+
^
118+
server/api_test.go:453:24: client.UpdateClient undefined (type *apiClient has no field or method UpdateClient) (typecheck)
119+
resp, err := client.UpdateClient(ctx, tc.req)
120+
^
121+
storage/kubernetes/storage_test.go:42:5: s.Require undefined (type *StorageTestSuite has no field or method Require) (typecheck)
122+
s.Require().NoError(err)
123+
^
124+
storage/kubernetes/storage_test.go:63:4: s.Require undefined (type *StorageTestSuite has no field or method Require) (typecheck)
125+
s.Require().NoError(err)
126+
^
127+
storage/kubernetes/storage_test.go:81:7: s.T undefined (type *StorageTestSuite has no field or method T) (typecheck)
128+
s.T().Fatalf("delete all %q failed: %v", resource, err)
129+
^
130+
storage/kubernetes/storage_test.go:87:25: s.T undefined (type *StorageTestSuite has no field or method T) (typecheck)
131+
conformance.RunTests(s.T(), newStorage)
132+
^
133+
storage/kubernetes/storage_test.go:88:36: s.T undefined (type *StorageTestSuite has no field or method T) (typecheck)
134+
conformance.RunTransactionTests(s.T(), newStorage)
135+
^

0 commit comments

Comments
 (0)