Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove empty haddocks and remove empty comments. #1459

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test expectations
  • Loading branch information
philderbeast committed Aug 3, 2024
commit 5d59c9e9e2c399ecf6c2884aed8efab8955b1c47
22 changes: 21 additions & 1 deletion tests/empty-comment.test
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,27 @@ haddockAboveSingles = 1
haddockAboveDoctest = 1

OUTPUT
No hints
tests/empty-comment-singles.hs:2:1-4: Suggestion: Leading empty single-line haddock
Found:
-- |
Perhaps you should remove it.

tests/empty-comment-singles.hs:3:1-2: Suggestion: Leading empty single-line comment
Found:
--
Perhaps you should remove it.

tests/empty-comment-singles.hs:6:1-4: Suggestion: Leading empty single-line haddock
Found:
-- |
Perhaps you should remove it.

tests/empty-comment-singles.hs:7:1-6: Suggestion: Leading empty single-line doctest
Found:
-- >>>
Perhaps you should remove it.

4 hints

---------------------------------------------------------------------
RUN tests/empty-comment-multi.hs
Expand Down