Skip to content

Commit 670d1fc

Browse files
author
Denis Krivak
committed
Add gofumpt linter.
1 parent 429f472 commit 670d1fc

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ linters:
2929
- gocyclo
3030
- godot
3131
- gofmt
32+
- gofumpt
3233
- goimports
3334
- golint
3435
- gomnd

cmd/godot/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
var version = "master"
1717

1818
const usage = `Usage:
19-
godot [OPTION] [FILES]
19+
godot [OPTION] [FILES]
2020
Options:
2121
-a, --all check all top-level comments (not only declarations)
2222
-f, --fix fix issues, and print fixed version to stdout

testdata/checkall/in/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ void myprint(char* s) {
1111
1212
# PASS
1313
*/
14-
import "C"
15-
import "unsafe"
14+
import (
15+
"C"
16+
"unsafe"
17+
)
1618

1719
//args: tagged comment without period PASS
1820

testdata/checkall/out/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ void myprint(char* s) {
1111
1212
# PASS
1313
*/
14-
import "C"
15-
import "unsafe"
14+
import (
15+
"C"
16+
"unsafe"
17+
)
1618

1719
//args: tagged comment without period PASS
1820

testdata/default/in/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ void myprint(char* s) {
1111
1212
# PASS
1313
*/
14-
import "C"
15-
import "unsafe"
14+
import (
15+
"C"
16+
"unsafe"
17+
)
1618

1719
//args: tagged comment without period PASS
1820

testdata/default/out/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ void myprint(char* s) {
1111
1212
# PASS
1313
*/
14-
import "C"
15-
import "unsafe"
14+
import (
15+
"C"
16+
"unsafe"
17+
)
1618

1719
//args: tagged comment without period PASS
1820

0 commit comments

Comments
 (0)