summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2022-01-05 22:34:47 +0900
committerGitHub <noreply@github.com>2022-01-05 22:34:47 +0900
commit76bd0593713004ae38d738874e9e0575aefc88dd (patch)
treec7575354a13d15438b65f7e4768f8ffd058699d4 /ale_linters
parent5a5029b73d9cfb277ba84c29c2f787b88469ab0f (diff)
downloadale-76bd0593713004ae38d738874e9e0575aefc88dd.zip
Fix 3838 - deprecate datanalyzer (#3839)
Co-authored-by: Horacio Sanson <horacio@allm.inc>
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/dart/dartanalyzer.vim36
1 files changed, 0 insertions, 36 deletions
diff --git a/ale_linters/dart/dartanalyzer.vim b/ale_linters/dart/dartanalyzer.vim
deleted file mode 100644
index 0a4d9742..00000000
--- a/ale_linters/dart/dartanalyzer.vim
+++ /dev/null
@@ -1,36 +0,0 @@
-" Author: w0rp <devw0rp@gmail.com>
-" Description: Check Dart files with dartanalyzer
-
-call ale#Set('dart_dartanalyzer_executable', 'dartanalyzer')
-
-function! ale_linters#dart#dartanalyzer#GetCommand(buffer) abort
- let l:path = ale#path#FindNearestFile(a:buffer, '.packages')
-
- return '%e'
- \ . (!empty(l:path) ? ' --packages ' . ale#Escape(l:path) : '')
- \ . ' %s'
-endfunction
-
-function! ale_linters#dart#dartanalyzer#Handle(buffer, lines) abort
- let l:pattern = '\v^ ([a-z]+) . (.+) at (.+):(\d+):(\d+) . (.+)$'
- let l:output = []
-
- for l:match in ale#util#GetMatches(a:lines, l:pattern)
- call add(l:output, {
- \ 'type': l:match[1] is# 'error' ? 'E' : 'W',
- \ 'text': l:match[6] . ': ' . l:match[2],
- \ 'lnum': str2nr(l:match[4]),
- \ 'col': str2nr(l:match[5]),
- \})
- endfor
-
- return l:output
-endfunction
-
-call ale#linter#Define('dart', {
-\ 'name': 'dartanalyzer',
-\ 'executable': {b -> ale#Var(b, 'dart_dartanalyzer_executable')},
-\ 'command': function('ale_linters#dart#dartanalyzer#GetCommand'),
-\ 'callback': 'ale_linters#dart#dartanalyzer#Handle',
-\ 'lint_file': 1,
-\})