Skip to content

Commit

Permalink
Use dart_dev for formatting so that we can exclude files
Browse files Browse the repository at this point in the history
greglittlefield-wf committed Aug 6, 2024
1 parent cbc86da commit 900191c
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dart_ci.yml
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ jobs:
if: always() && steps.install.outcome == 'success'

- name: Validate formatting
run: dart format --set-exit-if-changed .
run: dart run dart_dev format --check
if: always() && steps.install.outcome == 'success' && matrix.sdk == '2.18.7'

- name: Analyze project source
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -33,6 +33,7 @@ dev_dependencies:
async: ^2.0.0
build_runner: ^2.1.1
build_test: ^2.1.3
dart_dev: ^4.1.1
dart_style: ^2.0.3
dependency_validator: ^4.0.0
json_serializable: ^6.5.3
9 changes: 9 additions & 0 deletions tool/dart_dev/config.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'package:dart_dev/dart_dev.dart';
import 'package:glob/glob.dart';

final config = {
'format': FormatTool()
..exclude = [
Glob('test/test_fixtures/**'),
]
};

0 comments on commit 900191c

Please sign in to comment.