mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 13:14:29 +08:00
#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:
@@ -1,3 +1,11 @@
|
||||
Before:
|
||||
Save g:ale_rust_ignore_secondary_spans
|
||||
|
||||
let g:ale_rust_ignore_secondary_spans = 0
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
Execute(The Rust handler should handle rustc output):
|
||||
call ale#test#SetFilename('src/playpen.rs')
|
||||
|
||||
@@ -340,7 +348,6 @@ Execute(The Rust handler should find correct files):
|
||||
Execute(The Rust handler should remove secondary spans if set):
|
||||
call ale#test#SetFilename('src/noerrors/mod.rs')
|
||||
|
||||
let g:ale_rust_ignore_secondary_spans = 0
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
@@ -416,6 +423,7 @@ Execute(The Rust handler should remove secondary spans if set):
|
||||
\ ])
|
||||
|
||||
let g:ale_rust_ignore_secondary_spans = 1
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
|
||||
Reference in New Issue
Block a user