Skip to content

Report duplicate exports when linting directories - #86

Merged
Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/directory-duplicate-exports
Sep 30, 2026
Merged

Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/directory-duplicate-exports

Conversation

@echo8134

Copy link
Copy Markdown
Contributor

Summary

Directory parsing dropped duplicate-export diagnostics collected inside each file. Append each file parser's diagnostics to the directory result.

Related issues

No linked issue.

Verification

File and directory lint diagnostics now match.

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 14:51
@Gubarz
Gubarz merged commit 7d362f0 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