Search in sources :

Example 1 with BadLocalVariableNameCheck

use of org.sonar.java.checks.naming.BadLocalVariableNameCheck in project sonar-java by SonarSource.

the class GeneratedCodeFilterTest method test.

@Test
public void test() {
    CommentRegularExpressionCheck commentRegularExpressionCheck = new CommentRegularExpressionCheck();
    commentRegularExpressionCheck.regularExpression = ".*alpha.*";
    FilterVerifier.verify("src/test/files/filters/GeneratedCodeFilter.java", new GeneratedCodeFilter(), // activated rules
    commentRegularExpressionCheck, new BadClassNameCheck(), new BadMethodNameCheck(), new BadLocalVariableNameCheck());
}
Also used : BadMethodNameCheck(org.sonar.java.checks.naming.BadMethodNameCheck) CommentRegularExpressionCheck(org.sonar.java.checks.CommentRegularExpressionCheck) BadClassNameCheck(org.sonar.java.checks.naming.BadClassNameCheck) BadLocalVariableNameCheck(org.sonar.java.checks.naming.BadLocalVariableNameCheck) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 CommentRegularExpressionCheck (org.sonar.java.checks.CommentRegularExpressionCheck)1 BadClassNameCheck (org.sonar.java.checks.naming.BadClassNameCheck)1 BadLocalVariableNameCheck (org.sonar.java.checks.naming.BadLocalVariableNameCheck)1 BadMethodNameCheck (org.sonar.java.checks.naming.BadMethodNameCheck)1