JAL-3141 test file in test folder not examples
[jalview.git] / utils / checkstyle / import-control.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE import-control PUBLIC
4     "-//Puppy Crawl//DTD Import Control 1.1//EN"
5     "http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
6     
7     <!--
8         see http://checkstyle.sourceforge.net/config_imports.html#ImportControl
9         allow/disallow rules propagate to sub-packages 
10         unless local-only="true" is specified
11         
12         note this can handle only one top-level package, so ImportControl is
13         suppressed for MCview and vamsas in checkstyle-suppress.xml
14         (all rules are suppressed for com/ext/org/uk)
15     -->
16    <import-control pkg="jalview">
17    
18                 <allow pkg="java"/>
19                 <allow pkg="jalview"/>
20                 <allow pkg="com.stevesoft.pat"/>
21                 
22                 <subpackage name="appletgui">
23                 <disallow pkg="javax.swing"/>
24                 <disallow pkg="jalview.gui"/>
25                 <disallow pkg="jalview.ws"/>
26                 <allow pkg="org.jmol"/>
27                 <allow pkg="javajs.awt" class="jalview.appletgui.AppletJmolBinding"/>
28             </subpackage>
29                 
30                 <subpackage name="bin">
31                 <allow pkg="groovy"/>
32                 <allow pkg="org.apache.log4j" class="jalview.bin.Cache"/>
33                 <allow pkg="javax.swing" class="jalview.bin.Jalview"/>
34                 <allow pkg="netscape.javascript" class="jalview.bin.JalviewLite"/>
35             </subpackage>
36                 
37                 <subpackage name="datamodel">
38                 <disallow pkg="jalview.gui"/>
39                 <allow pkg="fr.orsay.lri.varna"/>
40                         <subpackage name="xdb.embl">
41                         <allow pkg="org.exolab.castor"/>
42                     </subpackage>
43             </subpackage>
44                 
45                 <subpackage name="ext">
46                         <subpackage name="ensembl">
47                         <allow pkg="javax.ws"/>
48                         <allow pkg="org.json"/>
49                         </subpackage>
50                         <subpackage name="htsjdk">
51                         <allow pkg="htsjdk"/>
52                         </subpackage>
53                         <subpackage name="jmol">
54                         <allow pkg="MCview"/>
55                         <allow pkg="org.jmol"/>
56                         </subpackage>
57                         <subpackage name="paradise">
58                         <allow pkg="org.apache"/>
59                         <allow pkg="org.json"/>
60                         </subpackage>
61                         <subpackage name="rbvi">
62                         <allow pkg="ext.edu.ucsf"/>
63                         <allow pkg="javax.servlet"/>
64                         </subpackage>
65                         <subpackage name="so">
66                         <allow pkg="org.biojava"/>
67                         </subpackage>
68                         <subpackage name="varna">
69                         <allow pkg="fr.orsay"/>
70                         </subpackage>
71             </subpackage>
72                 
73                 <subpackage name="fts">
74                 <allow pkg="javax.swing"/>
75                 <allow pkg="javax.ws"/>
76                 <allow pkg="org.json"/>
77                 <allow pkg="com.sun.jersey"/>
78             </subpackage>
79                 
80                 <subpackage name="gui">
81                 <allow pkg="javax.swing"/>
82                 <allow pkg="javax.help"/>
83                 <allow pkg="javax.imageio"/>
84                 <allow pkg="ext.edu.ucsf"/>
85                 <allow pkg="net.miginfocom"/>
86                 <allow pkg="org.jibble"/>
87                 <allow pkg="org.jmol"/>
88                 <allow pkg="org.openscience"/>
89                 <allow pkg="org.exolab.castor" class="jalview.gui.Jalview2XML"/>
90                 <allow pkg="org.robsite" class="jalview.gui.BlogReader"/>
91                 <allow pkg="org.apache.log4j" class="jalview.gui.Console"/>
92                 <allow pkg="org.apache.log4j" class="jalview.gui.JalviewAppender"/>
93                 <allow pkg="org.biodas" class="jalview.gui.DasSourceBrowser"/>
94                 <allow pkg="compbio.metadata" class="jalview.gui.WsJobParameters"/>
95                 <allow pkg="fr.orsay.lri.varna" class="jalview.gui.AppVarna"/>
96                 <allow pkg="fr.orsay.lri.varna" class="jalview.gui.AppVarnaBinding"/>
97                 <allow pkg="org.stackoverflowusers.file" class="jalview.gui.Desktop"/>
98                 <allow pkg="uk.ac.vamsas" class="jalview.gui.VamsasApplication"/>
99             </subpackage>
100                 
101                 <subpackage name="jbgui">
102                 <allow pkg="javax.swing"/>
103                 <allow pkg="net.miginfocom"/>
104             </subpackage>
105
106                 <subpackage name="httpserver">
107                 <allow pkg="javax.servlet"/>
108                 <allow pkg="org.eclipse.jetty"/>
109             </subpackage>
110
111                 <subpackage name="io">
112                 <allow pkg="javax.swing"/>
113                 <allow pkg="org.jfree"/>
114                 <allow pkg="org.json"/>
115                 <allow pkg="org.jsoup"/>
116                 <allow pkg="uk.ac.ebi"/>
117                 <allow pkg="uk.ac.vamsas"/>
118                 <allow pkg="fr.orsay.lri.varna"/>
119                 <allow pkg="MCview"/>
120                         <subpackage name="vcf">
121                         <allow pkg="htsjdk\.*" regex="true"/>
122                         </subpackage>       
123                 </subpackage>       
124                                 
125                 <subpackage name="javascript">
126                 <allow pkg="netscape.javascript"/>
127             </subpackage>
128
129                 <subpackage name="rest">
130                 <allow pkg="javax.servlet"/>
131                 </subpackage>
132
133                 <subpackage name="schemes">
134                         <allow pkg="org.exolab.castor" class="jalview.schemes.ColourSchemeLoader"/>
135                 </subpackage>
136
137                 <subpackage name="structure">
138                 <allow pkg="MCview"/>
139                 </subpackage>
140                 
141                 <subpackage name="urls">
142                         <allow pkg="javax.swing" class="jalview.urls.UrlLinkTableModel"/>
143                         <allow pkg="org.json"/>
144                 </subpackage>
145
146                 <subpackage name="util">
147                 <allow pkg="javax.swing"/>
148                 <allow pkg="javax.imageio"/>
149                 <allow pkg="org.jfree"/>
150                 <allow pkg="org.jibble"/>
151                 </subpackage>
152
153                 <subpackage name="ws">
154                 <allow pkg="javax.swing"/>
155                 <allow pkg="javax.xml"/>
156                 <allow pkg="ext.vamsas"/>
157                 <allow pkg="compbio"/>
158                 <allow pkg="MCview"/>
159                 <allow pkg="org.apache.http"/>
160                 <allow pkg="org.apache.james"/>
161                 <allow pkg="org.apache.axis"/>
162                 <allow pkg="org.biodas.jdas"/>
163                 <allow pkg="org.exolab.castor"/>
164                 <allow pkg="uk.ac.ebi"/>
165                 <allow pkg="vamsas.objects"/>
166                 </subpackage>
167
168    </import-control>