Yigit Boyar | b96ccea | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright (C) 2016 The Android Open Source Project |
| 4 | ~ |
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ~ you may not use this file except in compliance with the License. |
| 7 | ~ You may obtain a copy of the License at |
| 8 | ~ |
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ~ |
| 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 | |
| 18 | <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" |
| 19 | "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
| 20 | <!-- this is a very limited set of checkstyle rules mainly because TreeWalker rules are not |
| 21 | supported for kt files yet.--> |
| 22 | <module name="Checker"> |
| 23 | <property name="severity" value="warning"/> |
| 24 | <property name="charset" value="UTF-8"/> |
| 25 | <module name="SuppressionCommentFilter"> |
| 26 | <property name="offCommentFormat" value="CHECKSTYLE:OFF IndentationCheck"/> |
| 27 | <property name="onCommentFormat" value="CHECKSTYLE:ON IndentationCheck"/> |
| 28 | <property name="checkFormat" value="IndentationCheck"/> |
| 29 | </module> |
| 30 | <module name="SuppressionCommentFilter"> |
| 31 | <property name="offCommentFormat" value="CHECKSTYLE:OFF Generated code"/> |
| 32 | <property name="onCommentFormat" value="CHECKSTYLE:ON Generated code"/> |
| 33 | </module> |
| 34 | <module name="FileTabCharacter"> |
| 35 | <property name="severity" value="error"/> |
| 36 | </module> |
| 37 | <module name="NewlineAtEndOfFile"> |
| 38 | <property name="severity" value="error"/> |
| 39 | </module> |
| 40 | <module name="RegexpSingleline"> |
| 41 | <property name="severity" value="error"/> |
| 42 | <property name="format" value="[ \t]+$"/> |
| 43 | <property name="message" value="Trailing whitespace"/> |
| 44 | </module> |
| 45 | <module name="RegexpHeader"> |
| 46 | <property name="severity" value="error"/> |
| 47 | <message key="header.mismatch" |
| 48 | value="Android Copyright header seems to be incorrect. Expected ''{0}'' on this line."/> |
| 49 | <property name="header" value="^/\*\n \* Copyright \([Cc]\) [0-9]{4} The Android Open Source Project\n \*\n \* Licensed under the Apache License, Version 2\.0 \(the \"License\"\);\n \* you may not use this file except in compliance with the License.\n \* You may obtain a copy of the License at\n \*\n \* http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0\n \*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an "AS IS" BASIS,\n \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.\n \* See the License for the specific language governing permissions and\n \* limitations under the License\.\n \*\/" /> |
| 50 | </module> |
| 51 | </module> |