mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-16 02:51:30 +08:00
1 parent
3c85c7ef65
commit
244c5a8ce5
2 files changed
+23
-2
No files matched your search
@@ -61,6 +61,19 @@ Execute(Disabling trailing whitespace warnings should work):
|
||||
\ '8: T2 Trailing whitespace',
|
||||
\])
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 8,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'Trailing whitespace',
|
||||
\ 'code': 'B2',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
|
||||
\ '8: B2 Trailing whitespace',
|
||||
\])
|
||||
|
||||
let b:ale_warn_about_trailing_whitespace = 0
|
||||
|
||||
AssertEqual
|
||||
@@ -68,3 +81,9 @@ Execute(Disabling trailing whitespace warnings should work):
|
||||
\ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
|
||||
\ '8: T2 Trailing whitespace',
|
||||
\ ])
|
||||
|
||||
AssertEqual
|
||||
\ [],
|
||||
\ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
|
||||
\ '8: B2 Trailing whitespace',
|
||||
\ ])
|
||||
Reference in new issue
Block a user