diff options
author | Craig Rodrigues <craig@quiknode.io> | 2023-07-24 05:33:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 21:33:15 +0900 |
commit | 3d107703873a67e6645b5c7ed0ccb273ac0596b2 (patch) | |
tree | b2ca44e647d48055d177373f1ea64799a85bdd88 /test/handler | |
parent | f34016a55273c180c49a75aafd1e277c0f783d3b (diff) | |
download | ale-3d107703873a67e6645b5c7ed0ccb273ac0596b2.zip |
Remove gometalinter support (#4534)
gometalinter has been deprecated, and was archived in 2019
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_gometalinter_handler.vader | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/test/handler/test_gometalinter_handler.vader b/test/handler/test_gometalinter_handler.vader deleted file mode 100644 index 1aade8a7..00000000 --- a/test/handler/test_gometalinter_handler.vader +++ /dev/null @@ -1,57 +0,0 @@ -Before: - runtime ale_linters/go/gometalinter.vim - -After: - call ale#linter#Reset() - -Execute (The gometalinter handler should handle names with spaces): - " We can't test Windows paths with the path resovling on Linux, but we can - " test the regex. - AssertEqual - \ [ - \ [ - \ 'C:\something\file with spaces.go', - \ '12', - \ '3', - \ 'warning', - \ 'expected ''package'', found ''IDENT'' gibberish (staticcheck)', - \ ], - \ [ - \ 'C:\something\file with spaces.go', - \ '37', - \ '5', - \ 'error', - \ 'expected ''package'', found ''IDENT'' gibberish (golint)', - \ ], - \ ], - \ map(ale_linters#go#gometalinter#GetMatches([ - \ 'C:\something\file with spaces.go:12:3:warning: expected ''package'', found ''IDENT'' gibberish (staticcheck)', - \ 'C:\something\file with spaces.go:37:5:error: expected ''package'', found ''IDENT'' gibberish (golint)', - \ ]), 'v:val[1:5]') - -Execute (The gometalinter handler should handle paths correctly): - call ale#test#SetFilename('app/test.go') - - let file = ale#path#GetAbsPath(expand('%:p:h'), 'test.go') - - AssertEqual - \ [ - \ { - \ 'lnum': 12, - \ 'col': 3, - \ 'text': 'expected ''package'', found ''IDENT'' gibberish (staticcheck)', - \ 'type': 'W', - \ 'filename': ale#path#Simplify(expand('%:p:h') . '/test.go'), - \ }, - \ { - \ 'lnum': 37, - \ 'col': 5, - \ 'text': 'expected ''package'', found ''IDENT'' gibberish (golint)', - \ 'type': 'E', - \ 'filename': ale#path#Simplify(expand('%:p:h') . '/test.go'), - \ }, - \ ], - \ ale_linters#go#gometalinter#Handler(bufnr(''), [ - \ file . ':12:3:warning: expected ''package'', found ''IDENT'' gibberish (staticcheck)', - \ file . ':37:5:error: expected ''package'', found ''IDENT'' gibberish (golint)', - \ ]) |