Skip to content

Commit

Permalink
release120
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodanzhang committed Sep 16, 2022
1 parent f5ff3b5 commit f1343bf
Show file tree
Hide file tree
Showing 173 changed files with 48,370 additions and 8 deletions.
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Kubernetes Generated files - skip generated files, except for vendored files

!vendor/**/zz_generated.*

# editor and IDE paraphernalia
.idea
*.swp
*.swo
*~
.vscode/
*.dos
coverage.txt
performance/
57 changes: 57 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
run:
skip-dirs:
- test
- performance
- example
linters-settings:
stylecheck:
# Select the Go version to target.
# Default: 1.13
go: "1.15"
# https://staticcheck.io/docs/options#checks
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022"]
# https://staticcheck.io/docs/options#dot_import_whitelist
dot-import-whitelist:
- fmt
# https://staticcheck.io/docs/options#initialisms
initialisms: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS"]
# https://staticcheck.io/docs/options#http_status_code_whitelist
http-status-code-whitelist: ["200", "400", "404", "500"]
linters:
enable-all: true
disable:
- wrapcheck
- ireturn
- dupl
- varnamelen
- gosec
- gocyclo
- stylecheck
- nlreturn
- gochecknoglobals
- goerr113
- gomnd
- maintidx
- gofumpt
- gci
- gocritic
- forcetypeassert
- exhaustivestruct
- exhaustruct
- exhaustive
- cyclop
- containedctx
- wsl
- paralleltest
- testpackage
- maligned
- gocognit
- forbidigo
- nestif
- lll
- funlen
- godox
- scopelint
- golint
- interfacer
- ifshort
Loading

0 comments on commit f1343bf

Please sign in to comment.