Add checkstyle rule for unused imports
[cps.git] / checkstyle / src / main / resources / cps-java-style.xml
1 <?xml version="1.0"?>
2 <!--
3 ============LICENSE_START=======================================================
4  Copyright (C) 2020 Pantheon.tech
5  ================================================================================
6  Licensed under the Apache License, Version 2.0 (the "License");
7  you may not use this file except in compliance with the License.
8  You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16
17  SPDX-License-Identifier: Apache-2.0
18  ============LICENSE_END=========================================================
19 -->
20 <!DOCTYPE module PUBLIC
21         "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
22         "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
23 <module name="Checker">
24     <property name="charset" value="UTF-8"/>
25     <property name="severity" value="warning"/>
26     <property name="fileExtensions" value="java, properties, xml"/>
27
28     <module name="TreeWalker">
29         <module name="FinalLocalVariable">
30             <property name="tokens" value="VARIABLE_DEF,PARAMETER_DEF"/>
31             <property name="validateEnhancedForLoopVariable" value="true"/>
32         </module>
33         <module name="UnusedImports"/>
34     </module>
35 </module>