View Javadoc

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