use of com.cflint.plugins.core.CFXTagChecker in project CFLint by cflint.
the class TestCFExecuteChecker method setUp.
@Before
public void setUp() throws Exception {
final CFLintConfig conf = new CFLintConfig();
final PluginInfoRule pluginRule = new PluginInfoRule();
pluginRule.setName("CFXTagChecker");
pluginRule.addParameter("tagName", "cfexecute");
conf.getRules().add(pluginRule);
final PluginMessage pluginMessage = new PluginMessage("AVOID_USING_CFEXECUTE_TAG");
pluginMessage.setSeverity("INFO");
pluginMessage.setMessageText("Avoid Leaving <${tagName}> tags in committed code.");
pluginRule.getMessages().add(pluginMessage);
final CFXTagChecker checker = new CFXTagChecker();
checker.setParameter("tagName", "cfexecute");
cfBugs = new CFLint(conf, checker);
}
Aggregations