}
@Test
public void testCustom() {
check.max = 3;
SourceFile file = JavaScriptAstScanner.scanSingleFile(new File("src/test/resources/checks/tooManyLinesInFunction.js"), check);
CheckMessagesVerifier.verify(file.getCheckMessages())
.next().atLine(1).withMessage("This function has 6 lines, which is greater than the " + check.max + " lines authorized. Split it into smaller functions.")
.next().atLine(2).withMessage("This function has 4 lines, which is greater than the " + check.max + " lines authorized. Split it into smaller functions.")
.next().atLine(8)
.next().atLine(13)
.next().atLine(20)