Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-1997

[classlib]adopt CheckStyle to follow junit best practice

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • None
    • None
    • Classlib
    • None

    Description

      There are many violations found by Mark's tools(Harmony-1960). To fix and avoid them, I suggest to use CheckStyle as a Eclipse plugin, which will highlights all possiable violate lines in your editor windows.

      I post my configuration here as an initial. It must be not very precise, you can customize it by yourself. Any bug report are welcome.

      HOW TO
      1,Install CheckStyle, you can find it at http://eclipse-cs.sourceforge.net/ .
      2,After that you can find an item named checkstyle in your eclipse menu-windows-preferences, click the new button and then import my configuration.
      3,In the properties of a project, there is also an item named checkstyle, you can enable checkstyle for your project here. remember to select the right configuration you just import.
      4,If you get an out of memory error, you can do something in its exclude options. for example, exclude files not opened in the editor.

      Attachments

        1. junitBP.xml
          11 kB
          Tony Wu
        2. junitBP.xml
          10 kB
          Tony Wu
        3. junitBP.xml
          10 kB
          Tony Wu

        Activity

          People

            tellison Tim Ellison
            tony.wu Tony Wu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: