geoserver

Форк
0
/
pmd-junit-ruleset.xml 
49 строк · 2.2 Кб
1
<?xml version="1.0"?>
2
<!--
3
Licensed to the Apache Software Foundation (ASF) under one
4
or more contributor license agreements.  See the NOTICE file
5
distributed with this work for additional information
6
regarding copyright ownership.  The ASF licenses this file
7
to you under the Apache License, Version 2.0 (the
8
"License"); you may not use this file except in compliance
9
with the License.  You may obtain a copy of the License at
10

11
http://www.apache.org/licenses/LICENSE-2.0
12

13
Unless required by applicable law or agreed to in writing,
14
software distributed under the License is distributed on an
15
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
KIND, either express or implied.  See the License for the
17
specific language governing permissions and limitations
18
under the License.
19
-->
20
<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Default Maven PMD Plugin Ruleset" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
21
  <description>
22
GeoTools Junit ruleset. See https://pmd.github.io/latest/pmd_userdocs_understanding_rulesets.html
23
</description>
24
  <rule ref="category/java/bestpractices.xml/SimplifiableTestAssertion" />
25
  <rule ref="category/java/bestpractices.xml/JUnit4TestShouldUseBeforeAnnotation" />
26
  <rule ref="category/java/bestpractices.xml/JUnit4TestShouldUseAfterAnnotation" />
27
  <rule ref="category/java/bestpractices.xml/JUnit4TestShouldUseTestAnnotation" />
28
  <!-- Excluded due to https://github.com/pmd/pmd/issues/2147 /-->
29
  <!-- rule ref="category/java/bestpractices.xml/JUnitTestsShouldIncludeAssert" /-->
30
  <rule name="DisallowJunit3"
31
      language="java"
32
      message="Avoid using JUnit3"
33
      class="net.sourceforge.pmd.lang.rule.XPathRule" >
34
    <description>
35
        Don't use JUnit3, use JUnit4 instead
36
    </description>
37
    <priority>3</priority>
38
    <properties>
39
      <property name="xpath">
40
         <value>
41
           <![CDATA[
42
             //Name[pmd-java:typeIs('junit.framework.TestCase')] |
43
             //Name[pmd-java:typeIs('junit.framework.TestSuite')]
44
             ]]>
45
         </value>
46
      </property>
47
    </properties>
48
  </rule>	  
49
</ruleset>
50

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.