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']