Skip to content

Commit

Permalink
chore: update deps and tools
Browse files Browse the repository at this point in the history
  • Loading branch information
powerman committed Mar 21, 2021
1 parent c4f2f76 commit 918ae31
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 85 deletions.
21 changes: 16 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ run:
#concurrency: 4

# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
#timeout: 1m

# exit code when at least one issue was found, default is 1
#issues-exit-code: 1
Expand Down Expand Up @@ -113,7 +113,7 @@ linters-settings:
default-signifies-exhaustive: false
exhaustivestruct:
struct-patterns:
- '*.ExampleTypeToAlwaysFillAllFields'
- 'github.com/powerman/go-monolith-example/ms/*/internal/config.[A-Z]*Config'
funlen:
lines: 60
statements: 40
Expand Down Expand Up @@ -233,7 +233,7 @@ linters-settings:
regexp:
# define here regexp type values, for example
# AUTHOR: .*@mycompany\.com
template: # |
template: # |-
# put here copyright header template for source code files, for example:
# Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time.
#
Expand Down Expand Up @@ -301,10 +301,12 @@ linters-settings:
#- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf

# enable or disable analyzers by name
# run `go tool vet help` to see all analyzers
#enable:
# - atomicalign
enable-all: true
#disable:
disable:
- fieldalignment
# - shadow
#disable-all: false
depguard:
Expand All @@ -316,6 +318,7 @@ linters-settings:
- github.com/pkg/errors
- github.com/prometheus/client_golang/prometheus/promauto
- github.com/prometheus/common/log
- github.com/golang/protobuf
packages-with-error-message:
# specify an error message to output when a blacklisted package is used
- log: "logging is allowed only by github.com/powerman/structlog"
Expand Down Expand Up @@ -421,6 +424,8 @@ linters-settings:
# Allow calls and assignments to be cuddled as long as the lines have any
# matching variables, fields or types. Default is true.
allow-assign-and-call: true
# Allow assignments to be cuddled with anything. Default is false.
allow-assign-and-anything: false
# Allow multiline assignments to be cuddled. Default is true.
allow-multiline-assign: true
# Allow declarations (var) to be cuddled.
Expand Down Expand Up @@ -451,6 +456,11 @@ linters-settings:
- ginkgo\\.F.* # these are used just for local development
# Exclude godoc examples from forbidigo checks. Default is true.
exclude_godoc_examples: false
importas:
# using `servingv1` alias for `knative.dev/serving/pkg/apis/serving/v1` package
#servingv1: knative.dev/serving/pkg/apis/serving/v1
# using `autoscalingv1alpha1` alias for `knative.dev/serving/pkg/apis/autoscaling/v1alpha1` package
#autoscalingv1alpha1: knative.dev/serving/pkg/apis/autoscaling/v1alpha1

# The custom section can be used to define linter plugins to be loaded at runtime. See README doc
# for more info.
Expand Down Expand Up @@ -504,9 +514,11 @@ issues:
- bodyclose
- dupl
- errcheck
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- goconst
- gocyclo
- gosec
- maligned
Expand Down Expand Up @@ -653,7 +665,6 @@ issues:
- gosimple
- govet
- ineffassign
- interfacer
- lll
- maligned
- misspell
Expand Down
14 changes: 7 additions & 7 deletions api/proto/powerman/example/auth/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/proto/powerman/example/auth/service_int.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 12 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ module github.com/powerman/go-monolith-example
go 1.16

require (
github.com/bufbuild/buf v0.37.0
github.com/bufbuild/buf v0.40.0
github.com/cheekybits/genny v1.0.1-0.20200709201058-3e22f1a88ff2
github.com/elazarl/goproxy v0.0.0-20210110162100-a92cc753f88e // indirect
github.com/go-sql-driver/mysql v1.5.0
github.com/golang/mock v1.5.0
github.com/golang/protobuf v1.4.3
github.com/golangci/golangci-lint v1.37.1
github.com/googleapis/api-linter v1.15.0
github.com/golangci/golangci-lint v1.38.0
github.com/googleapis/api-linter v1.18.0
github.com/grpc-ecosystem/go-grpc-middleware v1.2.2
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.2.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.3.0
github.com/jackc/pgtype v1.6.2
github.com/jmoiron/sqlx v1.3.1
github.com/laher/mergefs v0.1.0
github.com/lib/pq v1.9.0
github.com/lib/pq v1.10.0
github.com/mattn/goveralls v0.0.7
github.com/nats-io/nats-streaming-server v0.20.0 // indirect
github.com/nats-io/nats.go v1.10.0
Expand All @@ -37,20 +36,20 @@ require (
github.com/powerman/sensitive v0.0.5
github.com/powerman/sqlxx v0.2.0
github.com/powerman/structlog v0.7.1
github.com/prometheus/client_golang v1.9.0
github.com/prometheus/client_golang v1.10.0
github.com/rs/cors v1.7.0
github.com/sebest/xff v0.0.0-20210106013422-671bd2870b3a
github.com/smartystreets/goconvey v1.6.4
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93
golang.org/x/crypto v0.0.0-20210317152858-513c2a44f670
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84
golang.org/x/text v0.3.5
golang.org/x/tools v0.1.0
google.golang.org/genproto v0.0.0-20210219173056-d891e3cb3b5b
google.golang.org/grpc v1.35.0
golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a
google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6
google.golang.org/grpc v1.37.0-dev.0.20210309003715-fce74a94bdff
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0
google.golang.org/protobuf v1.25.1-0.20201208041424-160c7477e0e8
google.golang.org/protobuf v1.26.0
gotest.tools/gotestsum v1.6.2
moul.io/http2curl v1.0.0 // indirect
)
Loading

0 comments on commit 918ae31

Please sign in to comment.