File: parsers.rst

package info (click to toggle)
python-firehose 0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,104 kB
  • sloc: python: 2,587; xml: 1,388; makefile: 152; ansic: 34
file content (58 lines) | stat: -rw-r--r-- 1,877 bytes parent folder | download
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
..  Copyright 2017 David Malcolm <dmalcolm@redhat.com>
    Copyright 2017 Red Hat, Inc.

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
    USA

Parsers
=======

There are various parsers that take the output of specific analyzers and
turn them into :py:class:`firehose.model.Analysis` instances.

* clanganalyzer.py

  Parser for the ``.plist`` files emitted by the
  `clang-static-analyzer <https://clang-analyzer.llvm.org/>`_,
  when :option:`-plist` is passed as an option to "scan-build" or "clang"

* cppcheck.py

  Parser for output from `cppcheck <http://cppcheck.sourceforge.net/>`_,
  specifically, version 2 of its XML format as generated by:

  .. code-block:: sh

     cppcheck PATH_TO_SOURCES --xml --xml-version=2

* findbugs.py

  Parser for xml output from `findbugs <http://findbugs.sourceforge.net/>`_.

* frama_c.py

  Parser for warnings emitted by `frama-c <https://frama-c.com/>`_.

* gcc.py

  Parser for warnings emitted by `GCC <https://gcc.gnu.org/>`_.

* flawfinder.py

  Parser for warnings emitted by `flawfinder <https://www.dwheeler.com/flawfinder/>`_.

* splint.py

  Parser for the :option:`-csv` output format from `splint <http://splint.org/>`_.