Skip to content

Commit 3fb9488

Browse files
authored
Eliminate the need for dart_style dev_dependency (flutter#20)
Apply dartfmt straight from the SDK.
1 parent 4531665 commit 3fb9488

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ version: 0.2.0
99
dependencies:
1010
path: ^1.4.0
1111
dev_dependencies:
12-
dart_style:
1312
test: ^0.12.10

tool/travis.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/bash
22

33
# Make sure dartfmt is run on everything
4-
# This assumes you have dart_style as a dev_dependency
54
echo "Checking dartfmt..."
6-
NEEDS_DARTFMT="$(find lib test tool -name "*.dart" | xargs pub run dart_style:format -n)"
5+
NEEDS_DARTFMT="$(dartfmt -n lib test tool)"
76
if [[ ${NEEDS_DARTFMT} != "" ]]
87
then
98
echo "FAILED"

0 commit comments

Comments
 (0)