Add spaces_per_tab parameter to MD010/no-hard-tabs (fixes #384). (#385)

This commit is contained in:
Yash Singh 2021-04-09 16:33:01 -07:00 committed by GitHub
parent 6302b26c99
commit 47ff95e8d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 157 additions and 4 deletions

View file

@ -0,0 +1,7 @@
{
"MD009": false,
"MD010": {
"spaces_per_tab": 4
},
"MD041": false
}

View file

@ -0,0 +1,3 @@
text
text and text 2
texts with trailing spaces

View file

@ -0,0 +1,3 @@
text
text and text 2
texts with trailing spaces

View file

@ -0,0 +1,29 @@
[
{
"errorContext": null,
"errorDetail": "Column: 1",
"errorRange": [1, 13],
"lineNumber": 1,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
},
{
"errorContext": null,
"errorDetail": "Column: 5",
"errorRange": [5, 2],
"lineNumber": 2,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
},
{
"errorContext": null,
"errorDetail": "Column: 27",
"errorRange": [27, 3],
"lineNumber": 3,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
}
]

View file

@ -0,0 +1,4 @@
{
"MD009": false,
"MD041": false
}

View file

@ -0,0 +1,3 @@
text
text and text 2
texts with trailing spaces

View file

@ -0,0 +1,3 @@
text
text and text 2
texts with trailing spaces

View file

@ -0,0 +1,29 @@
[
{
"errorContext": null,
"errorDetail": "Column: 1",
"errorRange": [1, 13],
"lineNumber": 1,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
},
{
"errorContext": null,
"errorDetail": "Column: 5",
"errorRange": [5, 2],
"lineNumber": 2,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
},
{
"errorContext": null,
"errorDetail": "Column: 27",
"errorRange": [27, 3],
"lineNumber": 3,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
}
]

View file

@ -0,0 +1,7 @@
{
"MD009": false,
"MD010": {
"spaces_per_tab": 0
},
"MD041": false
}

View file

@ -0,0 +1,3 @@
text
text and text 2
texts with trailing spaces

View file

@ -0,0 +1,3 @@
text
text and text 2
texts with trailing spaces

View file

@ -0,0 +1,29 @@
[
{
"errorContext": null,
"errorDetail": "Column: 1",
"errorRange": [1, 13],
"lineNumber": 1,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
},
{
"errorContext": null,
"errorDetail": "Column: 5",
"errorRange": [5, 2],
"lineNumber": 2,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
},
{
"errorContext": null,
"errorDetail": "Column: 27",
"errorRange": [27, 3],
"lineNumber": 3,
"ruleDescription": "Hard tabs",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
"ruleNames": ["MD010", "no-hard-tabs"]
}
]