OSDN Git Service

必要のないクラスを削除し,クラスの整理を行った.
[stigmata/stigmata.git] / src / main / resources / resources / stigmata.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <stigmata>
4   <birthmark-services>
5     <birthmark-service>
6       <type>uc_seq</type>
7       <description></description>
8       <extractor>
9         jp.sourceforge.stigmata.birthmarks.uc.UsedClassesBirthmarkExtractor
10       </extractor>
11       <comparator>
12         jp.sourceforge.stigmata.birthmarks.comparators.PlainBirthmarkComparator
13       </comparator>
14     </birthmark-service>
15
16     <birthmark-service>
17       <type>uc_dp</type>
18       <description></description>
19       <extractor>
20         jp.sourceforge.stigmata.birthmarks.uc.UsedClassesBirthmarkExtractor
21       </extractor>
22       <comparator>
23         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
24       </comparator>
25     </birthmark-service>
26
27     <birthmark-service>
28       <type>uc_ed</type>
29       <description></description>
30       <extractor>
31         jp.sourceforge.stigmata.birthmarks.uc.UsedClassesBirthmarkExtractor
32       </extractor>
33       <comparator>
34         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
35       </comparator>
36     </birthmark-service>
37
38     <birthmark-service>
39       <type>is_ed</type>
40       <description></description>
41       <extractor>
42         jp.sourceforge.stigmata.birthmarks.is.InheritanceStructureBirthmarkExtractor
43       </extractor>
44       <comparator>
45         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
46       </comparator>
47     </birthmark-service>
48
49     <birthmark-service>
50       <type>is_dp</type>
51       <description></description>
52       <extractor>
53         jp.sourceforge.stigmata.birthmarks.is.InheritanceStructureBirthmarkExtractor
54       </extractor>
55       <comparator>
56         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
57       </comparator>
58     </birthmark-service>
59
60     <birthmark-service>
61       <type>smc_dp</type>
62       <description></description>
63       <extractor>
64         jp.sourceforge.stigmata.birthmarks.smc.SequentialMethodCallBirthmarkExtractor
65       </extractor>
66       <comparator>
67         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
68       </comparator>
69     </birthmark-service>
70
71     <birthmark-service>
72       <type>smc_ed</type>
73       <description></description>
74       <extractor>
75         jp.sourceforge.stigmata.birthmarks.smc.SequentialMethodCallBirthmarkExtractor
76       </extractor>
77       <comparator>
78         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
79       </comparator>
80     </birthmark-service>
81
82     <birthmark-service>
83       <type>cvfv_ed</type>
84       <description></description>
85       <extractor>
86         jp.sourceforge.stigmata.birthmarks.cvfv.ConstantValueOfFieldVariableBirthmarkExtractor
87       </extractor>
88       <comparator>
89         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
90       </comparator>
91     </birthmark-service>
92
93     <birthmark-service>
94       <type>cvfv_dp</type>
95       <description></description>
96       <extractor>
97         jp.sourceforge.stigmata.birthmarks.cvfv.ConstantValueOfFieldVariableBirthmarkExtractor
98       </extractor>
99       <comparator>
100         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
101       </comparator>
102     </birthmark-service>
103   </birthmark-services>
104
105   <filterset-list>
106     <filterset>
107       <name>threshold</name>
108       <!--
109         available value is `all' or `any':
110         match all of filters or match any of filters
111       -->
112       <match>all</match>
113       <filter-list>
114         <filter>
115           <filter-type>similarity</filter-type>
116           <criterion>GREATER_THAN</criterion>
117           <attributes>
118             <attribute>
119               <name>threshold</name>
120               <value>0.8</value>
121             </attribute>
122           </attributes>
123         </filter>
124         <filter>
125           <filter-type>name</filter-type>
126           <criterion>NOT_MATCH</criterion>
127           <attributes>
128             <attribute>
129               <name>value</name>
130               <value><!-- value --></value>
131             </attribute>
132           </attributes>
133         </filter>
134       </filter-list>
135     </filterset>
136     <filterset>
137       <name>elementcounts</name>
138       <match>all</match>
139       <filter-list>
140         <filter>
141           <filter-type>elementcount</filter-type>
142           <criterion>GREATER_EQUALS</criterion>
143           <attributes>
144             <attribute>
145               <name>target</name>
146               <value>ONE_OF_TARGETS</value>
147             </attribute>
148             <attribute>
149               <name>birthmarkType</name>
150               <value>uc</value>
151             </attribute>
152             <attribute>
153               <name>threshold</name>
154               <value>10</value>
155             </attribute>
156           </attributes>
157         </filter>
158       </filter-list>
159     </filterset>
160   </filterset-list>
161
162   <!--
163     Settings for wellknown classes.
164     パッケージの接頭辞,クラス名の接尾辞,クラスの完全修飾名で
165     設定することができる.
166    -->
167   <wellknown-classes>
168     <!--
169       Those names are excluded from wellknown classes, even if
170       following parts define the name is contain wellknown classes.
171
172       この中に含まれるものは他でいくら wellknown と設定されていても無視する.
173     -->
174     <exclude><fully-name><suffix>Exception</suffix></fully-name></exclude>
175     <exclude><fully-name><suffix>Error</suffix></fully-name></exclude>
176     <exclude><fully-name><match>java.lang.Throwable</match></fully-name></exclude>
177     <exclude><fully-name><match>java.lang.ThreadDeath</match></fully-name></exclude>
178
179     <!-- Package names includes JDK 1.5 -->
180     <package-name><prefix>java</prefix></package-name>
181     <package-name><prefix>javax</prefix></package-name>
182     <package-name><prefix>org.omg</prefix></package-name>
183     <package-name><prefix>org.xml</prefix></package-name>
184     <package-name><prefix>org.w3c</prefix></package-name>
185     <package-name><prefix>org.ietf</prefix></package-name>
186
187     <!-- その他,よく使われていそうなパッケージ -->
188     <package-name><prefix>org.gnu</prefix></package-name>
189     <package-name><prefix>com.apple</prefix></package-name>
190     <package-name><prefix>pnuts</prefix></package-name>
191     <package-name><prefix>org.eclipse</prefix></package-name>
192     <package-name><prefix>com.sun</prefix></package-name>
193     <package-name><prefix>sun</prefix></package-name>
194     <package-name><prefix>junit</prefix></package-name>
195     <package-name><prefix>org.apache</prefix></package-name>
196
197     <class-name><suffix>Test</suffix></class-name>
198 <!--
199     <class-name><match>well.known.class.name</match></class-name>
200 -->
201 <!--
202     <fully-name><suffix>Test</suffix></fully-name>
203     <fully-name><prefix>fully.class.name.preffix</prefix></fully-name>
204     <fully-name><match>fully.class.name.match</match></fully-name>
205 -->
206   </wellknown-classes>
207
208   <classpath-list>
209     <!-- classpath setting in url representation -->
210     <!--
211     <classpath>url/format/of/path/to/jar/file</classpath>
212     -->
213   </classpath-list>
214
215   <!-- Properties for birthmark context -->
216   <properties>
217     <property>
218       <name>extractor.kgram.KValue</name>
219       <value>4</value>
220     </property>
221     <property>
222       <name>extractor.kmc.KValue</name>
223       <value>4</value>
224     </property>
225     <property>
226       <name>birthmark.store.target</name>
227       <value>MEMORY</value>
228     </property>
229     <property>
230       <name>override.exists.plugin</name>
231       <value>yes</value>
232     </property>
233     <property>
234       <name>update.plugins.startup</name>
235       <value>yes</value>
236     </property>
237 <!--
238   If you want to use latest plugins, uncomment below property.
239     <property>
240       <name>location.hermes.config</name>
241       <value>http://stigmata.sourceforge.jp/plugins/hermes.xml</value>
242     </property>
243 -->
244 <!--
245     <property>
246       <property-name>name</property-name>
247       <property-value>value</property-value>
248     </property>
249 -->
250   </properties>
251 </stigmata>