This will allow teams to reuse parts of checkstyle without having to worry about missing any checks when they change in the main configs. Bug: None Test: Tested locally and checkstyle still verifies the same rules using android-style.xml Change-Id: I91ca11d3d7089db656bc640549bd7012284a8859
39 lines
1.5 KiB
XML
39 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ Copyright (C) 2016 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License.
|
|
-->
|
|
<property name="severity" value="warning"/>
|
|
<property name="charset" value="UTF-8"/>
|
|
<module name="SuppressionCommentFilter">
|
|
<property name="offCommentFormat" value="CHECKSTYLE:OFF IndentationCheck"/>
|
|
<property name="onCommentFormat" value="CHECKSTYLE:ON IndentationCheck"/>
|
|
<property name="checkFormat" value="IndentationCheck"/>
|
|
</module>
|
|
<module name="SuppressionCommentFilter">
|
|
<property name="offCommentFormat" value="CHECKSTYLE:OFF Generated code"/>
|
|
<property name="onCommentFormat" value="CHECKSTYLE:ON Generated code"/>
|
|
</module>
|
|
<module name="FileTabCharacter">
|
|
<property name="severity" value="error"/>
|
|
</module>
|
|
<module name="NewlineAtEndOfFile">
|
|
<property name="severity" value="error"/>
|
|
</module>
|
|
<module name="RegexpSingleline">
|
|
<property name="severity" value="error"/>
|
|
<property name="format" value="[ \t]+$"/>
|
|
<property name="message" value="Trailing whitespace"/>
|
|
</module>
|