mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
fix: move gofmt to golintci, disable most of the checks
This commit is contained in:
parent
933c90e805
commit
dca80cfb7e
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
|
@ -53,7 +53,7 @@ jobs:
|
||||||
pip install pre-commit
|
pip install pre-commit
|
||||||
pre-commit install-hooks
|
pre-commit install-hooks
|
||||||
pre-commit run markdownlint --files=README.md --verbose
|
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
|
- name: Install Migration Tool
|
||||||
run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1
|
run: go install github.com/c9s/rockhopper/cmd/rockhopper@v1.2.1
|
||||||
|
|
7
.golangci.yml
Normal file
7
.golangci.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
run:
|
||||||
|
issues-exit-code: 0
|
||||||
|
tests: false
|
||||||
|
linters:
|
||||||
|
disable-all: true
|
||||||
|
enable:
|
||||||
|
- gofmt
|
|
@ -12,9 +12,3 @@ repos:
|
||||||
rev: v0.31.1
|
rev: v0.31.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: markdownlint
|
- id: markdownlint
|
||||||
# Go
|
|
||||||
- repo: https://github.com/dnephin/pre-commit-golang
|
|
||||||
rev: v0.5.0
|
|
||||||
hooks:
|
|
||||||
- id: go-fmt
|
|
||||||
args: ['-l']
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user