use of com.cflint.plugins.core.VarScoper in project CFLint by cflint.
the class TestCFBugs_ParseError method setUp.
@Before
public void setUp() throws Exception {
final CFLintConfig conf = new CFLintConfig();
cfBugs = new CFLint(conf, new VarScoper());
cfBugs.setLogError(true);
}
use of com.cflint.plugins.core.VarScoper in project CFLint by cflint.
the class TestCFBugs_VarScoper_Names method setUp.
@Before
public void setUp() {
CFLintConfig conf = new CFLintConfig();
PluginInfoRule pluginRule = new PluginInfoRule();
pluginRule.setName("VarScoper");
conf.getRules().add(pluginRule);
PluginMessage pluginMessage = new PluginMessage("MISSING_VAR");
pluginMessage.setSeverity("ERROR");
pluginMessage.setMessageText("Variable ${variable} is not declared with a var statement.");
pluginRule.getMessages().add(pluginMessage);
cfBugs = new CFLint(conf, new VarScoper());
}
use of com.cflint.plugins.core.VarScoper in project CFLint by cflint.
the class TestParsingErrors method setUp.
@Before
public void setUp() throws Exception {
CFLintConfig conf = new CFLintConfig();
PluginInfoRule pluginRule = new PluginInfoRule();
pluginRule.setName("VarScoper");
conf.getRules().add(pluginRule);
PluginMessage pluginMessage = new PluginMessage("MISSING_VAR");
pluginMessage.setSeverity("ERROR");
pluginMessage.setMessageText("Variable ${variable} is not declared with a var statement.");
pluginRule.getMessages().add(pluginMessage);
cfBugs = new CFLint(conf, new VarScoper());
}
use of com.cflint.plugins.core.VarScoper in project CFLint by cflint.
the class TestCFBugs_VarScoper method setUp.
@Before
public void setUp() {
CFLintConfig conf = new CFLintConfig();
PluginInfoRule pluginRule = new PluginInfoRule();
pluginRule.setName("VarScoper");
conf.getRules().add(pluginRule);
PluginMessage pluginMessage = new PluginMessage("MISSING_VAR");
pluginMessage.setSeverity("ERROR");
pluginMessage.setMessageText("Variable ${variable} is not declared with a var statement.");
pluginRule.getMessages().add(pluginMessage);
cfBugs = new CFLint(conf, new VarScoper());
}
use of com.cflint.plugins.core.VarScoper in project CFLint by cflint.
the class TestCFBugs_VarScoper_TagAttr method setUp.
@Before
public void setUp() {
CFLintConfig conf = new CFLintConfig();
PluginInfoRule pluginRule = new PluginInfoRule();
pluginRule.setName("VarScoper");
conf.getRules().add(pluginRule);
PluginMessage pluginMessage = new PluginMessage("MISSING_VAR");
pluginMessage.setSeverity("ERROR");
pluginMessage.setMessageText("Variable ${variable} is not declared with a var statement.");
pluginRule.getMessages().add(pluginMessage);
cfBugs = new CFLint(conf, new VarScoper());
}
Aggregations