diff options
author | Fred Emmott <fe@fb.com> | 2018-07-27 13:50:59 -0700 |
---|---|---|
committer | Fred Emmott <fe@fb.com> | 2018-08-02 11:28:56 -0700 |
commit | 238201805dd23ea422a107b3170de7892335137b (patch) | |
tree | e214989c1a7dd048a0d162dc27d70a92479a62db /ale_linters/php | |
parent | 5f024eda093dcce62159a6f262ffb084ccce4e51 (diff) | |
download | ale-238201805dd23ea422a107b3170de7892335137b.zip |
Split Hack out from PHP, modernize
fixes #1738
- Replace previous `hh_client` usage with LSP client
- Add `HHAST` linter
- Split Hack from PHP: Hack is increasingly diverging from PHP:
- Hack tools do not understand PHP
- Most PHP tools do not handle Hack code well (including vim's syntax
highightling files)
- http://github.com/hhvm/vim-hack now sets filetype to `hack`
Diffstat (limited to 'ale_linters/php')
-rw-r--r-- | ale_linters/php/hack.vim | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ale_linters/php/hack.vim b/ale_linters/php/hack.vim deleted file mode 100644 index 77d3a588..00000000 --- a/ale_linters/php/hack.vim +++ /dev/null @@ -1,28 +0,0 @@ -" Author: Zefei Xuan <https://github.com/zefei> -" Description: Hack type checking (http://hacklang.org/) - -function! ale_linters#php#hack#Handle(buffer, lines) abort - let l:pattern = '^\(.*\):\(\d\+\):\(\d\+\),\(\d\+\): \(.\+])\)$' - let l:output = [] - - for l:match in ale#util#GetMatches(a:lines, l:pattern) - if a:buffer != bufnr(l:match[1]) - continue - endif - - call add(l:output, { - \ 'lnum': l:match[2] + 0, - \ 'col': l:match[3] + 0, - \ 'text': l:match[5], - \}) - endfor - - return l:output -endfunction - -call ale#linter#Define('php', { -\ 'name': 'hack', -\ 'executable': 'hh_client', -\ 'command': 'hh_client --retries 0 --retry-if-init false', -\ 'callback': 'ale_linters#php#hack#Handle', -\}) |