Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blendthink/danger-plugin-dart-analyze
https://github.com/blendthink/danger-plugin-dart-analyze
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/blendthink/danger-plugin-dart-analyze
- Owner: blendthink
- License: bsd-3-clause
- Created: 2022-07-06T16:46:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T01:01:14.000Z (over 1 year ago)
- Last Synced: 2024-05-01T16:18:31.694Z (8 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/danger_plugin_dart_analyze
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Danger Plugin: Dart Analyze
[![Pub version](https://img.shields.io/pub/v/danger_plugin_dart_analyze.svg)](https://pub.dev/packages/danger_plugin_dart_analyze)
This plugin will parse the analyze results, and notify.
## Usage
First, you need to prepare test result in json format.
You may either:```shell
dart analyze > your_analyze_results.log
flutter analyze > your_analyze_results.log
```Adding this plugin to `pubspec.yaml`
```yaml
dev_dependencies:
danger_core:
danger_plugin_dart_analyze:
```In `dangerfile.dart`, you need to import this, and call `DangerPluginDartAnalyze.processFile` with analyze result file.
```dart
import 'dart:io';import 'package:danger_core/danger_core.dart';
import 'package:danger_plugin_dart_analyze/danger_plugin_dart_analyze.dart';void main() {
final analyzeResultFile = File('your_analyze_results.log');
DangerPluginDartAnalyze.processFile(analyzeResultFile);
}
```