flawfinder.vim 1.0 KB

1234567891011121314151617181920212223242526
  1. "============================================================================
  2. "File: flawfinder.vim
  3. "Description: Syntax checking plugin for syntastic
  4. "Maintainer: Benjamin Bannier <bbannier at gmail dot com>
  5. "License: This program is free software. It comes without any warranty,
  6. " to the extent permitted by applicable law. You can redistribute
  7. " it and/or modify it under the terms of the Do What The Fuck You
  8. " Want To Public License, Version 2, as published by Sam Hocevar.
  9. " See http://sam.zoy.org/wtfpl/COPYING for more details.
  10. "============================================================================
  11. if exists('g:loaded_syntastic_cpp_flawfinder_checker')
  12. finish
  13. endif
  14. let g:loaded_syntastic_cpp_flawfinder_checker = 1
  15. if !exists('g:syntastic_cpp_flawfinder_thres')
  16. let g:syntastic_cpp_flawfinder_thres = 3
  17. endif
  18. call g:SyntasticRegistry.CreateAndRegisterChecker({
  19. \ 'filetype': 'cpp',
  20. \ 'name': 'flawfinder',
  21. \ 'redirect': 'c/flawfinder'})
  22. " vim: set sw=4 sts=4 et fdm=marker: