Skip to content

Commit

Permalink
Add docker-golangci-lint: a simple shell script to run golangci-lint …
Browse files Browse the repository at this point in the history
…in Docker
  • Loading branch information
GreyCat committed Mar 29, 2024
1 parent f59775d commit aefeff8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-golangci-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh -ef

# Runs golangci-lint locally using Docker without installing it on machine

docker run -t --rm -v $(pwd):/app -v ~/.cache/golangci-lint/v1.57.2:/root/.cache -w /app golangci/golangci-lint:v1.57.2 golangci-lint run -v

0 comments on commit aefeff8

Please sign in to comment.