MD007 when MD010 disabled
Fix
Subject
MD007 when MD010 disabled
Object
When MD010 is disabled (hard tabs use case), it should be:
-
MD007.indent = 1andMD007.start_indent = 1by default - Formatting to tabs instead of spaces
Just because tabs are allowed in a project does not mean they will/should be used for lists. Although I think that could be specified via a parameter to the rule.
-
Comment Reply from @DavidAnson:
⋯ because tabs are allowed in a project does not mean they will/should be used for lists ⋯
Disagree It's a convention to normalize the indentation style project-wise If MD010 is disabled, it means that the project is enforcing a tab style indentation Tab style indentation => 1 tab / indentation
With very few exceptions, rules do not change their behavior based on how other rules are configured. This project prefers spaces and provides rule MD010 to help enforce that. Disabling MD010 does not introduce a requirement to use tabs. As the specification outlines, the behavior of tab stops is not always intuitive (https://spec.commonmark.org/0.30/#tabs).
It sounds like adding the parameter I propose above would satisfy your scenario.
-
Comment Reply from @DavidAnson:
⋯ Disabling MD010 does not introduce a requirement to use tabs ⋯
Do you mean that disabling MD010 does remove the requirement to not use hard tabs, rather that induce the requirement to use tabs?
-
Comment Reply from @DavidAnson:
⋯ It sounds like adding the parameter I propose above would satisfy your scenario.
If previous point is true, then agreed
Correct: MD010 will warn about tabs when it is enabled, but will do nothing when it is disabled.