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.

checkstyle.cfg 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # $Id$
  2. # Checkstyle configuration for the Apache FOP project.
  3. # See http://xml.apache.org/fop for information about FOP.
  4. # The entries here are sorted in the order of the Checkstyle 2.4 documentation
  5. # for easier reference.
  6. # Javadoc Comments
  7. checkstyle.javadoc.scope = protected
  8. checkstyle.require.packagehtml = false
  9. checkstyle.require.version = false
  10. checkstyle.allow.noauthor = yes
  11. checkstyle.javadoc.checkUnusedThrows = false
  12. # Naming Conventions
  13. # non-static members
  14. checkstyle.pattern.member = ^[a-z][a-zA-Z0-9]*$
  15. # non-static, public members
  16. checkstyle.pattern.publicmember = ^[a-z][a-zA-Z0-9]*$
  17. # constants (static & final)
  18. checkstyle.pattern.const = ^[A-Z](_?[A-Z0-9]+)*$
  19. # other static
  20. checkstyle.pattern.static = ^[a-z][a-zA-Z0-9]*$
  21. # method parameters
  22. checkstyle.pattern.parameter = ^[a-z][a-zA-Z0-9]*$
  23. # packages
  24. checkstyle.pattern.package = ^[a-z]+(\.[a-zA-Z_][a-zA-Z_0-9]*)*$
  25. # classes and interfaces
  26. checkstyle.pattern.type = ^[A-Z][a-zA-Z0-9]*$
  27. # methods
  28. checkstyle.pattern.method = ^[a-z][a-zA-Z0-9]*$
  29. # local variables
  30. checkstyle.pattern.localvar = ^[a-z][a-zA-Z0-9]*$
  31. # final local variables
  32. checkstyle.pattern.localfinalvar = ^[a-z][a-zA-Z0-9]*$
  33. # Headers
  34. checkstyle.header.file = checkstyle.header
  35. checkstyle.header.ignoreline
  36. checkstyle.header.regexp = yes
  37. # Imports
  38. checkstyle.ignore.imports = false
  39. checkstyle.illegal.imports = sun
  40. # Size Violations
  41. checkstyle.maxlinelen = 100
  42. checkstyle.tab.width = 4
  43. checkstyle.ignore.importlength = yes
  44. checkstyle.ignore.maxlinelen = ^$
  45. checkstyle.maxmethodlen = 150
  46. checkstyle.maxconstructorlen = 150
  47. checkstyle.maxfilelen = 2000
  48. checkstyle.maxparameters = 7
  49. # Whitespace
  50. checkstyle.allow.tabs = no
  51. checkstyle.ignore.whitespace = false
  52. checkstyle.ignore.whitespace.cast = yes
  53. checkstyle.paren.pad = nospace
  54. checkstyle.wrap.operator = nl
  55. # Modifiers
  56. checkstyle.ignore.public.in.interface = false
  57. checkstyle.allow.protected = yes
  58. checkstyle.allow.package = false
  59. # Note -- checkstyle.pattern.publicmember is documented in this location
  60. # in the checkstyle documentation. However, it is also included in the "Naming
  61. # Conventions" section above. Please do not add it here, as having two in the
  62. # file will result in changes to only one being ignored (checkstyle appears to
  63. # use the last definition).
  64. # Blocks
  65. checkstyle.ignore.braces = false
  66. checkstyle.block.try = stmt
  67. checkstyle.block.catch = text
  68. checkstyle.block.finally = stmt
  69. checkstyle.lcurly.type = eol
  70. checkstyle.lcurly.method = eol
  71. checkstyle.lcurly.other = eol
  72. checkstyle.rcurly = same
  73. # Miscellaneous Checks
  74. checkstyle.pattern.todo = TODO:
  75. checkstyle.ignore.longell = false
  76. checkstyle.illegal.instantiations =
  77. # Last Line of $RCSfile$