"Fossies" - the Fresh Open Source Software Archive

Member "apache-log4j-2.12.4-src/checkstyle-import-control.xml" (20 Dec 2021, 3061 Bytes) of package /linux/misc/apache-log4j-2.12.4-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0" encoding="UTF-8"?>
    2 <!DOCTYPE import-control PUBLIC
    3     "-//Puppy Crawl//DTD Import Control 1.1//EN"
    4     "http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
    5 
    6 <!--
    7    Licensed to the Apache Software Foundation (ASF) under one or more
    8    contributor license agreements.  See the NOTICE file distributed with
    9    this work for additional information regarding copyright ownership.
   10    The ASF licenses this file to You under the Apache License, Version 2.0
   11    (the "License"); you may not use this file except in compliance with
   12    the License.  You may obtain a copy of the License at
   13 
   14        http://www.apache.org/licenses/LICENSE-2.0
   15 
   16    Unless required by applicable law or agreed to in writing, software
   17    distributed under the License is distributed on an "AS IS" BASIS,
   18    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   19    See the License for the specific language governing permissions and
   20    limitations under the License.
   21 -->
   22 
   23 <import-control pkg="org">
   24   <!-- Allow all by default -->
   25   <allow pkg="java" />
   26   <allow pkg="javax" />
   27   <allow pkg="org" />
   28   <allow pkg="com" />
   29   <allow pkg="net" />
   30   <allow pkg="ch" />
   31   <allow pkg="junit" />
   32   <allow pkg="contribs" />
   33 
   34   <!-- Disallow sun.* imports as they are not guaranteed to be the same across all JVMs -->
   35   <disallow pkg="sun" />
   36 
   37   <!-- Disallow Servlet classes everywhere except in specific packages -->
   38   <disallow pkg="javax.servlet" />
   39 
   40   <!-- Disallow optional dependencies JPA, MongoDB, CouchDB, etc. everywhere except in specific packages -->
   41   <disallow pkg="javax.persistence" />
   42   <disallow pkg="com.mongodb" />
   43   <disallow pkg="org.bson" />
   44   <disallow pkg="org.lightcouch" />
   45   <disallow pkg="org.codehaus.jackson" />
   46   <disallow pkg="com.fasterxml.jackson" />
   47 
   48   <subpackage name="apache">
   49 
   50     <subpackage name="logging">
   51 
   52       <subpackage name="log4j">
   53 
   54         <subpackage name="core">
   55 
   56           <subpackage name="appender">
   57 
   58             <subpackage name="db">
   59 
   60               <subpackage name="jpa">
   61                 <allow pkg="javax.persistence" />
   62 
   63                 <subpackage name="converter">
   64                   <allow pkg="com.fasterxml.jackson" />
   65                 </subpackage>
   66               </subpackage>
   67 
   68               <subpackage name="nosql">
   69 
   70                 <subpackage name="mongo">
   71                   <allow pkg="com.mongodb" />
   72                   <allow pkg="org.bson" />
   73                 </subpackage>
   74 
   75                 <subpackage name="couch">
   76                   <allow pkg="org.lightcouch" />
   77                 </subpackage>
   78 
   79               </subpackage>
   80 
   81             </subpackage>
   82 
   83           </subpackage>
   84 
   85           <subpackage name="config">
   86             <allow pkg="com.fasterxml.jackson" />
   87           </subpackage>
   88 
   89           <subpackage name="web">
   90             <allow pkg="javax.servlet" />
   91           </subpackage>
   92 
   93         </subpackage>
   94 
   95         <subpackage name="taglib">
   96           <allow pkg="javax.servlet" />
   97         </subpackage>
   98 
   99       </subpackage>
  100 
  101     </subpackage>
  102 
  103   </subpackage>
  104 
  105 </import-control>