1
|
1 |
<!-- This is a configuration file for Codescanner from Nokia. -->
|
|
2 |
<codescannerConfig>
|
|
3 |
|
|
4 |
<sources>
|
|
5 |
<!-- source files matching any of the exclude patterns below will not be scanned -->
|
|
6 |
|
|
7 |
<!-- binary files -->
|
|
8 |
<exclude>.*\.au</exclude>
|
|
9 |
<exclude>.*\.avi</exclude>
|
|
10 |
<exclude>.*\.bmp</exclude>
|
|
11 |
<exclude>.*\.dll</exclude>
|
|
12 |
<exclude>.*\.doc</exclude>
|
|
13 |
<exclude>.*\.exe</exclude>
|
|
14 |
<exclude>.*\.gif</exclude>
|
|
15 |
<exclude>.*\.jpg</exclude>
|
|
16 |
<exclude>.*\.mbm</exclude>
|
|
17 |
<exclude>.*\.mp3</exclude>
|
|
18 |
<exclude>.*\.mpg</exclude>
|
|
19 |
<exclude>.*\.png</exclude>
|
|
20 |
<exclude>.*\.raw</exclude>
|
|
21 |
<exclude>.*\.rtf</exclude>
|
|
22 |
<exclude>.*\.tif</exclude>
|
|
23 |
<exclude>.*\.wav</exclude>
|
|
24 |
<exclude>.*\.wbmp</exclude>
|
|
25 |
<exclude>.*\.wmf</exclude>
|
|
26 |
<exclude>.*\.xls</exclude>
|
|
27 |
</sources>
|
|
28 |
|
|
29 |
<scripts>
|
|
30 |
<!-- Every element in this section corresponds to a Codescanner script -->
|
|
31 |
<!-- Every element has the following common attributes: -->
|
|
32 |
<!-- enable="true" or "false" -->
|
|
33 |
<!-- Some scripts have additional attributes or elements. -->
|
|
34 |
|
|
35 |
<accessArrayElementWithoutCheck enable="true"/>
|
|
36 |
<accessArrayElementWithoutCheck2 enable="true"/>
|
|
37 |
<activestart enable="true"/>
|
|
38 |
<activestop enable="true"/>
|
|
39 |
<arraypassing enable="true"/>
|
|
40 |
<arrayptrcleanup enable="true"/>
|
|
41 |
<assertdebuginvariant enable="true"/>
|
|
42 |
<baddefines enable="true"/>
|
|
43 |
<baseconstruct enable="true"/>
|
|
44 |
<callActiveObjectWithoutCheckingOrStopping enable="true"/>
|
|
45 |
<changenotification enable="true"/>
|
|
46 |
<cleanup enable="true"/>
|
|
47 |
<commentcode enable="true"/>
|
|
48 |
<connect enable="true"/>
|
|
49 |
<ConnectAndDontCloseMemberVariable enable="true"/>
|
|
50 |
<constnames enable="true"/>
|
|
51 |
<consttdescptr enable="true"/>
|
|
52 |
<controlornull enable="true"/>
|
|
53 |
<ctltargettype enable="true"/>
|
|
54 |
<debugrom enable="true"/>
|
|
55 |
<declarename enable="true"/>
|
|
56 |
<deleteMemberVariable enable="true"/>
|
|
57 |
<destructor enable="true"/>
|
|
58 |
<doubleSemiColon enable="true"/>
|
|
59 |
<driveletters enable="true"/>
|
|
60 |
<eikbuttons enable="true"/>
|
|
61 |
<eikonenvstatic enable="true"/>
|
|
62 |
<enummembers enable="true"/>
|
|
63 |
<enumnames enable="true"/>
|
|
64 |
<exportinline enable="true"/>
|
|
65 |
<exportpurevirtual enable="true"/>
|
|
66 |
<externaldriveletters enable="true"/>
|
|
67 |
<foff enable="true"/>
|
|
68 |
<forbiddenwords enable="true">
|
|
69 |
<!-- the following regular expression specifies the forbidden words detected by this script -->
|
|
70 |
<wordsRE>Typhoon|Hurricane|HelloWorld|Calypso|Rubik|Epoc|Nokia Mobile Phones|NMP|Mobile Innovation|(^|\s)S90|(^|\s)S80|(^|\s)S60</wordsRE>
|
|
71 |
</forbiddenwords>
|
|
72 |
<forgottoputptroncleanupstack enable="true"/>
|
|
73 |
<friend enable="true"/>
|
|
74 |
<goto enable="true"/>
|
|
75 |
<ifassignments enable="true"/>
|
|
76 |
<ifpreprocessor enable="true"/>
|
|
77 |
<intleaves enable="true"/>
|
|
78 |
<jmp enable="true"/>
|
|
79 |
<leave enable="true"/>
|
|
80 |
<LeaveNoError enable="true"/>
|
|
81 |
<leavingoperators enable="true"/>
|
|
82 |
<LFunctionCantLeave enable="true"/>
|
|
83 |
<!-- the length attribute specifies the largest number of characters permitted by this script -->
|
|
84 |
<longlines enable="true" length="160" />
|
|
85 |
<magicnumbers enable="true"/>
|
|
86 |
<mclassdestructor enable="true"/>
|
|
87 |
<memberlc enable="true"/>
|
|
88 |
<membervariablecallld enable="true"/>
|
|
89 |
<missingcclass enable="true"/>
|
|
90 |
<mmpsourcepath enable="true"/>
|
|
91 |
<multilangrsc enable="true"/>
|
|
92 |
<multipledeclarations enable="true"/>
|
|
93 |
<multipleinheritance enable="true"/>
|
|
94 |
<mydocs enable="true"/>
|
|
95 |
<namespace enable="true"/>
|
|
96 |
<newlreferences enable="true"/>
|
|
97 |
<noleavetrap enable="true"/>
|
|
98 |
<nonconsthbufc enable="true"/>
|
|
99 |
<nonconsttdesc enable="true"/>
|
|
100 |
<nonleavenew enable="true"/>
|
|
101 |
<nonunicodeskins enable="true"/>
|
|
102 |
<null enable="true"/>
|
|
103 |
<open enable="true"/>
|
|
104 |
<pointertoarrays enable="true"/>
|
|
105 |
<pragmadisable enable="true"/>
|
|
106 |
<pragmamessage enable="true"/>
|
|
107 |
<pragmaother enable="true"/>
|
|
108 |
<privateinheritance enable="true"/>
|
|
109 |
<pushaddrvar enable="true"/>
|
|
110 |
<pushmember enable="true"/>
|
|
111 |
<readresource enable="true"/>
|
|
112 |
<resourcesonheap enable="true"/>
|
|
113 |
<returndescriptoroutofscope enable="true"/>
|
|
114 |
<rfs enable="true"/>
|
|
115 |
<rssnames enable="true"/>
|
|
116 |
<stringliterals enable="true"/>
|
|
117 |
<stringsinresourcefiles enable="true"/>
|
|
118 |
<struct enable="true"/>
|
|
119 |
<tcclasses enable="true"/>
|
|
120 |
<tclassdestructor enable="true"/>
|
|
121 |
<todocomments enable="true"/>
|
|
122 |
<trapcleanup enable="true"/>
|
|
123 |
<trapeleave enable="true"/>
|
|
124 |
<traprunl enable="true"/>
|
|
125 |
<trspassing enable="true"/>
|
|
126 |
<uids enable="true"/>
|
|
127 |
<uncompressedaif enable="true"/>
|
|
128 |
<uncompressedbmp enable="true"/>
|
|
129 |
<unicodesource enable="true"/>
|
|
130 |
<userafter enable="true"/>
|
|
131 |
<userfree enable="true"/>
|
|
132 |
<userWaitForRequest enable="true"/>
|
|
133 |
<variablenames enable="true"/>
|
|
134 |
<voidparameter enable="true"/>
|
|
135 |
<worryingcomments enable="true">
|
|
136 |
<!-- the following regular expression specifies the worrying comments detected by this script -->
|
|
137 |
<worryRE>\!|\?|[Zz]{3}|kludge|workaround|\scrap|hack</worryRE>
|
|
138 |
</worryingcomments>
|
|
139 |
</scripts>
|
|
140 |
|
|
141 |
<severities>
|
|
142 |
<!-- Group scripts based on severity level: -->
|
|
143 |
<!-- enable="true" or "false" -->
|
|
144 |
|
|
145 |
<high enable="true"/>
|
|
146 |
<medium enable="true"/>
|
|
147 |
<low enable="true"/>
|
|
148 |
</severities>
|
|
149 |
|
|
150 |
<categories>
|
|
151 |
<!-- Group scripts based on category: -->
|
|
152 |
<!-- enable="true" or "false" -->
|
|
153 |
|
|
154 |
<legal enable="true"/>
|
|
155 |
<panic enable="true"/>
|
|
156 |
<canpanic enable="true"/>
|
|
157 |
<functionality enable="true"/>
|
|
158 |
<localisation enable="true"/>
|
|
159 |
<performance enable="true"/>
|
|
160 |
<codingstandards enable="true"/>
|
|
161 |
<documentation enable="true"/>
|
|
162 |
<codereview enable="true"/>
|
|
163 |
<other enable="true"/>
|
|
164 |
</categories>
|
|
165 |
|
|
166 |
</codescannerConfig>
|