Search in sources :

Example 1 with ConfigBuilder

use of com.cflint.config.ConfigBuilder in project CFLint by cflint.

the class TestLiteralLocalChecker method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("LOCAL_LITERAL_VALUE_USED_TOO_OFTEN");
    cfBugs = new CFLintAPI(configBuilder.build());
}
Also used : CFLintAPI(com.cflint.api.CFLintAPI) ConfigBuilder(com.cflint.config.ConfigBuilder) Before(org.junit.Before)

Example 2 with ConfigBuilder

use of com.cflint.config.ConfigBuilder in project CFLint by cflint.

the class TestCFLint2Files method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("ARG_DEFAULT_MISSING", "QUERYPARAM_REQ");
    cfBugs = new CFLintAPI(configBuilder.build());
}
Also used : CFLintAPI(com.cflint.api.CFLintAPI) ConfigBuilder(com.cflint.config.ConfigBuilder) Before(org.junit.Before)

Example 3 with ConfigBuilder

use of com.cflint.config.ConfigBuilder in project CFLint by cflint.

the class TestComponentLengthChecker method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("EXCESSIVE_COMPONENT_LENGTH");
    cfBugs = new CFLintAPI(configBuilder.build());
}
Also used : CFLintAPI(com.cflint.api.CFLintAPI) ConfigBuilder(com.cflint.config.ConfigBuilder) Before(org.junit.Before)

Example 4 with ConfigBuilder

use of com.cflint.config.ConfigBuilder in project CFLint by cflint.

the class TestFunctionLengthChecker method setUp.

@Before
public void setUp() throws CFLintConfigurationException {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("EXCESSIVE_FUNCTION_LENGTH");
    cfBugs = new CFLintAPI(configBuilder.build());
}
Also used : CFLintAPI(com.cflint.api.CFLintAPI) ConfigBuilder(com.cflint.config.ConfigBuilder) Before(org.junit.Before)

Example 5 with ConfigBuilder

use of com.cflint.config.ConfigBuilder in project CFLint by cflint.

the class TestLiteralGlobalChecker method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("GLOBAL_LITERAL_VALUE_USED_TOO_OFTEN", "LOCAL_LITERAL_VALUE_USED_TOO_OFTEN");
    cfBugs = new CFLintAPI(configBuilder.build());
}
Also used : CFLintAPI(com.cflint.api.CFLintAPI) ConfigBuilder(com.cflint.config.ConfigBuilder) Before(org.junit.Before)

Aggregations

ConfigBuilder (com.cflint.config.ConfigBuilder)54 CFLintAPI (com.cflint.api.CFLintAPI)53 Before (org.junit.Before)53 CFLintPluginInfo (com.cflint.config.CFLintPluginInfo)4 PluginInfoRule (com.cflint.config.CFLintPluginInfo.PluginInfoRule)4 PluginMessage (com.cflint.config.CFLintPluginInfo.PluginInfoRule.PluginMessage)4 CFLintConfig (com.cflint.config.CFLintConfig)3 CFLintConfigurationException (com.cflint.exception.CFLintConfigurationException)1 CFLintScanException (com.cflint.exception.CFLintScanException)1 MarshallerException (com.cflint.xml.MarshallerException)1 FileWriter (java.io.FileWriter)1 IOException (java.io.IOException)1 PrintWriter (java.io.PrintWriter)1 JAXBException (javax.xml.bind.JAXBException)1 TransformerException (javax.xml.transform.TransformerException)1