#4454 Clean up more tests and code

* Remove some tests we no longer need
* Delete blocks of redundant code
* Compress some tests together to simplify them
* Remove a little code for ancient linter versions
* Escape more executables we didn't escape before
* Rename a deno option that didn't match our conventions
This commit is contained in:
w0rp
2023-09-16 22:22:01 +01:00
parent 4b11cf21dc
commit ae1d051504
98 changed files with 257 additions and 674 deletions

View File

@@ -1,8 +1,4 @@
Execute(The deadnix handler should handle deadnix output):
let output = [
\'{"file":"./flake.nix","results":[{"column":5,"endColumn":9,"line":23,"message":"Unused lambda pattern: self"},{"column":2,"endColumn":6,"line":1,"message":"Unused lambda pattern: pkgs"}]}'
\]
AssertEqual
\ [
\ {
@@ -20,7 +16,9 @@ Execute(The deadnix handler should handle deadnix output):
\ 'type': 'W',
\ },
\ ],
\ ale#handlers#deadnix#Handle(bufnr(''), output)
\ ale#handlers#deadnix#Handle(bufnr(''), [
\ '{"file":"./flake.nix","results":[{"column":5,"endColumn":9,"line":23,"message":"Unused lambda pattern: self"},{"column":2,"endColumn":6,"line":1,"message":"Unused lambda pattern: pkgs"}]}'
\ ])
AssertEqual [], ale#handlers#deadnix#Handle(bufnr(''), [''])
AssertEqual [], ale#handlers#deadnix#Handle(bufnr(''), ['not json'])