All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 " Author: Adrian Zalewski <aazalewski@hotmail.com>
3 runtime autoload/ale/handlers/embertemplatelint.vim
6 call ale#linter#Reset()
8 Execute(The ember-template-lint handler should parse lines correctly):
9 let input_lines = split('{
10 \ "/ember-project/app/templates/application.hbs": [
12 \ "moduleId": "app/templates/application",
13 \ "rule": "bare-strings",
15 \ "message": "Non-translated string used",
18 \ "source": " Bare String\n"
21 \ "moduleId": "app/templates/application",
22 \ "rule": "invalid-interactive",
24 \ "message": "Interaction added to non-interactive element",
27 \ "source": "<span {{action someAction}}></span>"
37 \ 'text': 'bare-strings: Non-translated string used',
43 \ 'text': 'invalid-interactive: Interaction added to non-interactive element',
47 \ ale#handlers#embertemplatelint#Handle(347, input_lines)
49 Execute(The ember-template-lint handler should handle template parsing error correctly):
50 let input_lines = split('{
51 \ "/ember-project/app/templates/application.hbs": [
54 \ "moduleId": "app/templates/application",
55 \ "message": "Parse error on line 5 ...",
58 \ "source": "Error: Parse error on line 5 ...",
69 \ 'text': 'Parse error on line 5 ...',
73 \ ale#handlers#embertemplatelint#Handle(347, input_lines)
75 Execute(The ember-template-lint handler should handle no lint errors/warnings):
78 \ ale#handlers#embertemplatelint#Handle(347, [])
81 \ ale#handlers#embertemplatelint#Handle(347, ['{}'])