| |||||||||||||||||||||||||||||||||||||||
What is ClearCodeClearCode is a source code analysis tool. It is language-independent regexp-based tool that examines your source code for common rules or your own project-specific rules. How ClearCode worksClearCode uses regular expressions (also known as "regexps") to examine source code for dangerous code. Each project manager knows many rules for source code that specified only for his project. ClearCode shows you "dangerous" code fragment. And you may fix it from built-in editor. I use ClearCode all time while I am doing project/build management in software projects. ClearCode checks whole folder and all sub-folders recursively. Where to obtain details for regexps syntax?ClearCode uses PCRE (Perl-compatible regular expressions) engine. See details at http://www.pcre.org/. Where to define rules?ClearCode uses INI files to store rules. There are two kinds of INI files: global and local. Global INI file resides in the same folder with "ClearCode.exe" and has same name, typically: "ClearCode.ini". Local INI has same name and can be placed in source code folders optionally to tune "folder-specified rules". When you check these folders with ClearCode, information from local INI files will be used, too. Rules syntaxRules are placed in INI file sections. There are two kinds of sections: 1. Sections that define rules for source code checking. Parameters are:
2. Sections that define rules for detecting comments in source code (See "CheckAll" parameter). Parameters are:
OptionsGlobal and local INI files may contains [Options] section that describes some behavior details in ClearCode.
You can override global rules at any level of local INI files. How? Just example: == global ClearCase.ini == [SampleRule] Active=1 FindPattern=ObsoletedProcCall Message=ObsoletedProcCall is not allowed == end of global ClearCase.ini == == local ClearCase.ini == [SampleRule] Active=0 == end of local ClearCase.ini == Isn't so difficult? Next === Documentation is generated by Word2Help === |
|||||||||||||||||||||||||||||||||||||||