mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #608] [MERGED] ci(lint): enable errorlint linter (phase 3) #652
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/608
Author: @rudrankriyam
Created: 2/17/2026
Status: ✅ Merged
Merged: 2/17/2026
Merged by: @rudrankriyam
Base:
main← Head:ci/enable-errorlint-linter📝 Commits (1)
140e2c3ci(lint): enable errorlint linter (phase 3 of #602)📊 Changes
23 files changed (+193 additions, -177 deletions)
View changed files
📝
.golangci.yml(+1 -0)📝
cmd/run.go(+1 -1)📝
internal/asc/client_test.go(+2 -2)📝
internal/asc/notary.go(+2 -2)📝
internal/auth/keychain.go(+10 -10)📝
internal/cli/alternativedistribution/alternative_distribution_test.go(+25 -24)📝
internal/cli/apps/app_setup_test.go(+7 -6)📝
internal/cli/backgroundassets/background_assets_test.go(+18 -17)📝
internal/cli/builds/builds_latest_test.go(+6 -5)📝
internal/cli/bundleids/bundle_ids_test.go(+12 -11)📝
internal/cli/certificates/certificates_test.go(+9 -8)📝
internal/cli/completion/completion_test.go(+3 -2)📝
internal/cli/devices/devices_test.go(+7 -6)📝
internal/cli/marketplace/marketplace_test.go(+18 -17)📝
internal/cli/preorders/pre_orders_test.go(+10 -9)📝
internal/cli/pricing/pricing_test.go(+14 -13)📝
internal/cli/profiles/profiles_test.go(+13 -12)📝
internal/cli/users/users_test.go(+17 -16)📝
internal/cli/versions/phased_release_test.go(+11 -10)📝
internal/cli/versions/versions_release_test.go(+3 -2)...and 3 more files
📄 Description
Summary
Enables the
errorlintgolangci-lint linter as phase 3 of #602, completing all three phases.All fixes are mechanical with no behavioral changes:
errors.Is()instead of==/!=for sentinel error comparisons (flag.ErrHelp,config.ErrNotFound,wantErrin tests)%winstead of%vwhen wrapping errors withfmt.Errorf(notary abort errors, keychain access denied, config validation, generate-app restore)Files changed (23 total)
cmd/run.go,internal/asc/notary.go,internal/auth/keychain.go,internal/config/config.go,tools/generate-app/main.goerrors.Is()+%wwrappinginternal/asc/client_test.go,internal/config/config_test.go, + 11 CLI test fileserrors.Is()forflag.ErrHelpand sentinel errorsChecks run
make format— cleanmake lint— passes witherrorlintenabledASC_BYPASS_KEYCHAIN=1 make test— all tests passCompletes #602 (all three phases: misspell, unparam, errorlint).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.