Skip to content

Commit 34ea629

Browse files
committed
chore: add lint task
1 parent 5ce3a48 commit 34ea629

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Taskfile.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tasks:
2121
desc: Remove temporal folders
2222
cmds:
2323
- rm -rf ./plugin
24+
2425
rootfs:
2526
silent: true
2627
desc: Build the rootfs needed for the plugin
@@ -31,16 +32,25 @@ tasks:
3132
- docker export opsd-rootfs | tar -x -C ./plugin/rootfs
3233
- cp config.json ./plugin/
3334
- docker rm -vf opsd-rootfs
35+
3436
create:
3537
desc: Create Docker Plugin
3638
cmds:
3739
- docker plugin rm -f {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}} || true
3840
- docker plugin create {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}} ./plugin
41+
3942
disable:
4043
desc: Disable local plugin
4144
cmds:
4245
- docker plugin disable {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}} || true
46+
4347
enable:
4448
desc: Enable local plugin
4549
cmds:
4650
- docker plugin enable {{.PLUGIN_NAME}}:{{.PLUGIN_VERSION}}
51+
lint:
52+
desc: Lint the code
53+
cmds:
54+
- go vet ./...
55+
- go tool staticcheck ./...
56+
- go tool revive ./...

0 commit comments

Comments
 (0)