mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #1563] Use stderr for errors and stdout for normal output #2555
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#2555
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?
Originally created by @gtirloni on GitHub (Apr 12, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1563
stderris being used for normal output when the tool is not exhibiting any errors.It might be reporting warnings from the rules, but that's its normal mode of operation.
Instead, please consider using
stdoutfor everything except errors/warnings that disrupt the tool's operation, not for errors/warnings in the content that it's evaluating.@DavidAnson commented on GitHub (Apr 12, 2025):
This library doesn't output anything to console. If you are using one of the associated CLI tools, you'll need to identify which one and should open an issue in their repository. It would also be helpful to say what specific output you think is not appropriate for stderr.
@gtirloni commented on GitHub (Apr 12, 2025):
You're right, I created the issue in the wrong repo. I'm using markdownlint-cli. It outputs everything to stderr (rules that are violated lille which file and line). Sorry for the noise.