Skip to content

Commit c2ca764

Browse files
committed
Add test for non gofmted code
1 parent 2e9f1a1 commit c2ca764

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

test/testdata/fix/in/whitespace.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,14 @@ func multiIfFunc() {
7171
}
7272
}
7373
}
74+
75+
func notGoFmted() {
76+
77+
78+
79+
80+
fmt.Println("Hello world")
81+
82+
83+
84+
}

test/testdata/fix/out/whitespace.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ func multiIfFunc() {
6969
}
7070
}
7171
}
72+
73+
func notGoFmted() {
74+
fmt.Println("Hello world")
75+
}

0 commit comments

Comments
 (0)