Skip to content

Commit

Permalink
Fix service health endpoint
Browse files Browse the repository at this point in the history
- Index mapping, settings
- Service extra field (provided name)
  • Loading branch information
denisacostaq committed Mar 21, 2022
1 parent f050c92 commit ba6a5e1
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 163 deletions.
58 changes: 58 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
linters-settings:
govet:
check-shadowing: true
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
golint:
min-confidence: 0

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- errcheck
- gocognit
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- structcheck
- stylecheck
- typecheck
- unparam
- unused
- varcheck
- whitespace

linters-settings:
gocognit:
min-complexity: 20

run:
skip-dirs:
- test/testdata_etc
- pkg/golinters/goanalysis/(checker|passes)

issues:
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.17.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"
Loading

0 comments on commit ba6a5e1

Please sign in to comment.