tools: Add gofmt tool for golang files.

This commit is contained in:
Andrew Hamilton 2018-04-06 20:53:58 +10:00
parent 0d204d2a8f
commit 404c2f7775
2 changed files with 9 additions and 1 deletions

View file

@ -788,7 +788,8 @@ TOOLS_FOR_EXTENSIONS = \
(["tar.bz2"], [tar_bz2]), (["tar.bz2"], [tar_bz2]),
(["a", "so"], [nm]), (["a", "so"], [nm]),
(IMAGE_EXTENSIONS, [pil, pil_half]), (IMAGE_EXTENSIONS, [pil, pil_half]),
(["bash", "sh", "dash", "ksh"], [shellcheck]) (["bash", "sh", "dash", "ksh"], [shellcheck]),
(["go"], [gofmt])
] ]

View file

@ -102,3 +102,10 @@ cppcheck:
url: cppcheck url: cppcheck
executables: [cppcheck] executables: [cppcheck]
command: cppcheck command: cppcheck
gofmt:
dependencies: [golang-go]
url: golang-go
executables: [gofmt]
command: gofmt
success_status: normal