checkstyle
Should I always use the private access modifier for class fields?
Currently we are running checkstyle on our code base and it flags up any non-static class fields th开发者_Python百科at don\'t use the private access modifier.[详细]
2023-02-20 14:05 分类:问答Enforce type specification on public members of Groovy types
In Groovy, specifying types is optional. But there are advantages to specifying them on public class members like m开发者_如何学Cethods and properties. It\'s a good form of documentation and it enable[详细]
2023-02-11 17:31 分类:问答How to apply Checkstyle check IllegalType only to static fields
I\'m trying to use Checkstyle (this check) to raise a warning when a particular class is used as a type for static field. I\'m doing it with this configuration and it doesn\'t work:[详细]
2023-02-08 06:46 分类:问答Empty new line at the end of the Java source files
In my current project, we always insert an empty new line at the end of the Java source files. We also enforce this with CheckStyle (with error level).[详细]
2023-02-04 17:16 分类:问答Usage of static analysis tools - with Clear Case/Quest
We are in the process of defining our software development process and wanted to get some feed back from the gro开发者_开发知识库up about this topic.[详细]
2023-02-04 03:55 分类:问答SuppressionFilter is not working
SuppressionFilter is not ignoring the files which are given in suppressions.xml In checkstyle.xml开发者_高级运维,[详细]
2023-02-03 04:09 分类:问答Is there a way for a Maven project to inherit report configurations from a pom dependency?
I know that it\'s possible to configure thesection in a parent POM and have it apply to the sub-modules in a multi-module project.However, I\'d like to have a separate POM to reference as a dependency[详细]
2023-01-30 19:58 分类:问答For what types variables must never be static?
In one library that is in heavy use in our project there is a restriction that variables of its classes must never be static. (It is ULC). As far as I understood it is because of the need to serialize[详细]
2023-01-28 20:40 分类:问答regex negation in a pattern
I\'m trying to define a regex pattern with a negation within the pattern. I want to exclude all strings with \'Test\' on the end. I\'m aware about the character negation [^Test] but this is not what I[详细]
2023-01-27 02:53 分类:问答Where to find a more comprehensive tutorial on writing plugins for maven-checkstyle-plugin
I am looking for a tutorial on how to extend http://maven.apache.org/plugins/maven-checkstyle-plugin/ (run within hudson), in particular, I am looking for information if I can create -- for my cust开发[详细]
2023-01-27 00:20 分类:问答