checkstyle.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE module PUBLIC "-//Checkstyle//DTD Check Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
  3. <!--
  4. This configuration file was written by the eclipse-cs plugin configuration editor
  5. -->
  6. <!--
  7. Checkstyle-Configuration: gt-checks
  8. Description: none
  9. -->
  10. <module name="Checker">
  11. <property name="severity" value="error"/>
  12. <module name="TreeWalker">
  13. <module name="JavadocMethod">
  14. <property name="allowMissingParamTags" value="true"/>
  15. <property name="allowMissingReturnTag" value="true"/>
  16. </module>
  17. <module name="ArrayTypeStyle"/>
  18. </module>
  19. <module name="RegexpHeader">
  20. <property name="multiLines" value="2,3"/> <!-- Allows to have other copyrights, see line 2 and 3 of the regexp -->
  21. <property name="header" value="^/\* (Copyright\s*)?\(c\) \d{4}(\s*-\s*\d{4})? Open Source Geospatial Foundation - all rights reserved$\n^
  22. \* (Copyright\s*)?\(c\).*$\n^
  23. \*$\n^
  24. \* This code is licensed under the GPL 2.0 license, available at the root$\n^
  25. \* application directory.$\n^
  26. \*"/>
  27. <property name="fileExtensions" value="java"/>
  28. </module>
  29. <module name="RegexpSingleline">
  30. <property name="format" value="^\s{60}"/>
  31. <property name="message" value="Excessive nesting found. Please try to factor out the deeply nested code in a separate method or class"/>
  32. <property name="minimum" value="0"/>
  33. <property name="maximum" value="1"/>
  34. <property name="fileExtensions" value="java"/>
  35. </module>
  36. </module>