From 71f20192d45009f5ecd9a09b65cb344883b06af9 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Fri, 14 Feb 2025 10:54:32 -0300 Subject: [PATCH] chore: replace multiple linters and formatters with golangci config --- .golangci.yml | 22 ++++++++++++++++++++++ flake.nix | 3 --- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..66fa977 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,22 @@ +$schema: https://golangci-lint.run/jsonschema/golangci.jsonschema.json + +run: + timeout: 5m + modules-download-mode: readonly + +linters: + disable-all: true + enable: + - errcheck + - goimports + - gofumpt + - revive # golint + - gosimple + - govet + - ineffassign + - staticcheck + +issues: + exclude-use-default: false + max-issues-per-linter: 0 + max-same-issues: 0 diff --git a/flake.nix b/flake.nix index 00e8944..76b17ec 100644 --- a/flake.nix +++ b/flake.nix @@ -24,10 +24,7 @@ buildInputs = with pkgs; [ # Go tools go - gofumpt golangci-lint - golines - gotools delve ]; };