tools: Add gofmt tool for golang files.
This commit is contained in:
parent
0d204d2a8f
commit
404c2f7775
2 changed files with 9 additions and 1 deletions
|
|
@ -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])
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue