analyzeFiles static method

  1. @Deprecated('see `analyze`, which now takes a list as an argument')
void analyzeFiles(
  1. List files, {
  2. Directory? packageRoot,
  3. bool fatalWarnings = false,
})

Analyze one or more Files or paths (String).

Implementation

@Deprecated('see `analyze`, which now takes a list as an argument')
static void analyzeFiles(List files,
    {Directory? packageRoot, bool fatalWarnings = false}) {
  runlib.run(sdkBin('dart'), arguments: [
    'analyze',
    if (packageRoot != null) '--package-root=${packageRoot.path}',
    if (fatalWarnings) '--fatal-warnings',
    ...coerceToPathList(files)
  ]);
}