c# - Java coding style -
how keep coding standards? there stylecop , resharper c#. there tools/eclipse plugins code analisys in java? of them use?
- checkout http://checkstyle.sourceforge.net/.
checkstyle development tool programmers write java code adheres coding standard. automates process of checking java code spare humans of boring (but important) task. makes ideal projects want enforce coding standard. checkstyle highly configurable , can made support coding standard. example configuration file supplied supporting sun code conventions. well, other sample configuration files supplied other known conventions.
pmd integrated jdeveloper, eclipse, jedit, jbuilder, bluej, codeguide, netbeans/sun java studio enterprise/creator, intellij idea, textpad, maven, ant, gel, jcreator, , emacs.
- findbugs http://findbugs.sourceforge.net
findbugs uses static analysis inspect java bytecode occurrences of bug patterns. static analysis means findbugs can find bugs inspecting program's code: executing program not necessary. makes findbugs easy use: in general, should able use bugs in code within few minutes of downloading it. findbugs works analyzing java bytecode (compiled class files), don't need program's source code use it. because analysis imprecise, findbugs can report false warnings, warnings not indicate real errors. in practice, rate of false warnings reported findbugs less 50%.
Comments
Post a Comment