Skip to content

Lint imports in standalone modules - #92

Merged
Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/module-imports
Sep 30, 2026
Merged

Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/module-imports

Conversation

@echo8134

Copy link
Copy Markdown
Contributor

Summary

The linter visited executable cheats only, skipping module-only imports. Visit exported modules too and deduplicate cheats present in both collections.

Related issues

No linked issue.

Verification

File/directory tests and built lint cases cover missing, valid and already-visited imports.

Local checks passed on Go 1.27.1. The CI workflow uses Go 1.26.3.

Checklist

  • go build ./... and go test ./... pass
  • gofmt -l . and go vet ./... are clean
  • Added regression tests for the changed behavior
  • cheatmd --lint examples/ passes
  • Docs/wiki changes are not needed for this fix

@Gubarz
Gubarz marked this pull request as ready for review September 30, 2026 20:59
@Gubarz
Gubarz merged commit d424dfd into cheatmd-dev:main Sep 30, 2026
1 check passed
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