@Test public void correctly_reports_strings_with_embedded_newline() { FileLinesVisitor visitor = new FileLinesVisitor(); TestOpenApiVisitorRunner.scanFile(new File(BASE_DIR, "embedded-newlines-lines.yaml"), visitor); assertThat(visitor.getLinesOfCode()).hasSize(16); assertThat(visitor.getLinesOfCode()).containsOnly(1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 17, 18, 19); }
public Set<Integer> getLinesOfCode() { return Collections.unmodifiableSet(new HashSet<>(linesOfCode)); }
FileLinesVisitor extends OpenApiVisitor { public Set<Integer> getLinesOfCode() { return Collections.unmodifiableSet(new HashSet<>(linesOfCode)); } }
FileLinesVisitor extends OpenApiVisitor { public Set<Integer> getLinesOfCode() { return Collections.unmodifiableSet(new HashSet<>(linesOfCode)); }  }
FileLinesVisitor extends OpenApiVisitor { public Set<Integer> getLinesOfCode() { return Collections.unmodifiableSet(new HashSet<>(linesOfCode)); }  @Override void visitFile(JsonNode node); @Override void visitToken(Token token); Set<Integer> getLinesWithNoSonar(); Set<Integer> getLinesOfCode(); Set<Integer> getLinesOfComments(); }
FileLinesVisitor extends OpenApiVisitor { public Set<Integer> getLinesOfCode() { return Collections.unmodifiableSet(new HashSet<>(linesOfCode)); }  @Override void visitFile(JsonNode node); @Override void visitToken(Token token); Set<Integer> getLinesWithNoSonar(); Set<Integer> getLinesOfCode(); Set<Integer> getLinesOfComments();  }