Added python scripts to check code style
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 28 Feb 2013 12:49:40 +0000 (04:49 -0800)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 14 Mar 2013 12:03:39 +0000 (05:03 -0700)
commitec93f4680936a602096a1e12f8f963e7c399c3e4
treee9ef76cd1ada20c7c4340f394a3d4d3377075e4a
parent2b5cb42121034a5264c561ee39c2740815555a3e
Added python scripts to check code style

- check header guards
- check license header in source files
- check only spaces, no tabs
- check line length
- check indentation
- check single statement on same line
- check single definition on line
- check curly braces on separate line
- check consistent whitespace usage
- check for unneccessary empty lines

Each script takes the list of files to check as arguments.
All scripts print a help message if no argument is provided.

Scripts will print all warnings in a gcc-style format, so
default error and warning parsers will detect them.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
18 files changed:
.gitignore
scripts/__init__.py [new file with mode: 0755]
scripts/check_all_styles.py [new file with mode: 0755]
scripts/check_class_name.py [new file with mode: 0755]
scripts/check_consistent_code_style.py [new file with mode: 0755]
scripts/check_curly_braces_alone_on_line.py [new file with mode: 0755]
scripts/check_empty_lines.py [new file with mode: 0755]
scripts/check_header_guards.py [new file with mode: 0755]
scripts/check_indentation.py [new file with mode: 0755]
scripts/check_license.py [new file with mode: 0755]
scripts/check_long_lines.py [new file with mode: 0755]
scripts/check_single_definition_on_line.py [new file with mode: 0755]
scripts/check_single_statement_on_line.py [new file with mode: 0755]
scripts/check_style.sh [new file with mode: 0755]
scripts/check_tabbing_and_spacing.py [new file with mode: 0755]
scripts/common_modules/__init__.py [new file with mode: 0755]
scripts/common_modules/common.py [new file with mode: 0755]
scripts/common_modules/config.py [new file with mode: 0755]