fix: move gofmt to golintci, disable most of the checks

This commit is contained in:
zenix 2022-06-17 19:00:36 +09:00
parent 933c90e805
commit dca80cfb7e
3 changed files with 8 additions and 7 deletions

View File

@ -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

7
.golangci.yml Normal file
View File

@ -0,0 +1,7 @@
run:
issues-exit-code: 0
tests: false
linters:
disable-all: true
enable:
- gofmt

View File

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