Skip to content

Commit

Permalink
fix: [#100] Prevent code duplication by using a Taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sbp-bvanb committed Oct 28, 2024
1 parent e71eb4b commit e6b2123
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
version: "3"

vars:
GOLANGCI_LINT_VERSION: 1.60.3

tasks:
golangci-lint-install:
silent: true
cmds:
- |
if ! golangci-lint --version | grep "has version {{.GOLANGCI_LINT_VERSION}}"; then
curl \
-sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh |\
sh -s -- -b $(go env GOPATH)/bin v{{.GOLANGCI_LINT_VERSION}}
fi
lint:
silent: true
cmds:
- task: golangci-lint-install

0 comments on commit e6b2123

Please sign in to comment.