runPluginAnalysis method

LintFileReport? runPluginAnalysis(
  1. ResolvedUnitResult result,
  2. LintAnalysisConfig config,
  3. String rootFolder
)

Returns a lint report for analyzing given result. The analysis is configured with the config.

Implementation

LintFileReport? runPluginAnalysis(
  ResolvedUnitResult result,
  LintAnalysisConfig config,
  String rootFolder,
) {
  if (!isExcluded(result.path, config.globalExcludes)) {
    return _analyzeFile(
      result,
      config,
      rootFolder,
      filePath: result.path,
    );
  }

  return null;
}