Search in sources :

Example 6 with CFXTagChecker

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);
}
Also used : CFXTagChecker(com.cflint.plugins.core.CFXTagChecker) CFLintConfig(com.cflint.config.CFLintConfig) PluginMessage(com.cflint.config.CFLintPluginInfo.PluginInfoRule.PluginMessage) PluginInfoRule(com.cflint.config.CFLintPluginInfo.PluginInfoRule) Before(org.junit.Before)

Aggregations

CFLintConfig (com.cflint.config.CFLintConfig)6 PluginInfoRule (com.cflint.config.CFLintPluginInfo.PluginInfoRule)6 PluginMessage (com.cflint.config.CFLintPluginInfo.PluginInfoRule.PluginMessage)6 CFXTagChecker (com.cflint.plugins.core.CFXTagChecker)6 Before (org.junit.Before)6