You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
2.2 KiB
44 lines
2.2 KiB
<?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. |
|
--> |
|
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd" [ |
|
<!ENTITY defaultCopyrightCheck SYSTEM "../../../../../prebuilts/checkstyle/default-copyright-check.xml"> |
|
<!ENTITY defaultJavadocChecks SYSTEM "../../../../../prebuilts/checkstyle/default-javadoc-checks.xml"> |
|
<!ENTITY defaultTreewalkerChecks SYSTEM "../../../../../prebuilts/checkstyle/default-treewalker-checks.xml"> |
|
<!ENTITY defaultModuleChecks SYSTEM "../../../../../prebuilts/checkstyle/default-module-checks.xml"> |
|
]> |
|
|
|
<module name="Checker"> |
|
&defaultModuleChecks; |
|
&defaultCopyrightCheck; |
|
<module name="TreeWalker"> |
|
&defaultJavadocChecks; |
|
&defaultTreewalkerChecks; |
|
|
|
<!-- Custom support library check for @RestrictTo / @hide. --> |
|
<module name="com.android.support.checkstyle.MismatchedAnnotationCheck"> |
|
<property name="severity" value="error" /> |
|
<property name="tag" value="hide" /> |
|
<property name="annotation" value="android.support.annotation.RestrictTo" /> |
|
<property name="messageKey" value="annotation.missing.hide" /> |
|
<message key="annotation.missing.hide" value="Must include both @RestrictTo annotation and @hide Javadoc tag."/> |
|
</module> |
|
<!-- Custom support library check for methods with @Test to have test size annotation --> |
|
<module name="com.android.support.checkstyle.TestSizeAnnotationCheck"> |
|
<property name="severity" value="error" /> |
|
</module> |
|
</module> |
|
</module>
|
|
|