@Test public void linesOfCode() throws Exception { scan("" + "x + 1;\n" + " "fun function1() { "x = true || false; }"); assertThat(visitor.linesOfCode()).containsExactly(1, 3, 4); }
public Set<Integer> linesOfCode() { return linesOfCode; }
MetricVisitor extends TreeVisitor<InputFileContext> { public Set<Integer> linesOfCode() { return linesOfCode; } }
MetricVisitor extends TreeVisitor<InputFileContext> { public Set<Integer> linesOfCode() { return linesOfCode; } MetricVisitor(FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter); }
MetricVisitor extends TreeVisitor<InputFileContext> { public Set<Integer> linesOfCode() { return linesOfCode; } MetricVisitor(FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter); static boolean isNosonarComment(Comment comment); Set<Integer> linesOfCode(); Set<Integer> commentLines(); Set<Integer> nosonarLines(); Set<Integer> executableLines(); int numberOfFunctions(); int numberOfClasses(); int cognitiveComplexity(); }
MetricVisitor extends TreeVisitor<InputFileContext> { public Set<Integer> linesOfCode() { return linesOfCode; } MetricVisitor(FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter); static boolean isNosonarComment(Comment comment); Set<Integer> linesOfCode(); Set<Integer> commentLines(); Set<Integer> nosonarLines(); Set<Integer> executableLines(); int numberOfFunctions(); int numberOfClasses(); int cognitiveComplexity(); static final String NOSONAR_PREFIX; }