View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.vm.rule.basic;
5   
6   import org.junit.Before;
7   
8   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
9   
10  public class BasicRulesTest extends SimpleAggregatorTst {
11  
12      private static final String RULESET = "vm-basic";
13  
14      @Before
15      public void setUp() {
16          addRule(RULESET, "AvoidDeeplyNestedIfStmts");
17          addRule(RULESET, "CollapsibleIfStatements");
18          addRule(RULESET, "ExcessiveTemplateLength");
19          addRule(RULESET, "AvoidReassigningParameters");
20          addRule(RULESET, "EmptyIfStmt");
21          addRule(RULESET, "EmptyForeachStmt");
22          addRule(RULESET, "UnusedMacroParameter");
23          addRule(RULESET, "NoInlineJavaScript");
24          addRule(RULESET, "NoInlineStyles");
25      }
26  
27      public static junit.framework.Test suite() {
28          return new junit.framework.JUnit4TestAdapter(BasicRulesTest.class);
29      }
30  
31  }