-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
62 lines (42 loc) · 1.81 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Description of bugbuster.py
===========================
The bugbuster.py script is a tiny Python script that wraps around
two well known static analyzers, the splint static analyzer and the
TenDRA compiler static checker. It has various options that will
allow you to easily manage error message from the compile command
under Emacs or VIM.
It searches for the configuration file on the current directory
as ./.bugbuster.ini and it has the following options:
[global]
includes = /usr/include/libxml2:/usr ### include dirs
suppress = true ### suppress other file messages
defaults = cppcheck:tendra:splint ### enabled checkers
[tendra]
flags = -Yxpg4:-Yposix2:-Yposix:-Xs ### tendra flags
ignore = preprocessing:aborting ### ignore lines with text
[splint]
flags = -bugslimit:100 ### splint flags
ignore = exported:observer ### ignore lines with text
[cppcheck]
noincludes = true ### omit default includes
ignore = Checking:__cplusplus ### ignore lines with text
It also has the same options for the command line processing. Please
execute:
bugbuster.py --help
To take a look on the available options.
This script is licensed under New BSD License.
Emacs Integration
=================
To integrate bugbuster.py in Emacs, you can add the following
code in your .emacs file:
(global-set-key [C-f11] 'dmw-do-bugbuster)
(defun dmw-do-bugbuster ()
(interactive)
(set (make-local-variable 'compile-command)
(let ((file (file-name-nondirectory buffer-file-name)))
(format "bugbuster.py --file=%s" file)))
(message compile-command)
(compile compile-command))
Remember that bugbuster.py and the compile command will use the
current file directory as current directory and will search there
for the .bugbuster.ini file for available options.