view make/conf/checkstyle-langtools.xml @ 2905:520635aae9e1

8078473: javac diamond finder crashes when used to build java.base module. Reviewed-by: mcimadamore
author sadayapalam
date Mon, 27 Apr 2015 17:36:20 +0530
line wrap: on
line source
<?xml version="1.0"?>
          "-//Puppy Crawl//DTD Check Configuration 1.3//EN"

   Checks for initial langtools code conventions, we are starting with
   imports and import orders and this will grow to encompass other
   violations over time. 

<module name="Checker">
    <!-- Checks for whitespace. -->
    <module name="FileTabCharacter">
        <property name="fileExtensions" value=".java"/>

    <!-- Miscellaneous other checks.                   -->
    <module name="RegexpSingleline">
        <property name="format" value="\s+$"/>
        <property name="minimum" value="0"/>
        <property name="maximum" value="0"/>
        <property name="message" value="Line has trailing spaces."/>
        <property name="fileExtensions" value=".java .html"/>

    <module name="TreeWalker">
    <!-- Checks for imports                              -->
        <module name="AvoidStarImport"/>
        <module name="IllegalImport"/>
        <module name="GenericWhitespace"/>
        <module name="RedundantImport"/>
        <module name="UnusedImports"/>  
        <module name="ImportOrder">
            <property name="groups" value="java, javax, org, com"/>
            <property name="ordered" value="true"/>
            <property name="separated" value="true"/>
        <module name="EmptyForInitializerPad">
            <property name="option" value="space"/>
        <module name="WhitespaceAfter"/>