Skip to content

Commit

Permalink
Removal of deprecated linter and change of repo link .pre-commit-config
Browse files Browse the repository at this point in the history
  • Loading branch information
CostcoFanboy committed Mar 9, 2023
1 parent 0d21784 commit e01b785
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
files: '\.go$'
language: 'script'
description: "Runs `go vet`, requires golang"
- id: go-lint
name: 'go lint'
entry: run-go-lint.sh
files: '\.go$'
language: 'script'
description: "Runs `golint`, requires https://github.com/golang/lint"
- id: go-cyclo
name: 'go-cyclo'
entry: run-go-cyclo.sh
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pre-commit-golang
=================

:rotating_light: Please see the project sunsetting announcement:
:rotating_light: This repo exists due to the sunsetting of the original repo
[Issues/98](https://github.com/dnephin/pre-commit-golang/issues/98)
:rotating_light:

Expand All @@ -13,12 +13,11 @@ golang hooks for http://pre-commit.com/

Add this to your `.pre-commit-config.yaml`

- repo: https://github.com/dnephin/pre-commit-golang
- repo: https://github.com/CostcoFanboy/pre-commit-golang
rev: master
hooks:
- id: go-fmt
- id: go-vet
- id: go-lint
- id: go-imports
- id: go-cyclo
args: [-over=15]
Expand All @@ -34,7 +33,6 @@ Add this to your `.pre-commit-config.yaml`

- `go-fmt` - Runs `gofmt`, requires golang
- `go-vet` - Runs `go vet`, requires golang
- `go-lint` - Runs `golint`, requires https://github.com/golang/lint but is unmaintained & deprecated in favour of [`golangci-lint`](https://github.com/golangci/golangci-lint)
- `go-imports` - Runs `goimports`, requires golang.org/x/tools/cmd/goimports
- `go-cyclo` - Runs `gocyclo`, require https://github.com/fzipp/gocyclo
- `validate-toml` - Runs `tomlv`, requires
Expand Down
23 changes: 0 additions & 23 deletions run-go-lint.sh

This file was deleted.

0 comments on commit e01b785

Please sign in to comment.