2015-08-28 14 views

Odpowiedz

4

PMD obsługuje również @SuppressWarnings adnotacji:

// This will suppress all the PMD warnings in this class 
@SuppressWarnings("PMD") 
public class Bar { 
void bar() { 
    int foo; 
} 
} 

Albo tylko jeden rodzaj ostrzeżenia:

// This will suppress UnusedLocalVariable warnings in this class 
@SuppressWarnings("PMD.UnusedLocalVariable") 
public class Bar { 
void bar() { 
    int foo; 
} 
} 

A co można również zajrzeć do są creating a ruleset and exclusions. Może chcesz wyłączyć określoną regułę lub wykluczyć niektóre pliki ze sprawdzania PMD.

Powiązane problemy