summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorMarcus Zanona <marcus@zanona.co>2020-08-12 11:06:35 +0200
committerMarcus Zanona <marcus@zanona.co>2020-09-25 11:25:24 +0200
commite08996940468ce90616a9704a439652f1ab73e31 (patch)
treec3f6a8e447e2f44245acc3f132465b24431be76d /test/handler
parent08295ce17405cb5f6c80d2f726262493bfd21210 (diff)
downloadale-e08996940468ce90616a9704a439652f1ab73e31.zip
fix(ale_linters/phpcs): add support for multiline error messages
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_phpcs_handler.vader11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/handler/test_phpcs_handler.vader b/test/handler/test_phpcs_handler.vader
index 18accece..26d35cb8 100644
--- a/test/handler/test_phpcs_handler.vader
+++ b/test/handler/test_phpcs_handler.vader
@@ -13,7 +13,16 @@ Execute(phpcs errors should be handled):
\ 'type': 'E',
\ 'sub_type': 'style',
\ 'text': 'Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)',
- \ }],
+ \ },
+ \ {
+ \ 'lnum': 22,
+ \ 'col': 3,
+ \ 'type': 'E',
+ \ 'sub_type': 'style',
+ \ 'text': 'All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks)',
+ \ },
+ \ ],
\ ale_linters#php#phpcs#Handle(bufnr(''), [
\ '/path/to/some-filename.php:18:3: error - Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)',
+ \ "/path/to/some-filename.php:22:3: error - All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '\"\n'.",
\ ])