golangci-lint
checks.aarch64-darwin.golangci-lint
· build #20
· raw
1mac02: building dswdn4rsgpbvd13wyx5ajwpxksk718wa-golangci-lint.drv
unpackPhase
2unpacking source archive /nix/store/62l6cbdnn7z879p3ikk26xm7249zxl3l-source3source root is sourcebuildPhase
4WARN The linter 'wsl' is deprecated (since v2.2.0) due to: new major version. Replaced by wsl_v5. 5WARN [linter] `allow-multiline-assign` is deprecated and always allowed in wsl >= v5 6WARN Suggested new configuration:7linters:8 enable:9 - wsl_v510 settings:11 wsl_v5:12 allow-first-in-block: true13 allow-whole-block: false14 branch-max-lines: 2 15cmd/set_token_test.go:176:19: string `test.example.com` has 18 occurrences, make it a constant (goconst)16 args: []string{"test.example.com", "test-token-123"},17 ^18cmd/set_token_test.go:226:5: string `Successfully set token for test.example.com: ********` has 3 occurrences, make it a constant (goconst)19 "Successfully set token for test.example.com: ********",20 ^21cmd/set_token_test.go:297:24: string `test-provider` has 6 occurrences, make it a constant (goconst)22 setTokenProvider = "test-provider"23 ^24cmd/set_token_test.go:371:39: string `token` has 3 occurrences, make it a constant (goconst)25 args: []string{"test.example.com", "token"},26 ^27cmd/status_test.go:44:15: string `github` has 4 occurrences, make it a constant (goconst)28 name: "github",29 ^30cmd/status_test.go:47:24: string `repo` has 4 occurrences, make it a constant (goconst)31 scopes: []string{"repo", "read:user"},32 ^33cmd/status_test.go:53:15: string `github.com` has 4 occurrences, make it a constant (goconst)34 if host == "github.com" {35 ^36internal/nixconf/nixconf_integration_test.go:25:4: string `github.com` has 6 occurrences, make it a constant (goconst)37 {"github.com", "ghs_test123"},38 ^39internal/nixconf/nixconf_integration_test.go:26:4: string `gitlab.com` has 6 occurrences, make it a constant (goconst)40 {"gitlab.com", "glpat_test456"},41 ^42internal/nixconf/nixconf_integration_test.go:86:17: string `token1` has 3 occurrences, make it a constant (goconst)43 "github.com": "token1",44 ^45internal/nixconf/nixconf_integration_test.go:87:17: string `token2` has 3 occurrences, make it a constant (goconst)46 "gitlab.com": "token2",47 ^48internal/nixconf/nixconf_test.go:26:5: string `NIX_USER_CONF_FILES` has 4 occurrences, make it a constant (goconst)49 "NIX_USER_CONF_FILES": "/custom/path/nix.conf",50 ^51internal/nixconf/nixconf_test.go:112:24: string `github.com` has 6 occurrences, make it a constant (goconst)52 {"github.com token", "github.com", "ghp_testtoken123"},53 ^54internal/nixconf/nixconf_test.go:113:24: string `gitlab.com` has 6 occurrences, make it a constant (goconst)55 {"gitlab.com token", "gitlab.com", "glpat-testtoken456"},56 ^57internal/nixconf/nixconf_test.go:239:22: string `token1` has 3 occurrences, make it a constant (goconst)58 "github.com": "token1",59 ^60internal/nixconf/nixconf_test.go:240:22: string `token2` has 3 occurrences, make it a constant (goconst)61 "gitlab.com": "token2",62 ^63internal/provider/detection_helpers.go:17:18: string `codeberg.org` has 4 occurrences, make it a constant (goconst)64 if lowerHost == "codeberg.org" {65 ^66internal/provider/detection_helpers.go:20:19: string `forgejo` has 6 occurrences, make it a constant (goconst)67 providerName: "forgejo",68 ^69internal/provider/detection_helpers.go:28:18: string `gitea.com` has 5 occurrences, make it a constant (goconst)70 if lowerHost == "gitea.com" || lowerHost == "gitea.io" {71 ^72internal/provider/detection_helpers.go:31:19: string `gitea` has 5 occurrences, make it a constant (goconst)73 providerName: "gitea",74 ^75internal/provider/detection_test.go:32:22: string `unknown` has 3 occurrences, make it a constant (goconst)76 expectedProvider: "unknown",77 ^78internal/provider/forgejo.go:13:20: string `forgejo` has 6 occurrences, make it a constant (goconst)79 providerName: "forgejo",80 ^81internal/provider/forgejo.go:29:20: string `codeberg.org` has 4 occurrences, make it a constant (goconst)82 defaultHost: "codeberg.org",83 ^84internal/provider/pat_provider.go:55:3: string `Accept` has 3 occurrences, make it a constant (goconst)85 "Accept": "application/json",86 ^87internal/provider/provider.go:132:58: string `forgejo` has 6 occurrences, make it a constant (goconst)88 preferredOrder := []string{"github", "gitlab", "gitea", "forgejo"}89 ^90internal/provider/provider_test.go:29:15: string `mock` has 3 occurrences, make it a constant (goconst)91 name: "mock",92 ^93internal/provider/provider_test.go:145:22: string `unknown` has 3 occurrences, make it a constant (goconst)94 expectedProvider: "unknown",95 ^96internal/nixconf/nixconf.go:324:21: G703: Path traversal via taint analysis (gosec)97 return os.WriteFile(dst, input, perms)98 ^99internal/ui/token_test.go:84:3: G101: Potential hardcoded credentials (gosec)100 {101 name: "GitHub OAuth token",102 token: "gho_16C7e42F292c6912E7710c838347Ae178B4a",103 expected: "gho_******4a",104 },105internal/ui/token_test.go:89:3: G101: Potential hardcoded credentials (gosec)106 {107 name: "GitHub personal access token",108 token: "ghp_16C7e42F292c6912E7710c838347Ae178B4a",109 expected: "ghp_******4a",110 },111internal/ui/token_test.go:94:3: G101: Potential hardcoded credentials (gosec)112 {113 name: "GitHub server token",114 token: "ghs_16C7e42F292c6912E7710c838347Ae178B4a",115 expected: "ghs_******4a",116 },117internal/ui/token_test.go:99:3: G101: Potential hardcoded credentials (gosec)118 {119 name: "GitHub fine-grained PAT",120 token: "github_pat_11ABCDEF0_1234567890abcdef",121 expected: "github_pat_******ef",122 },12332 issues:124* goconst: 27125* gosec: 5