File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,14 @@ tasks:
5656 vars :
5757 paths : " {{.paths}}"
5858
59+ _wormatter :
60+ internal : true
61+ cmds :
62+ - docker run --rm -u "$(id -u):$(id -g)" -v $(pwd):/work -w /work ghcr.io/werf/wormatter:1.3.2 {{if eq .onlyLint "true"}}-c{{end}} {{.paths | default "internal/ cmd/ pkg/"}}
63+ vars :
64+ onlyLint : ' {{.onlyLint | default "false"}}'
65+ paths : " {{.paths}}"
66+
5967 build :
6068 desc : " Build main dev binary."
6169 run : once
@@ -253,6 +261,13 @@ tasks:
253261 cmds :
254262 - gofumpt -extra -w {{.CLI_ARGS}} {{.paths | default "internal/ cmd/ pkg/"}}
255263
264+ format:wormatter :
265+ desc : ' Format with wormatter. Important vars: "paths".'
266+ cmds :
267+ - task : _wormatter
268+ vars :
269+ paths : " {{.paths}}"
270+
256271 format:golangci-lint :
257272 desc : ' Format with golangci-lint. Important vars: "paths".'
258273 cmds :
@@ -308,6 +323,14 @@ tasks:
308323 fix : " false"
309324 paths : " {{.paths}}"
310325
326+ lint:wormatter :
327+ desc : ' Lint with wormatter. Important vars: "paths".'
328+ cmds :
329+ - task : _wormatter
330+ vars :
331+ onlyLint : " true"
332+ paths : " {{.paths}}"
333+
311334 lint:prettier :
312335 desc : " Check if prettier-formatted."
313336 deps :
You can’t perform that action at this time.
0 commit comments