use of com.cflint.api.CFLintAPI in project CFLint by cflint.
the class TestCFBugs_GLobalVarChecker method setUp.
@Before
public void setUp() throws Exception {
final ConfigBuilder configBuilder = new ConfigBuilder().include("GLOBAL_VAR");
cfBugs = new CFLintAPI(configBuilder.build());
}
use of com.cflint.api.CFLintAPI in project CFLint by cflint.
the class TestCFBugs_QueryParams method setUp.
@Before
public void setUp() throws Exception {
final ConfigBuilder configBuilder = new ConfigBuilder().include("QUERYPARAM_REQ", "CFQUERYPARAM_REQ");
cfBugs = new CFLintAPI(configBuilder.build());
}
use of com.cflint.api.CFLintAPI in project CFLint by cflint.
the class TestCFBugs_VarScoper method setUp.
@Before
public void setUp() throws CFLintConfigurationException {
final ConfigBuilder configBuilder = new ConfigBuilder().include("MISSING_VAR");
cfBugs = new CFLintAPI(configBuilder.build());
}
use of com.cflint.api.CFLintAPI in project CFLint by cflint.
the class TestCFBugs_VarScoper_TagAttr method setUp.
@Before
public void setUp() throws CFLintConfigurationException {
final ConfigBuilder configBuilder = new ConfigBuilder().include("MISSING_VAR");
cfBugs = new CFLintAPI(configBuilder.build());
}
use of com.cflint.api.CFLintAPI in project CFLint by cflint.
the class TestCFCustomTagChecker method setUp.
@Before
public void setUp() throws Exception {
final CFLintConfig conf = new CFLintConfig();
final PluginInfoRule pluginRuleX = new PluginInfoRule();
pluginRuleX.setName("CFXTagChecker");
conf.getRules().add(pluginRuleX);
final PluginMessage pluginMessageX = new PluginMessage("AVOID_USING_MYLIB:CFCUSTOMTAG_TAG");
pluginMessageX.setSeverity(Levels.WARNING);
pluginMessageX.setMessageText("Avoid Leaving <${tagName}> tags in committed code. Debug information should be ommited from release code");
pluginRuleX.getMessages().add(pluginMessageX);
pluginRuleX.addParameter("tagName", ".*:cfcustomtag");
CFLintPluginInfo pluginInfo = new CFLintPluginInfo();
pluginInfo.getRules().add(pluginRuleX);
pluginRuleX.setClassName("CFXTagChecker");
cfBugs = new CFLintAPI(new ConfigBuilder(pluginInfo).include("AVOID_USING_MYLIB:CFCUSTOMTAG_TAG").build());
cfBugs.setLogError(false);
}
Aggregations