test_class.file: code-assert/src/test/java/guru/nidi/codeassert/ktlint/KtlintAnalyzerTest.java
test_class.identifier: KtlintAnalyzerTest
test_case.body: @Test
      void analyze() {
          final KtlintResult result = new KtlintAnalyzer(AnalyzerConfig.maven(KOTLIN).test(), new KtlintCollector()
                  .just(In.classes("Linker").ignore("no-semi"))).analyze();
          assertMatcher(""
                          + line("import-ordering", "Linker", 18, "Imports must be ordered in lexicographic order without any empty lines in-between")
                          + line("no-consecutive-blank-lines", "Linker", 34, "Needless blank line(s)")
                          + line("no-unused-imports", "Linker", 18, "Unused import")
                          + line("no-wildcard-imports", "Linker", 19, "Wildcard import"),
                  result, hasNoKtlintIssues());
      }
test_case.class_method_signature: KtlintAnalyzerTest.analyze()
test_case.full_signature: @Test void analyze()
test_case.identifier: analyze
test_case.invocations: analyze test maven just ignore classes assertMatcher line line line line hasNoKtlintIssues
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void analyze()
focal_class.declarator: LOG = LoggerFactory.getLogger(KtlintAnalyzer.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(KtlintAnalyzer.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: ERROR_COMPARATOR = Comparator
              .comparing((LocatedLintError e) -> e.ruleId)
              .thenComparing(e -> e.line)
focal_class.modifier: private static final
focal_class.original_string: private static final Comparator<LocatedLintError> ERROR_COMPARATOR = Comparator
              .comparing((LocatedLintError e) -> e.ruleId)
              .thenComparing(e -> e.line);
focal_class.type: Comparator<LocatedLintError>
focal_class.var_name: ERROR_COMPARATOR
focal_class.declarator: config
focal_class.modifier: private final
focal_class.original_string: private final AnalyzerConfig config;
focal_class.type: AnalyzerConfig
focal_class.var_name: config
focal_class.declarator: collector
focal_class.modifier: private final
focal_class.original_string: private final KtlintCollector collector;
focal_class.type: KtlintCollector
focal_class.var_name: collector
focal_class.declarator: ruleSets
focal_class.modifier: private final
focal_class.original_string: private final List<RuleSet> ruleSets;
focal_class.type: List<RuleSet>
focal_class.var_name: ruleSets
focal_class.file: code-assert/src/main/java/guru/nidi/codeassert/ktlint/KtlintAnalyzer.java
focal_class.identifier: KtlintAnalyzer
focal_class.interfaces: implements Analyzer<List<LocatedLintError>>
focal_class.class_method_signature: KtlintAnalyzer.KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector)
focal_class.full_signature: public  KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector)
focal_class.identifier: KtlintAnalyzer
focal_class.modifiers: public
focal_class.parameters: (AnalyzerConfig config, KtlintCollector collector)
focal_class.signature:  KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector)
focal_class.class_method_signature: KtlintAnalyzer.KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector, List<RuleSet> ruleSets)
focal_class.full_signature: private  KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector, List<RuleSet> ruleSets)
focal_class.identifier: KtlintAnalyzer
focal_class.modifiers: private
focal_class.parameters: (AnalyzerConfig config, KtlintCollector collector, List<RuleSet> ruleSets)
focal_class.signature:  KtlintAnalyzer(AnalyzerConfig config, KtlintCollector collector, List<RuleSet> ruleSets)
focal_class.class_method_signature: KtlintAnalyzer.withRuleSets(RuleSet... ruleSets)
focal_class.full_signature: public KtlintAnalyzer withRuleSets(RuleSet... ruleSets)
focal_class.identifier: withRuleSets
focal_class.modifiers: public
focal_class.parameters: (RuleSet... ruleSets)
focal_class.return: KtlintAnalyzer
focal_class.signature: KtlintAnalyzer withRuleSets(RuleSet... ruleSets)
focal_class.class_method_signature: KtlintAnalyzer.analyze()
focal_class.full_signature: public KtlintResult analyze()
focal_class.identifier: analyze
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: KtlintResult
focal_class.signature: KtlintResult analyze()
focal_class.class_method_signature: KtlintAnalyzer.findRuleSets()
focal_class.full_signature: private List<RuleSet> findRuleSets()
focal_class.identifier: findRuleSets
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: List<RuleSet>
focal_class.signature: List<RuleSet> findRuleSets()
focal_class.class_method_signature: KtlintAnalyzer.readFile(File f)
focal_class.full_signature: private String readFile(File f)
focal_class.identifier: readFile
focal_class.modifiers: private
focal_class.parameters: (File f)
focal_class.return: String
focal_class.signature: String readFile(File f)
focal_class.class_method_signature: KtlintAnalyzer.createResult(ErrorListener listener)
focal_class.full_signature: private KtlintResult createResult(ErrorListener listener)
focal_class.identifier: createResult
focal_class.modifiers: private
focal_class.parameters: (ErrorListener listener)
focal_class.return: KtlintResult
focal_class.signature: KtlintResult createResult(ErrorListener listener)
focal_method.body: public KtlintResult analyze() {
          final ErrorListener listener = new ErrorListener();
          for (final File src : config.getSources(KOTLIN)) {
              try {
                  listener.currentFile = src;
                  KtLint.INSTANCE.lint(new KtLint.Params(
                          src.getAbsolutePath(), readFile(src), findRuleSets(),
                          emptyMap(), listener, false, null, false));
              } catch (IOException e) {
                  LOG.error("Could not read file {}", src, e);
              }
          }
          return createResult(listener);
      }
focal_method.class_method_signature: KtlintAnalyzer.analyze()
focal_method.full_signature: public KtlintResult analyze()
focal_method.identifier: analyze
focal_method.invocations: getSources lint getAbsolutePath readFile findRuleSets emptyMap error createResult
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: KtlintResult
focal_method.signature: KtlintResult analyze()