The Abraxas CodeCheck rule files included are:
These Rule Files can be down-loaded for free from -
codchk rules for Windows or UNIX
ansi.cc Check for compatibility with the ANSI C standard.
braces.cc Check for consistent use of braces in high-level statements.
bsd43.cc Check for use of BSD 4.3 features that are not POSIX.
cargill.cc Rules developed from the recommendations presented in Tom Cargill's book "C++ Programming Style". It mainly illustrates the future direction of CodeCheck rules.
class.cc Example rule checking if keyword "class" starts a line.
complex.cc Measures of program complexity (McCabe, etc).
conv.cc Detects potentially dangerous implicit type conversions.
commentblock_check.cc Checking the presence, order and format of commentary block of a module( source file ).
cplist.cc Lists and describes all classes in each module.
cplus.cc Example rules for C++ style checking.
cscps.cc Rules Developed following Credintrans Specific C Programming Standard.
cyclomatic_complexity_with_case.cc Rule calculates the cyclomatic complexity with case.
dcomp.cc In directory data_complexity, used combined with program (dcomp.c) to calculate the data complexity. Rule calculates the cyclomatic complexity without case.
dcl.cc Example rules that use the declarator variables.
decl.cc Example rule checking if only one declarator per line.
decl_check.cc Example rules on declaration checking.
declare.cc Interpret global declarations in ordinary "English".
dupdec.cc In directory dupdec_check, combined with program (dupdec.c) to detect duplicated definition of functions project-wide duplicated declaration of functions module-wide.
ellem.cc Example rules for practical C++ style checking.
empty_default.cc Example rule checking if there is an empty default case in switch statement.
error.cc Check for errors that compilers may not find.
fcncalls.cc Generate a list of functions called by each function.
fcndebug.cc Rules check that a macro function named FCN_DEBUG has been found at every entry and exit point of every function.
forbidfs.cc Rule show a way how to check a list of functions have been called, which is set in a file in advance.
forward.cc Example rules that illustrate forward chaining.
fromHP.cc Check for portability from HP/Apollo C.
fromVAX.cc Check for portability from VAX C.
general.cc Check for general portability.
growpath.cc Example rule illustrating launching other program in rule and expand include path list dynamically. See subdirectory exec.
guide.cc Examples rules created according to some users' inquiries.
Halstead.cc Measures of program size developed by Halstead.
indent.cc Check for proper indentation.
itertype.cc Check for the type of the iterator variable of a for loop.
lex.cc Example rules that use the lexical variables.
logical.cc Check for if-conditions that are too complex.
macro_scope.cc Rule checking if a macro defined in a function body.
maintain.cc Check for general maintainability.
meyers.cc Rules to implement items listed in Effective C++ and More Effective C++ ( Scott Meyers ).
modified_cyclomatic_complexity.cc Rule calculates the modified cyclomatic complexity.
nesting.cc Example rules for measuring iteration nesting.
nomagic.cc Example rule checking if any magic number is used.
oometric.cc Computes several object-oriented metrics.
opening_brace.cc Rule checking if a open brace of a compound statement has its own line.
order.cc Check for standard ordering of file elements.
plum.cc Rules implement a great many of the C programming guidelines published by Thomas Plum.
portability.cc Rules for some portability checking.
posix.cc Check for violations of the POSIX namespaces.
posix2.cc Expanded rule set based on POSIX.
pp.cc Example rules that use the preprocessor variables.
prefix.cc Example rules for checking declarator prefixes.
sample.cc Example rules for compliance with standards.
size.cc Measures of program size based on lines & statements.
sizeof.cc Example rule checking the use of sizeof.
skiphead.cc Example rule disable rules on certain header files.
stm.cc Example rule checking if a line contains more than one statements.
stmt_per_line.cc This rule is improved version of stm.cc.
string.cc Example rule checking possible out of boundary problem in calling function strcpy().
style.cc Check for compliance with Comeau's C style standards.
SVID.cc Check for use of SVID features that are not POSIX.
toIntel.cc Check for portability to the Intel iC-386 V4.2 compiler.
toKR.cc Check for portability to the 1978 K&R C standard.
toMPW.cc Check for portability to Macintosh MPW C version 3.2.
toSunCPP.cc Check for portability to Sun C++ version 2.1.
toVAX.cc Check for portability to VAX C.
use_after_close.cc Check for if a file is used after closed.
version_check.cc Miscellaneous example rules.
whocalls.cc Example rule telling caller's name and line number when function is called.
wrapper.cc Detect headers and #includes that are not "wrapped".
wrapper_too.cc Yet another rule for checking header file wrapper.
xyzrule.cc Checks for compatibility with Corp. XYZ's C++ standards.