parselyzer 0.1.1 copy "parselyzer: ^0.1.1" to clipboard
parselyzer: ^0.1.1 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
150
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