Search in sources :

Example 6 with ConfigBuilder

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

the class TestCFBugs_ComponentNames method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("COMPONENT_INVALID_NAME", "COMPONENT_ALLCAPS_NAME", "COMPONENT_TOO_SHORT", "COMPONENT_TOO_LONG", "COMPONENT_TOO_WORDY", "COMPONENT_IS_TEMPORARY", "COMPONENT_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 7 with ConfigBuilder

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

the class TestCFBugs_FunctionType method setUp.

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

Example 8 with ConfigBuilder

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

the class TestCFBugs_MethodNames method setUp.

@Before
public void setUp() throws Exception {
    final ConfigBuilder configBuilder = new ConfigBuilder().include("METHOD_INVALID_NAME", "METHOD_ALLCAPS_NAME", "METHOD_TOO_SHORT", "METHOD_TOO_LONG", "METHOD_TOO_WORDY", "METHOD_IS_TEMPORARY", "METHOD_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 9 with ConfigBuilder

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

the class TestCFBugs_OutputDef method setUp.

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

Example 10 with ConfigBuilder

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

the class TestCFBugs_ParseError method setUp.

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