codingstandard.inc
codingstandard.inc
is a PHP file, located in the
cfg
directory in the document root. It defines some
constants that are used for PDF generation, such as the title, author of
the document, standard header and footer for each page, page margins and
fonts used.
Example To create headers and footers with variable and fixed elements, use something like the following:
This reserves a header (...) for a fixed title, version and status entry, and a footer that has the page number in the center. Also note the additional quotes ("") arround the fixed header entries.define('CSTD_HEADER', '...'); define('CSTD_FOOTER', '.1.'); define('CSTD_HEADERLEFT', '"TIOBE Software C++ Coding Standard"'); define('CSTD_HEADERCENTER', '"Version 0.1.5"'); define('CSTD_HEADERRIGHT', '"Draft"');
The front page of the PDF report is generated from the preamble. The preamble can be configured from the 'home' page of the coding standard viewer.
codingstandard.txt
The following conventions must be when defining anchors and refererences:
element name href Category {Name} #{Name} Rule Rule_{RuleID} #Rule_{RuleID} Literature Literature_{LiteratureID} {Link}
product.ini
Below, a list of all available keys is given with some example values.
PRODUCTLOGO="res/tiobe.gif" PRODUCTLOGOWIDTH=49 PRODUCTLOGOHEIGHT=45 PRODUCTNAME="TICS Coding Standard" PRODUCTSUBNAME="TIOBE Coding Standard Framework" COMPANYNAME="TIOBE Software BV" COMPANYWEBSITE="www.tiobe.com" COMPANYLOGO="res/logo-tiobe.gif" COPYRIGHTTEXT="© 2004-2006 TIOBE Software BV" COPYRIGHTWEBSITE="www.tiobe.com"