mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 17:26:22 +03:00
[GH-ISSUE #383] Provide custom hard tab behavior for code blocks according to language (e.g., go / golang) #2171
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#2171
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 @TJM on GitHub (Mar 31, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/383
Related to: #282
golang uses "hard tabs" (much to my dismay), and that causes the linter to display a huge amount of violations. The
no-hard-tabsrule can be turned off, either globally, or in code blocks, but I assert that it should default to off in a code block labeled as "golang" ... like:or
I am not sure what the level of effort required to get the "type" of a code block would be, then to set a different default for golang (and any other language that insists on using tabs), but I think it would make the tool much more user friendly.
Thanks,
Tommy