瀏覽代碼

Explicitly enter remaining convention values used as defaults by checkstyle, so that they can be more easily seen and managed, and so that any future changes in defaults will not affect our standards. No changes to the substance of the style conventions is made here.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196549 13f79535-47bb-0310-9956-ffa450edef68
tags/Root_Temp_KnuthStylePageBreaking
William Victor Mote 21 年之前
父節點
當前提交
76ac02e4e1
共有 1 個檔案被更改,包括 28 行新增0 行删除
  1. 28
    0
      checkstyle.cfg

+ 28
- 0
checkstyle.cfg 查看文件

@@ -7,7 +7,10 @@

# Javadoc Comments
checkstyle.javadoc.scope = protected
checkstyle.require.packagehtml = false
checkstyle.require.version = false
checkstyle.allow.noauthor = yes
checkstyle.javadoc.checkUnusedThrows = false

# Naming Conventions
# non-static members
@@ -33,24 +36,49 @@ checkstyle.pattern.localfinalvar = ^[a-z][a-zA-Z0-9]*$

# Headers
checkstyle.header.file = checkstyle.header
checkstyle.header.ignoreline
checkstyle.header.regexp = yes

# Imports
checkstyle.ignore.imports = false
checkstyle.illegal.imports = sun

# Size Violations
checkstyle.maxlinelen = 100
checkstyle.tab.width = 4
checkstyle.ignore.importlength = yes
checkstyle.ignore.maxlinelen = ^$
checkstyle.maxmethodlen = 150
checkstyle.maxconstructorlen = 150
checkstyle.maxfilelen = 2000
checkstyle.maxparameters = 7

# Whitespace
checkstyle.allow.tabs = no
checkstyle.ignore.whitespace = false
checkstyle.ignore.whitespace.cast = yes
checkstyle.paren.pad = nospace
checkstyle.wrap.operator = nl

# Modifiers
checkstyle.ignore.public.in.interface = false
checkstyle.allow.protected = yes
checkstyle.allow.package = false
checkstyle.pattern.publicmember = ^f[A-Z][a-zA-Z0-9]*$

# Blocks
checkstyle.ignore.braces = false
checkstyle.block.try = stmt
checkstyle.block.catch = text
checkstyle.block.finally = stmt
checkstyle.lcurly.type = eol
checkstyle.lcurly.method = eol
checkstyle.lcurly.other = eol
checkstyle.rcurly = same

# Miscellaneous Checks
checkstyle.pattern.todo = TODO:
checkstyle.ignore.longell = false
checkstyle.illegal.instantiations =

# Last Line of $RCSfile$

Loading…
取消
儲存