summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian-Gibbons <cgibbons@gmu.edu>2018-02-25 09:11:04 -0500
committerw0rp <w0rp@users.noreply.github.com>2018-02-25 14:11:04 +0000
commit82f8a04e18000bc3311340f820edfc98005e99a9 (patch)
tree07a3c9fd28f1e9dd3b4d6a4b8ed66dec33f366b6 /doc
parent478a2883a6c75e888bce2b0e7c800d5d8990f29e (diff)
downloadale-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 'doc')
-rw-r--r--doc/ale-c.txt27
-rw-r--r--doc/ale-cpp.txt27
-rw-r--r--doc/ale.txt6
3 files changed, 58 insertions, 2 deletions
diff --git a/doc/ale-c.txt b/doc/ale-c.txt
index fc2c45c7..62445de2 100644
--- a/doc/ale-c.txt
+++ b/doc/ale-c.txt
@@ -144,6 +144,33 @@ g:ale_c_cppcheck_options *g:ale_c_cppcheck_options*
===============================================================================
+flawfinder *ale-c-flawfinder*
+
+g:ale_c_flawfinder_executable *g:ale_c_flawfinder_executable*
+ *g:ale_c_flawfinder_executable*
+ Type: |String|
+ Default: `'flawfinder'`
+
+ This variable can be changed to use a different executable for flawfinder.
+
+
+g:ale_c_flawfinder_minlevel *g:ale_c_flawfinder_minlevel*
+ *b:ale_c_flawfinder_minlevel*
+ Type: |Number|
+ Default: `1`
+
+ This variable can be changed to ignore risks under the given risk threshold.
+
+
+g:ale_c_flawfinder_options *g:ale-c-flawfinder*
+ *b:ale-c-flawfinder*
+ Type: |String|
+ Default: `''`
+
+ This variable can be used to pass extra options into the flawfinder command.
+
+
+===============================================================================
gcc *ale-c-gcc*
g:ale_c_gcc_executable *g:ale_c_gcc_executable*
diff --git a/doc/ale-cpp.txt b/doc/ale-cpp.txt
index cda5768b..19ef5894 100644
--- a/doc/ale-cpp.txt
+++ b/doc/ale-cpp.txt
@@ -154,6 +154,33 @@ g:ale_cpp_cpplint_options *g:ale_cpp_cpplint_options*
===============================================================================
+flawfinder *ale-cpp-flawfinder*
+
+g:ale_cpp_flawfinder_executable *g:ale_cpp_flawfinder_executable*
+ *g:ale_cpp_flawfinder_executable*
+ Type: |String|
+ Default: `'flawfinder'`
+
+ This variable can be changed to use a different executable for flawfinder.
+
+
+g:ale_cpp_flawfinder_minlevel *g:ale_cpp_flawfinder_minlevel*
+ *b:ale_cpp_flawfinder_minlevel*
+ Type: |Number|
+ Default: `1`
+
+ This variable can be changed to ignore risks under the given risk threshold.
+
+
+g:ale_cpp_flawfinder_options *g:ale-cpp-flawfinder*
+ *b:ale-cpp-flawfinder*
+ Type: |String|
+ Default: `''`
+
+ This variable can be used to pass extra options into the flawfinder command.
+
+
+===============================================================================
gcc *ale-cpp-gcc*
g:ale_cpp_gcc_executable *g:ale_cpp_gcc_executable*
diff --git a/doc/ale.txt b/doc/ale.txt
index fd3e4897..d2e050a5 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -28,6 +28,7 @@ CONTENTS *ale-contents*
clang-format........................|ale-c-clangformat|
clangtidy...........................|ale-c-clangtidy|
cppcheck............................|ale-c-cppcheck|
+ flawfinder..........................|ale-c-flawfinder|
gcc.................................|ale-c-gcc|
chef..................................|ale-chef-options|
foodcritic..........................|ale-chef-foodcritic|
@@ -42,6 +43,7 @@ CONTENTS *ale-contents*
clangtidy...........................|ale-cpp-clangtidy|
cppcheck............................|ale-cpp-cppcheck|
cpplint.............................|ale-cpp-cpplint|
+ flawfinder..........................|ale-cpp-flawfinder|
gcc.................................|ale-cpp-gcc|
c#....................................|ale-cs-options|
mcs.................................|ale-cs-mcs|
@@ -298,8 +300,8 @@ Notes:
* Awk: `gawk`
* Bash: `shell` (-n flag), `shellcheck`, `shfmt`
* Bourne Shell: `shell` (-n flag), `shellcheck`, `shfmt`
-* C: `cppcheck`, `cpplint`!!, `gcc`, `clang`, `clangtidy`!!, `clang-format`
-* C++ (filetype cpp): `clang`, `clangcheck`!!, `clangtidy`!!, `clang-format`, `cppcheck`, `cpplint`!!, `gcc`
+* C: `cppcheck`, `cpplint`!!, `clang`, `clangtidy`!!, `clang-format`, `flawfinder`, `gcc`
+* C++ (filetype cpp): `clang`, `clangcheck`!!, `clangtidy`!!, `clang-format`, `cppcheck`, `cpplint`!!, `flawfinder`, `gcc`
* CUDA: `nvcc`!!
* C#: `mcs`, `mcsc`!!
* Chef: `foodcritic`