use of com.cflint.tools.CFLintFilter in project CFLint by cflint.
the class TestCFBugsFilter method testIncludeCompound.
@Test
public void testIncludeCompound() throws IOException {
BugInfo bugInfo = new BugInfo.BugInfoBuilder().setFunction("testf").setMessageCode("PARSE_ERROR").setSeverity(Levels.INFO).build();
CFLintFilter filter = CFLintFilter.createFilter("[{\"severity\":\"INFO\",\"code\":\"OTH_ERROR\"}]");
assertTrue(filter.include(bugInfo));
}
Aggregations