Version 8

    CheckStyle Plugin

    http://eclipse-cs.sourceforge.net/

    Install

    1. In Eclipse go to Help->Software Updates...
    2. Add a new installation site and provide http://eclipse-cs.sf.net/update/ as location URL.
    3. Mark the plugin version you would like to install, as well as future optional features, then press Install...
    4. Review and confirm the plugins to install
    5. Restart Eclipse

    Configure

    1.       In Eclipse go to Window->Preferences->Checkstyle and create new Check Configuration

    setup_in_eclipse_01.png

    2.       For new configuration

    1.       Select Type – Remote Configuration

    2.       Enter Name, for example “Richfaces

    3.       Select location – to your copy of  https://github.com/richfaces/checkstyle/raw/master/src/main/resources/richfaces-checkstyle/richfaces-checkstyle.xml

     

    setup_in_eclipse_02_01.png

    3.                      4.     Set your Check Configuration as Default

    setup_in_eclipse_03.png

     

     

    Using

    use_in_eclipse_01.png

         1.       Check your code and you can see results as typical eclipse errors and warnings

     

    use_in_eclipse_02.png

     

                   2.     Fix same violations

    use_in_eclipse_03.jpg

    And result.

    use_in_eclipse_04.jpg

                        3.       Clean violations - clean all checkstyle violations