diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..297fd59 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,3 @@ +issues: + exclude-dirs: + - contrib diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..44055ab --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/golangci/golangci-lint + rev: v1.57.1 + hooks: + - id: golangci-lint-full diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0614a2d --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +.PHONY: lint +lint: + pre-commit run --all-files golangci-lint-full