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());
}
Aggregations