shellcheck.vim 476 B

12345678910111213141516171819202122
  1. " Vim compiler file
  2. " Compiler: ShellCheck
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2024 Apr 03
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "shellcheck"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. CompilerSet makeprg=shellcheck\ -f\ gcc
  12. CompilerSet errorformat=%f:%l:%c:\ %trror:\ %m\ [SC%n],
  13. \%f:%l:%c:\ %tarning:\ %m\ [SC%n],
  14. \%f:%l:%c:\ %tote:\ %m\ [SC%n],
  15. \%-G%.%#
  16. let &cpo = s:cpo_save
  17. unlet s:cpo_save