<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
    "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
    "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">

<!--

  A Checkstyle configuration that demonstrates the integeration
  of user checks.

-->

<module name="Checker">

  <!-- Add the TreeWalker that is required as a container for Checks -->
  <module name="TreeWalker">

    <!--
      register our Check class twice with different
      configurations for different tokens
    -->

    <!-- interfaces are limited to 10 methods -->
    <module name="com.mycompany.checks.MethodLimitCheck">
      <property name="tokens" value="INTERFACE_DEF"/>
      <property name="max" value="10"/>
    </module>

    <!-- classes are limited to 25 methods -->
    <module name="com.mycompany.checks.MethodLimitCheck">
      <property name="tokens" value="CLASS_DEF"/>
      <property name="max" value="25"/>
    </module>

  </module>


  <!-- register our FileSetCheck -->
  <module name="com.mycompany.checks.LimitImplementationFiles">
    <!-- here you could also set the "max" property, just like in the examples above  -->
  </module>


</module>
