PEtALS

All PEtALS source code must respect some coding rules:

  • formatting rules,

  • naming conventions,

  • coding rules.

These rules are verified automatically by the tools: Checkstyle, PMD and Findbugs.

A warning detected by Findbugs, that can't be fixed for a good reason, can be escaped using the following findbugs annotation: edu.umd.cs.findbugs.annotations.SuppressWarnings. More information on this annotation could be found here. The two parameters of the annotation must be provided.

To use this annotation, you must add the findbugs annotations artefact to the project POM file with a scope set to provided :

   <dependencies>
      ...
      <dependency>
         <groupId>findbugs</groupId>
         <artifactId>annotations</artifactId>
         <version>1.0.0</version>
         <scope>provided</scope>
      </dependency>
      ...
   </dependencies>

Next, you can add the annotation without to provide a justification, as following :

    @edu.umd.cs.findbugs.annotations.SuppressWarnings(value={"UI"}, justification="Will be never extended.")
    public void setUp() {
       ...
    }