Skip to content

Commit

Permalink
format & CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-Morgan committed Oct 23, 2024
1 parent 6d10c97 commit 11595b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
run:
# include `vendor` `third_party` `testdata` `examples` `Godeps` `builtin`
skip-dirs-use-default: true
skip-dirs:
- kitex_gen
skip-files:
- ".*\\.mock\\.go$"
# output configuration options
output:
# Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
format: colored-line-number
formats: colored-line-number
# All available settings of specific linters.
# Refer to https://golangci-lint.run/usage/linters
linters-settings:
Expand All @@ -29,8 +25,10 @@ linters:
disable:
- errcheck
- typecheck
- deadcode
- varcheck
- staticcheck
issues:
exclude-use-default: true
exclude-files:
- ".*\\.mock\\.go$"
exclude-dirs:
- kitex_gen
1 change: 1 addition & 0 deletions apollo/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
func init() {
log.InitLogger(NewCustomApolloLogger())
}

func NewCustomApolloLogger() log.LoggerInterface {
return cwapollo.NewCustomApolloLogger()
}

0 comments on commit 11595b7

Please sign in to comment.