cli/pkg/cmd/auth/shared
copilot-swe-agent[bot] dca59d52b6 Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface
- canonicalheader: fix cacheTTL header value to canonical form
- embeddedstructfieldcheck: move embedded fields before regular fields in 4 structs
- iotamixing: split const blocks mixing iota with non-iota constants
- makezero: use make([]T, 0, n) instead of make([]T, n) before appending
- testableexamples: add missing Output: comment to ExampleOption_UnwrapOrZero
- wastedassign: remove wasted initial assignments in 4 locations
- usetesting: replace os.MkdirTemp/os.Setenv with t.TempDir/t.Setenv in tests
- tparallel: add t.Parallel() to 8 top-level test functions
- unconvert: remove 16 unnecessary type conversions
- intrange: convert 3 for loops to use integer range syntax
- iface: consolidate identical EditPrompter and Prompt interfaces via type alias

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 11:05:52 +00:00
..
contract Comment the purpose of the helper config contract 2024-05-17 14:33:19 +02:00
gitcredentials Add HelperConfig contract test and FakeHelperConfig 2024-05-17 14:16:14 +02:00
git_credential.go Test git credentials are configured in LoginFlow 2024-05-17 14:31:21 +02:00
git_credential_test.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
login_flow.go refactor(auth login): use PlainHttpClient for OAuth flow 2025-10-13 16:51:11 +01:00
login_flow_test.go Fix ssh directory 2024-11-06 16:13:29 +00:00
oauth_scopes.go show token scopes on auth status (#6546) 2023-01-25 16:25:00 +01:00
oauth_scopes_test.go Fix linting issues: canonicalheader, embeddedstructfieldcheck, iotamixing, makezero, testableexamples, wastedassign, usetesting, tparallel, unconvert, intrange, iface 2026-03-24 11:05:52 +00:00
prompt.go use Prompter in auth commands 2022-09-13 13:22:50 -07:00
writeable.go Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00