Skip to content

chore: lint the root module's test files - #82

Open
giunatale wants to merge 1 commit into
mainfrom
giunatale/chore/lint-root-tests
Open

giunatale wants to merge 1 commit into
mainfrom
giunatale/chore/lint-root-tests

Conversation

@giunatale

Copy link
Copy Markdown
Contributor

.golangci.yml no longer leaves the root module's test files out, the last gap after #81 brought the e2e and app modules under lint; make lint now covers every Go file in the repo that is not generated.

The first run found 114 findings in 38 files, all fixed here. Most are mechanical: 42 redundant conversions, import grouping in 37 files, 16 test helpers missing t.Helper(), two deprecated context wrappers. The rest are small but real: three unchecked error returns in the consumer genesis tests, now asserted; one assignment nothing read; and eight repeated literals now named once per package (the live and the fixture provider client ids on the consumer side, the client id, pool denom and chain id on the provider side, the event attribute key from the types package, and the already-declared owner constant reused). Two helpers that every scenario calls with the same value keep their parameter under a stated nolint, to stay generic.

The Makefile and AGENTS.md notes about what lint covers follow.

@giunatale
giunatale force-pushed the giunatale/chore/lint-root-tests branch from aaa73bc to ff679e9 Compare October 27, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants