blob: 2f2fb684e6057371abb9986504f6697c14ce8048 [file] [log] [blame]
James E. King, III0ad20bd2017-09-30 15:44:16 -07001#!/bin/sh
2set -ev
3
4#
5# C/C++ static code analysis with cppcheck
6# add --error-exitcode=1 to --enable=all as soon as everything is fixed
7#
8# Python code style check with flake8
9#
10# search for TODO etc within source tree
11# some statistics about the code base
12# some info about the build machine
13
14# Compiler cppcheck (All)
15cppcheck --force --quiet --inline-suppr --enable=all -j2 compiler/cpp/src
16
17# C++ cppcheck (All)
18cppcheck --force --quiet --inline-suppr --enable=all -j2 lib/cpp/src lib/cpp/test test/cpp tutorial/cpp
19
20# C Glib cppcheck (All)
21cppcheck --force --quiet --inline-suppr --enable=all -j2 lib/c_glib/src lib/c_glib/test test/c_glib/src tutorial/c_glib
22
23# Silent error checks
24cppcheck --force --quiet --inline-suppr --error-exitcode=1 -j2 compiler/cpp/src
25cppcheck --force --quiet --inline-suppr --error-exitcode=1 -j2 lib/cpp/src lib/cpp/test test/cpp tutorial/cpp
26cppcheck --force --quiet --inline-suppr --error-exitcode=1 -j2 lib/c_glib/src lib/c_glib/test test/c_glib/src tutorial/c_glib
27
28# Python code style
29flake8 --ignore=E501 lib/py
30flake8 tutorial/py
31flake8 --ignore=E501 test/py
32flake8 test/py.twisted
33flake8 test/py.tornado
34flake8 --ignore=E501 test/test.py
35flake8 --ignore=E501 test/crossrunner
36flake8 test/features
37
38# TODO etc
39echo FIXMEs: `grep -r FIXME * | wc -l`
40echo HACKs: `grep -r HACK * | wc -l`
41echo TODOs: `grep -r TODO * | wc -l`
42
43# LoC
44sloccount .
45
46# System Info
47dpkg -l
48uname -a