jump to navigation

Cool Plugin’s August 17, 2005

Posted by Coolguy in Eclipse.
trackback

Coding Standards Plugin’s

  • PMD: Coding standards plugin net.sourceforge.pmd.
  • Sample rule set:

    <?xml version=”1.0″?>

    <rulesetname=“myruleset”>

    <description>

    This ruleset is to be applied to all java projects

    </description>

    <!– selected rules from the ruleset-Basic Rules–>

    <ruleref=“rulesets/basic.xml/EmptyCatchBlock”/>

    <ruleref=“rulesets/basic.xml/EmptyIfStmt”/>

    <ruleref=“rulesets/basic.xml/EmptyWhileStmt”/>

    <ruleref=“rulesets/basic.xml/EmptyTryBlock”/>

    <ruleref=“rulesets/basic.xml/EmptyFinallyBlock”/>

    <ruleref=“rulesets/basic.xml/EmptySwitchStatements”/>

    <ruleref=“rulesets/basic.xml/ReturnFromFinallyBlock”/>

    <!– selected rules from the ruleset-Design Rules–>

    <ruleref=“rulesets/design.xml/UseSingleton”/>

    <ruleref=“rulesets/design.xml/SwitchStmtsShouldHaveDefault”/>

    <ruleref=“rulesets/design.xml/AvoidDeeplyNestedIfStmts”/>

    <ruleref=“rulesets/design.xml/DefaultLabelNotLastInSwitchStmt”/>

    <ruleref=“rulesets/design.xml/MissingBreakInSwitch”/>

    <ruleref=“rulesets/design.xml/UseSingleton”/>

    <!– selected rules from the ruleset-Strict Exception Rules–>

    <ruleref=“rulesets/strictexception.xml/AvoidCatchingThrowable”/>

    <ruleref=“rulesets/strictexception.xml/SignatureDeclareThrowsException”/>

    <ruleref=“rulesets/strictexception.xml/ExceptionTypeChecking”/>

    <!– selected rules from the ruleset-Code Size Rules–>

    <ruleref=“rulesets/codesize.xml/ExcessiveMethodLength”/>

    <ruleref=“rulesets/codesize.xml/ExcessiveParameterList”/>

    <ruleref=“rulesets/codesize.xml/ExcessiveClassLength”/>

    <ruleref=“rulesets/codesize.xml/CyclomaticComplexity”/>

    <ruleref=“rulesets/codesize.xml/ExcessivePublicCount”/>

    <!– selected rules from the ruleset-Naming Rules–>

    <ruleref=“rulesets/naming.xml/VariableNamingConventions”/>

    <ruleref=“rulesets/naming.xml/MethodNamingConventions”/>

    <ruleref=“rulesets/naming.xml/ClassNamingConventions”/>

    <ruleref=“rulesets/naming.xml/AvoidDollarSigns”/>

    <ruleref=“rulesets/naming.xml/SuspiciousConstantFieldName”/>

    <!– All rules from the ruleset-Import Statement Rules–>

    <ruleref=“rulesets/imports.xml/DuplicateImports”/>

    <ruleref=“rulesets/imports.xml/DontImportJavaLang”/>

    <ruleref=“rulesets/imports.xml/UnusedImports”/>

    <ruleref=“rulesets/imports.xml/ImportFromSamePackage”/>

    <!– All rules from the ruleset-Java Logging Rules–>

    <ruleref=“rulesets/logging-java.xml/MoreThanOneLogger”/>

    <ruleref=“rulesets/logging-java.xml/LoggerIsNotStaticFinal”/>

    <ruleref=“rulesets/logging-java.xml/SystemPrintln”/>

    <!– All rules from the ruleset-Braces Rules–>

    <ruleref=“rulesets/braces.xml/IfStmtsMustUseBraces”/>

    <ruleref=“rulesets/braces.xml/WhileLoopsMustUseBraces”/>

    <ruleref=“rulesets/braces.xml/IfElseStmtsMustUseBraces”/>

    <ruleref=“rulesets/braces.xml/ForLoopsMustUseBraces”/>

    <!– All rules from the ruleset-Unused Code Rules–>

    <ruleref=“rulesets/unusedcode.xml/UnusedPrivateField”/>

    <ruleref=“rulesets/unusedcode.xml/UnusedLocalVariable”/>

    <ruleref=“rulesets/unusedcode.xml/UnusedPrivateMethod”/>

    <ruleref=“rulesets/unusedcode.xml/UnusedFormalParameter”/>

    </ruleset>

Logging

  • Log4E : Log4E is an Eclipse Plugin which helps you to use your logger easily in Java Projects.The Plugin Log4E is not bound to any special logging framework. Thus you might be able to adapt to your own logger by defining your own templates using the preferences. It has active support for Log4j, Commons Logging and JDK 1.4 logging. de.jayefem.log4e http://log4e.jayefem.de/index.php/Main_Page

Metrics

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: