parselyzer 0.1.2 copy "parselyzer: ^0.1.2" to clipboard
parselyzer: ^0.1.2 copied to clipboard

Parse `dart analyze --format=json` output into Dart objects.

example/example.md

import 'dart:io';

import 'package:parselyzer/parselyzer.dart';

void main() {
  final result = Process.runSync('dart', ['analyze', '--format=json']);
  final analysis = AnalyzerResult.fromConsole(result.stdout as String);
  final issues = analysis?.diagnostics.length ?? 0;
  print('Found $issues issues');
}

1
likes
160
pub points
20%
popularity

Publisher

verified publisherrexios.dev

Parse `dart analyze --format=json` output into Dart objects.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, collection, json_annotation

More

Packages that depend on parselyzer