This commit is contained in:
skeris 2024-07-21 17:17:46 +03:00
commit f777c7f0ee
3 changed files with 31 additions and 0 deletions

21
.golangci.yml Normal file

@ -0,0 +1,21 @@
run:
timeout: 5m
skip-files:
- \.pb\.go$
- .pb.go
- \.pb\.validate\.go$
- \.pb\.gw\.go$
- .pb.gw.go
- \.gen\.go$
skip-dirs:
- mocks
linters:
disable-all: true
enable:
- errcheck
linters-settings:
errcheck:
exclude-functions:
- (io.Closer).Close

3
go.mod Normal file

@ -0,0 +1,3 @@
module penahub.gitlab.yandexcloud.net/devops/linters/golang
go 1.22.2

7
main.go Normal file

@ -0,0 +1,7 @@
package main
import "os"
func main() {
os.Exit(0)
}