mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-24 13:01:28 +08:00
Racket linting using raco (#2146)
This commit is contained in:
26
test/handler/test_raco_handler.vader
Normal file
26
test/handler/test_raco_handler.vader
Normal file
@@ -0,0 +1,26 @@
|
||||
Before:
|
||||
runtime ale_linters/racket/raco.vim
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The raco handler should handle errors for the current file correctly):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 4,
|
||||
\ 'col': 1,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'dfine: unbound identifier in modulemessage',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#racket#raco#Handle(bufnr(''), [
|
||||
\ 'foo.rkt:4:1: dfine: unbound identifier in modulemessage',
|
||||
\ ' in: dfine',
|
||||
\ ' context...:',
|
||||
\ ' /usr/local/Cellar/racket/6.5/share/racket/pkgs/compiler-lib/compiler/commands/expand.rkt:34:15: loop',
|
||||
\ ' /usr/local/Cellar/racket/6.5/share/racket/pkgs/compiler-lib/compiler/commands/expand.rkt:10:2: show-program',
|
||||
\ ' /usr/local/Cellar/racket/6.5/share/racket/pkgs/compiler-lib/compiler/commands/expand.rkt: [running body]',
|
||||
\ ' /usr/local/Cellar/minimal-racket/6.6/share/racket/collects/raco/raco.rkt: [running body]',
|
||||
\ ' /usr/local/Cellar/minimal-racket/6.6/share/racket/collects/raco/main.rkt: [running body]',
|
||||
\ ])
|
||||
Reference in New Issue
Block a user