Skip to content

Commit 7a2e9cd

Browse files
authored
Merge pull request #1 from go-generalize/tsuzu/remove-flutter-format
Remove `flutter format`
2 parents 9bd233e + f558015 commit 7a2e9cd

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

cli.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,3 @@ func FormatDartWithDartfmtCLI(script string) (string, error) {
5151

5252
return formatted, nil
5353
}
54-
55-
// FormatDartWithFlutterCLI formats a script with `flutter format`
56-
func FormatDartWithFlutterCLI(script string) (string, error) {
57-
formatted, err := runCLI(script, "flutter", "format")
58-
59-
if err != nil {
60-
return "", fmt.Errorf("formatting with `flutter format` failed: %w", err)
61-
}
62-
63-
return formatted, nil
64-
}

cli_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,3 @@ func TestFormatDartWithDartCLI(t *testing.T) {
1313
func TestFormatDartWithDartfmtCLI(t *testing.T) {
1414
runFormat(t, dartfmt.FormatDartWithDartfmtCLI, "testdata/001")
1515
}
16-
17-
func TestFormatDartWithFlutterCLI(t *testing.T) {
18-
runFormat(t, dartfmt.FormatDartWithFlutterCLI, "testdata/001")
19-
}

dartfmt.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ type Formatter func(script string) (string, error)
1111

1212
// Formatters are candidates for FormatDart
1313
var Formatters = []Formatter{
14-
FormatDartWithFlutterCLI,
1514
FormatDartWithDartCLI,
1615
FormatDartWithDartfmtCLI,
1716
FormatDartStandalone,

0 commit comments

Comments
 (0)