srcanamdw/codescanner/cs_config.xml
author noe\swadi
Thu, 18 Feb 2010 12:29:02 +0530
changeset 1 22878952f6e2
permissions -rw-r--r--
Committing the CodeScanner Core tool This component has been moved from the StaticAnaApps package. BUG : 5889 (http://developer.symbian.org/webbugs/show_bug.cgi?id=5889).

<!-- This is a configuration file for Codescanner from Nokia. -->
<codescannerConfig>

	<sources>
		<!-- source files matching any of the exclude patterns below will not be scanned -->

		<!-- binary files -->
		<exclude>.*\.au</exclude>
		<exclude>.*\.avi</exclude>
		<exclude>.*\.bmp</exclude>
		<exclude>.*\.dll</exclude>
		<exclude>.*\.doc</exclude>
		<exclude>.*\.exe</exclude>
		<exclude>.*\.gif</exclude>
		<exclude>.*\.jpg</exclude>
		<exclude>.*\.mbm</exclude>
		<exclude>.*\.mp3</exclude>
		<exclude>.*\.mpg</exclude>
		<exclude>.*\.png</exclude>
		<exclude>.*\.raw</exclude>
		<exclude>.*\.rtf</exclude>
		<exclude>.*\.tif</exclude>
		<exclude>.*\.wav</exclude>
		<exclude>.*\.wbmp</exclude>
		<exclude>.*\.wmf</exclude>
		<exclude>.*\.xls</exclude>
	</sources>

	<scripts>
		<!-- Every element in this section corresponds to a Codescanner script -->
		<!-- Every element has the following common attributes: -->
		<!--    enable="true" or "false" -->
		<!-- Some scripts have additional attributes or elements. -->

		<accessArrayElementWithoutCheck enable="true"/>
		<accessArrayElementWithoutCheck2 enable="true"/>
		<activestart enable="true"/>
		<activestop enable="true"/>
		<arraypassing enable="true"/>
		<arrayptrcleanup enable="true"/>
		<assertdebuginvariant enable="true"/>
		<baddefines enable="true"/>
		<baseconstruct enable="true"/>
		<callActiveObjectWithoutCheckingOrStopping enable="true"/>
		<changenotification enable="true"/>
		<cleanup enable="true"/>
		<commentcode enable="true"/>
		<connect enable="true"/>
		<ConnectAndDontCloseMemberVariable enable="true"/>
		<constnames enable="true"/>
		<consttdescptr enable="true"/>
		<controlornull enable="true"/>
		<ctltargettype enable="true"/>
		<debugrom enable="true"/>
		<declarename enable="true"/>
		<deleteMemberVariable enable="true"/>
		<destructor enable="true"/>
		<doubleSemiColon enable="true"/>
		<driveletters enable="true"/>
		<eikbuttons enable="true"/>
		<eikonenvstatic enable="true"/>
		<enummembers enable="true"/>
		<enumnames enable="true"/>
		<exportinline enable="true"/>
		<exportpurevirtual enable="true"/>
		<externaldriveletters enable="true"/>
		<foff enable="true"/>
		<forbiddenwords enable="true">
			<!-- the following regular expression specifies the forbidden words detected by this script -->
			<wordsRE>Typhoon|Hurricane|HelloWorld|Calypso|Rubik|Epoc|Nokia Mobile Phones|NMP|Mobile Innovation|(^|\s)S90|(^|\s)S80|(^|\s)S60</wordsRE>
		</forbiddenwords>
		<forgottoputptroncleanupstack enable="true"/>
		<friend enable="true"/>
		<goto enable="true"/>
		<ifassignments enable="true"/>
		<ifpreprocessor enable="true"/>
		<intleaves enable="true"/>
		<jmp enable="true"/>
		<leave enable="true"/>
		<LeaveNoError enable="true"/>
		<leavingoperators enable="true"/>
		<LFunctionCantLeave enable="true"/>
		<!-- the length attribute specifies the largest number of characters permitted by this script -->
		<longlines enable="true" length="160" />
		<magicnumbers enable="true"/>
		<mclassdestructor enable="true"/>
		<memberlc enable="true"/>
		<membervariablecallld enable="true"/>
		<missingcclass enable="true"/>
		<mmpsourcepath enable="true"/>
		<multilangrsc enable="true"/>
		<multipledeclarations enable="true"/>
		<multipleinheritance enable="true"/>
		<mydocs enable="true"/>
		<namespace enable="true"/>
		<newlreferences enable="true"/>
		<noleavetrap enable="true"/>
		<nonconsthbufc enable="true"/>
		<nonconsttdesc enable="true"/>
		<nonleavenew enable="true"/>
		<nonunicodeskins enable="true"/>
		<null enable="true"/>
		<open enable="true"/>
		<pointertoarrays enable="true"/>
		<pragmadisable enable="true"/>
		<pragmamessage enable="true"/>
		<pragmaother enable="true"/>
		<privateinheritance enable="true"/>
		<pushaddrvar enable="true"/>
		<pushmember enable="true"/>
		<readresource enable="true"/>
		<resourcesonheap enable="true"/>
		<returndescriptoroutofscope enable="true"/>
		<rfs enable="true"/>
		<rssnames enable="true"/>
		<stringliterals enable="true"/>
		<stringsinresourcefiles enable="true"/>
		<struct enable="true"/>
		<tcclasses enable="true"/>
		<tclassdestructor enable="true"/>
		<todocomments enable="true"/>
		<trapcleanup enable="true"/>
		<trapeleave enable="true"/>
		<traprunl enable="true"/>
		<trspassing enable="true"/>
		<uids enable="true"/>
		<uncompressedaif enable="true"/>
		<uncompressedbmp enable="true"/>
		<unicodesource enable="true"/>
		<userafter enable="true"/>
		<userfree enable="true"/>
		<userWaitForRequest enable="true"/>
		<variablenames enable="true"/>
		<voidparameter enable="true"/>
		<worryingcomments enable="true">
			<!-- the following regular expression specifies the worrying comments detected by this script -->
			<worryRE>\!|\?|[Zz]{3}|kludge|workaround|\scrap|hack</worryRE>
		</worryingcomments>
	</scripts>

	<severities>
		<!-- Group scripts based on severity level: -->
		<!--    enable="true" or "false" -->

		<high enable="true"/>
		<medium enable="true"/>
		<low enable="true"/>
	</severities>

	<categories>
		<!-- Group scripts based on category: -->
		<!--    enable="true" or "false" -->

		<legal enable="true"/>
		<panic enable="true"/>
		<canpanic enable="true"/>
		<functionality enable="true"/>
		<localisation enable="true"/>
		<performance enable="true"/>
		<codingstandards enable="true"/>
		<documentation enable="true"/>
		<codereview enable="true"/>
		<other enable="true"/>
	</categories>

</codescannerConfig>