Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/databases/cassandra4/files/maven/checkstyle_test.xml
46591 views
1
<?xml version="1.0"?>
2
<!--
3
Licensed to the Apache Software Foundation (ASF) under one or more
4
contributor license agreements. See the NOTICE file distributed with
5
this work for additional information regarding copyright ownership.
6
The ASF licenses this file to You under the Apache License, Version 2.0
7
(the "License"); you may not use this file except in compliance with
8
the License. You may obtain a copy of the License at
9
10
http://www.apache.org/licenses/LICENSE-2.0
11
12
Unless required by applicable law or agreed to in writing, software
13
distributed under the License is distributed on an "AS IS" BASIS,
14
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
See the License for the specific language governing permissions and
16
limitations under the License.
17
-->
18
<!DOCTYPE module PUBLIC
19
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
20
"https://checkstyle.org/dtds/configuration_1_3.dtd">
21
22
<module name="Checker">
23
<property name="severity" value="error"/>
24
25
<property name="fileExtensions" value="java, properties, xml"/>
26
27
<property name="cacheFile" value="${checkstyle.log.dir}/checkstyle_test_cachefile"/>
28
29
<module name="BeforeExecutionExclusionFileFilter">
30
<property name="fileNamePattern" value="module\-info\.java$"/>
31
</module>
32
33
<!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
34
<!-- this exists only because for some reason the comment filter does not seem to work for Semaphore -->
35
<module name="SuppressionFilter">
36
<property name="file" value="${checkstyle.suppressions}"
37
default="checkstyle-suppressions.xml" />
38
<property name="optional" value="false"/>
39
</module>
40
41
<module name="TreeWalker">
42
<module name="SuppressWithNearbyCommentFilter">
43
<property name="commentFormat" value="checkstyle: permit this import"/>
44
<property name="checkFormat" value="IllegalImport"/>
45
<property name="influenceFormat" value="0"/>
46
</module>
47
48
<module name="SuppressWithNearbyCommentFilter">
49
<property name="commentFormat" value="checkstyle: permit this instantiation"/>
50
<property name="checkFormat" value="IllegalInstantiation"/>
51
<property name="influenceFormat" value="0"/>
52
</module>
53
54
<module name="IllegalImport">
55
<property name="illegalPkgs" value="junit.framework"/>
56
<property name="illegalClasses" value=""/>
57
</module>
58
<module name="IllegalInstantiation">
59
<property name="classes" value=""/>
60
</module>
61
62
<module name="RegexpSinglelineJava">
63
<property name="id" value="hardcodeTmpDirectoryUsage"/>
64
<property name="format" value="(File|Directory)\(&quot;/tmp"/>
65
<property name="ignoreComments" value="true"/>
66
<property name="message" value="Please do not hardcode '/tmp' for test files and directories. Use Files.createTempDirectory to create a base test directory instead." />
67
</module>
68
69
<module name="RedundantImport"/>
70
<module name="UnusedImports"/>
71
</module>
72
73
</module>
74
75