analyze method

Future<Iterable<AnalyzeResult>> analyze({
  1. required Directory dir,
})

Implementation

Future<Iterable<AnalyzeResult>> analyze({
  required Directory dir,
}) async {
  final result = await _runner.run(
    ['analyze', '--format=machine', dir.path],
    ignoreError: true,
  );

  return result.split('\n').map(_parser.parse).whereType<AnalyzeResult>();
}