diff options
author | Christian-Gibbons <cgibbons@gmu.edu> | 2018-02-25 09:11:04 -0500 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-02-25 14:11:04 +0000 |
commit | 82f8a04e18000bc3311340f820edfc98005e99a9 (patch) | |
tree | 07a3c9fd28f1e9dd3b4d6a4b8ed66dec33f366b6 /autoload | |
parent | 478a2883a6c75e888bce2b0e7c800d5d8990f29e (diff) | |
download | ale-82f8a04e18000bc3311340f820edfc98005e99a9.zip |
New linter: Flawfinder (#1361)
* Flawfinder support added for C and C++
A minor modification to gcc handler was made to support flawfinder's
single-line output format that does not have a space following the
colon denoting the warning level. gcc handler still passes its
Vader tests after this modification.
* Documentation fixes
* Revert documentation regression
* Added Flawfinder to table of contents
* Removed trailing whitespace
* Follow ALE conventions better
Added additional documentation and Vader tests
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/gcc.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/handlers/gcc.vim b/autoload/ale/handlers/gcc.vim index 9ec7b110..7f2078a4 100644 --- a/autoload/ale/handlers/gcc.vim +++ b/autoload/ale/handlers/gcc.vim @@ -24,7 +24,7 @@ function! ale#handlers#gcc#HandleGCCFormat(buffer, lines) abort " <stdin>:8:5: warning: conversion lacks type at end of format [-Wformat=] " <stdin>:10:27: error: invalid operands to binary - (have ‘int’ and ‘char *’) " -:189:7: note: $/${} is unnecessary on arithmetic variables. [SC2004] - let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+):(\d+)?:? ([^:]+): (.+)$' + let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+):(\d+)?:? ([^:]+): ?(.+)$' let l:output = [] for l:match in ale#util#GetMatches(a:lines, l:pattern) |