From dca80cfb7e35d65241e36ee3720e75bab38034b1 Mon Sep 17 00:00:00 2001 From: zenix Date: Fri, 17 Jun 2022 19:00:36 +0900 Subject: [PATCH] fix: move gofmt to golintci, disable most of the checks --- .github/workflows/go.yml | 2 +- .golangci.yml | 7 +++++++ .pre-commit-config.yaml | 6 ------ 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .golangci.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2af2b1632..974f950c6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -53,7 +53,7 @@ jobs: pip install pre-commit pre-commit install-hooks pre-commit run markdownlint --files=README.md --verbose - pre-commit run go-fmt --all-files --verbose + pre-commit run detect-secrets --all-files --verbose - name: Install Migration Tool run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1 diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 000000000..081c79221 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,7 @@ +run: + issues-exit-code: 0 + tests: false +linters: + disable-all: true + enable: + - gofmt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9bedc2d1d..cbb041829 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,9 +12,3 @@ repos: rev: v0.31.1 hooks: - id: markdownlint - # Go - - repo: https://github.com/dnephin/pre-commit-golang - rev: v0.5.0 - hooks: - - id: go-fmt - args: ['-l']