Write YAML for the name instead, and make the example lines match the YAML linter regex.
This commit is contained in:
parent
513e2c0235
commit
2d1f1fd698
@ -39,7 +39,7 @@ name. That seems to be the fairest way to arrange this table.
|
|||||||
| SASS/SCSS | [sass-lint](https://www.npmjs.com/package/sass-lint) |
|
| SASS/SCSS | [sass-lint](https://www.npmjs.com/package/sass-lint) |
|
||||||
| TypeScript | [tslint](https://github.com/palantir/tslint)^ |
|
| TypeScript | [tslint](https://github.com/palantir/tslint)^ |
|
||||||
| Vim | [vint](https://github.com/Kuniwak/vint)^ |
|
| Vim | [vint](https://github.com/Kuniwak/vint)^ |
|
||||||
| Yaml | [yamllint](https://yamllint.readthedocs.io/)^ |
|
| YAML | [yamllint](https://yamllint.readthedocs.io/)^ |
|
||||||
|
|
||||||
*^ Supported only on Unix machines via a wrapper script.*
|
*^ Supported only on Unix machines via a wrapper script.*
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ let g:loaded_ale_linters_yaml_yamllint = 1
|
|||||||
|
|
||||||
function! ale_linters#yaml#yamllint#Handle(buffer, lines)
|
function! ale_linters#yaml#yamllint#Handle(buffer, lines)
|
||||||
" Matches patterns line the following:
|
" Matches patterns line the following:
|
||||||
" something.yaml: line 2, col 1, Error - Expected RBRACE at line 2, col 1. (errors)
|
" something.yaml:1:1: [warning] missing document start "---" (document-start)
|
||||||
"
|
" something.yml:2:1: [error] syntax error: expected the node content, but found '<stream end>'
|
||||||
let pattern = '^.*:\(\d\+\):\(\d\+\): \[\(error\|warning\)\] \(.\+\)$'
|
let pattern = '^.*:\(\d\+\):\(\d\+\): \[\(error\|warning\)\] \(.\+\)$'
|
||||||
let output = []
|
let output = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user