summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-03 23:53:04 +0100
committerw0rp <devw0rp@gmail.com>2016-10-03 23:53:04 +0100
commit2d1f1fd698ba195b32e58bbf09b48d7a236bea5f (patch)
tree17a3e8385e8e8d8dfb38d990b12a8b14e7ced12f
parent513e2c02354811c56771b6718c8dacbb6580572e (diff)
downloadale-2d1f1fd698ba195b32e58bbf09b48d7a236bea5f.zip
Write YAML for the name instead, and make the example lines match the YAML linter regex.
-rw-r--r--README.md2
-rw-r--r--ale_linters/yaml/yamllint.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 57fb90e0..01823919 100644
--- a/README.md
+++ b/README.md
@@ -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) |
| TypeScript | [tslint](https://github.com/palantir/tslint)^ |
| 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.*
diff --git a/ale_linters/yaml/yamllint.vim b/ale_linters/yaml/yamllint.vim
index 04f6b1d0..cb7ca4b9 100644
--- a/ale_linters/yaml/yamllint.vim
+++ b/ale_linters/yaml/yamllint.vim
@@ -8,8 +8,8 @@ let g:loaded_ale_linters_yaml_yamllint = 1
function! ale_linters#yaml#yamllint#Handle(buffer, lines)
" 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 output = []