mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add more test cases for trailing spaces.
This commit is contained in:
parent
ac38a614e9
commit
28b273e798
5 changed files with 106 additions and 4 deletions
|
|
@ -11940,6 +11940,82 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 2',
|
||||
errorRange: [
|
||||
11,
|
||||
2,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 2,
|
||||
editColumn: 11,
|
||||
},
|
||||
lineNumber: 58,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 2',
|
||||
errorRange: [
|
||||
11,
|
||||
2,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 2,
|
||||
editColumn: 11,
|
||||
},
|
||||
lineNumber: 61,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 2',
|
||||
errorRange: [
|
||||
10,
|
||||
2,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 2,
|
||||
editColumn: 10,
|
||||
},
|
||||
lineNumber: 62,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 2',
|
||||
errorRange: [
|
||||
11,
|
||||
2,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 2,
|
||||
editColumn: 11,
|
||||
},
|
||||
lineNumber: 63,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md009',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
],
|
||||
fixed: `# Hard Line Breaks␊
|
||||
␊
|
||||
|
|
@ -11996,6 +12072,15 @@ Generated by [AVA](https://avajs.dev).
|
|||
text text␊
|
||||
text␊
|
||||
␊
|
||||
Text text␊
|
||||
text \`code␊
|
||||
span\` text␊
|
||||
␊
|
||||
Text text␊
|
||||
text \`code␊
|
||||
span code␊
|
||||
span\` text␊
|
||||
␊
|
||||
{MD009:9}␊
|
||||
{MD009:24}␊
|
||||
{MD009:32}␊
|
||||
|
|
@ -12005,6 +12090,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
{MD009:43}␊
|
||||
{MD009:48}␊
|
||||
{MD009:54}␊
|
||||
{MD009:58}␊
|
||||
{MD009:61}␊
|
||||
{MD009:62}␊
|
||||
{MD009:63}␊
|
||||
`,
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue