File: create_cppcheck_report

package info (click to toggle)
widelands 1%3A18-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 354,376 kB
  • ctags: 16,411
  • sloc: cpp: 114,658; python: 3,714; sh: 427; makefile: 317
file content (14 lines) | stat: -rwxr-xr-x 1,370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
FILE=cppcheck_report.html
echo "<!doctype html>"                                                                 >  $FILE
echo "<html>"                                                                          >> $FILE
echo "<head><title>cppcheck error report for Widelands C++ source code</title></head>" >> $FILE
echo "<body>"                                                                          >> $FILE
echo "<h2>Issues found by "                                                            >> $FILE
cppcheck --version                                                                     >> $FILE
echo "</h2>"                                                                           >> $FILE
echo "<div>"                                                                           >> $FILE
cppcheck --force --quiet --verbose --std=posix --std=c99 --std=c++11 --enable=all -I src src 2>&1 | sed "s@^\[\(.*\):\([[:digit:]]\+\)\]: \(.*\)\$@<a href=\"http://bazaar.launchpad.net/%7Ewidelands-dev/widelands/trunk/annotate/head%3A/\1\?#L\2\">\1:\2</a>: \3<br/>@" >> $FILE
echo "</div>"                                                                          >> $FILE
echo "</body>"                                                                         >> $FILE
echo "</html>"                                                                         >> $FILE