Search in sources :

Example 1 with ArgHintChecker

use of com.cflint.plugins.core.ArgHintChecker in project CFLint by cflint.

the class TestCFBugs_ArgsHint method setUp.

@Before
public void setUp() throws Exception {
    final CFLintConfig conf = new CFLintConfig();
    final PluginInfoRule pluginRule = new PluginInfoRule();
    pluginRule.setName("ArgHintChecker");
    conf.getRules().add(pluginRule);
    final PluginMessage pluginMessage = new PluginMessage("ARG_HINT_MISSING");
    pluginMessage.setSeverity("WARNING");
    pluginMessage.setMessageText("Argument ${variable} is missing a hint.");
    pluginRule.getMessages().add(pluginMessage);
    cfBugs = new CFLint(conf, new ArgHintChecker());
}
Also used : ArgHintChecker(com.cflint.plugins.core.ArgHintChecker) 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)1 PluginInfoRule (com.cflint.config.CFLintPluginInfo.PluginInfoRule)1 PluginMessage (com.cflint.config.CFLintPluginInfo.PluginInfoRule.PluginMessage)1 ArgHintChecker (com.cflint.plugins.core.ArgHintChecker)1 Before (org.junit.Before)1