@Test
void analyze() {

    final DetektResult result = new DetektAnalyzer(AnalyzerConfig.maven(KOTLIN).mainAndTest(), new DetektCollector()
            .just(In.classes("Linker").ignore("MaxLineLength")))
            .analyze();
    assertMatcher(""
                    + line(Style, "style", "NewLineAtEndOfFile", "Linker", 59, "Checks whether files end with a line separator."),
            result, hasNoDetektIssues());
}