常量的CodeNarc规则违规

时间:2014-06-08 08:36:58

标签: groovy constants rule codenarc

[SRC]final String DATE_PATTERN_FOR_DIRECTORIES = "yyyy-MM-dd-kk-mm-ss"
[MSG]The property name DATE_PATTERN_FOR_DIRECTORIES in class UploadTask does not match the pattern [a-z][a-zA-Z0-9]*

我有一个常量 DATE_PATTERN_FOR_DIRECTORIES ,我必须排除CodeNarc规则以传递名称检查或如何命名。当我声明constat时,它必须是Upercase字母。

0 个答案:

没有答案