Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You should already have set up your inspectIT development environment. On this page you already installed and configured all necessary tools that we use for static code analysis. This page shows you how you can use them (in a brief way).

Info
titleEclipse only shows the same errors if the pmd version is the same as in the build

Note that the Eclipse version (e.g. find this out via Window -> Preferences -> PMD (bottom) or within the installed software) needs to be the same as the version used within the ant build (see common-targets in Commons at GitHub). Note that we always try to have the version in the build to mirror the version of Eclipse to sync the error messages. If your version in eclipse is higher, create a ticket to update the version within the build

FindBugs

  • Open the Findbugs "Bug Explorer" view (Window -> Show View -> Other -> FindBugs -> Bug Explorer)
  • Select the projects to check, right click and select "FindBugs -> Find Bugs" (note that this entry is above refresh in my Eclipse and not down in the list with Checkstyle and PMD)
  • Ensure that you addressed all violations prior to a pull request

...