Search in sources :

Example 26 with ConfigBuilder

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

the class TestUnusedLocalVarChecker method setUp.

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

Example 27 with ConfigBuilder

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

the class TestWriteDumpChecker method setUp.

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

Example 28 with ConfigBuilder

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

the class TestAbortChecker method setUp.

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

Example 29 with ConfigBuilder

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

the class TestArgumentNames method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("ARGUMENT_MISSING_NAME", "ARGUMENT_INVALID_NAME", "ARGUMENT_ALLCAPS_NAME", "ARGUMENT_TOO_SHORT", "ARGUMENT_TOO_LONG", "ARGUMENT_TOO_WORDY", "ARGUMENT_IS_TEMPORARY", "ARGUMENT_HAS_PREFIX_OR_POSTFIX");
    cfBugs = new CFLintAPI(configBuilder.build());
}
Also used : CFLintAPI(com.cflint.api.CFLintAPI) ConfigBuilder(com.cflint.config.ConfigBuilder) Before(org.junit.Before)

Example 30 with ConfigBuilder

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

the class TestArrayNewChecker method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("AVOID_USING_ARRAYNEW");
    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