diff options
author | Christian-Gibbons <cgibbons@gmu.edu> | 2018-03-10 05:44:55 -0500 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-03-10 10:44:55 +0000 |
commit | b586eba4a498af3ab156f59376344958d8d20db1 (patch) | |
tree | fed48f079d0d496ad93dc04890f495b2a7ef1f8a /ale_linters/c | |
parent | 0a0535546f4d9a0dfe02671630fdaba72ea5828d (diff) | |
download | ale-b586eba4a498af3ab156f59376344958d8d20db1.zip |
Handle flawfinder severity level (#1400)
* Handle flawfinder severity level
* Reverted code allowing Flawfinder to piggyback off of gcc's format handler
* Gave Flawfinder its own format handler and made requested changes.
Diffstat (limited to 'ale_linters/c')
-rw-r--r-- | ale_linters/c/flawfinder.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/c/flawfinder.vim b/ale_linters/c/flawfinder.vim index 27f269f5..df6fbebe 100644 --- a/ale_linters/c/flawfinder.vim +++ b/ale_linters/c/flawfinder.vim @@ -4,6 +4,7 @@ call ale#Set('c_flawfinder_executable', 'flawfinder') call ale#Set('c_flawfinder_options', '') call ale#Set('c_flawfinder_minlevel', 1) +call ale#Set('c_flawfinder_error_severity', 6) function! ale_linters#c#flawfinder#GetExecutable(buffer) abort return ale#Var(a:buffer, 'c_flawfinder_executable') @@ -26,5 +27,5 @@ call ale#linter#Define('c', { \ 'output_stream': 'stdout', \ 'executable_callback': 'ale_linters#c#flawfinder#GetExecutable', \ 'command_callback': 'ale_linters#c#flawfinder#GetCommand', -\ 'callback': 'ale#handlers#gcc#HandleGCCFormat', +\ 'callback': 'ale#handlers#flawfinder#HandleFlawfinderFormat', \}) |