This repository was archived by the owner on Dec 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-10
lines changed
Expand file tree Collapse file tree 5 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 2323 - name : golangci-lint
2424 uses : golangci/golangci-lint-action@v7
2525 with :
26- version : v2.0 .2
26+ version : v2.1 .2
Original file line number Diff line number Diff line change 44 go test -tags mock -race -cover ./...
55
66lint :
7- go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0 .2 run --color always ${args}
7+ go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1 .2 run --color always ${args}
88
99lint-fix :
1010 make lint args=--fix
Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ const (
1616type Config struct {
1717 // Application logging level.
1818 LogLevel string `env:"LOG_LEVEL" envDefault:"info"`
19- // Ignore the service package.
20- Simpler bool `env:"PACKAGE_SIMPLER" envDefault:"true"`
19+ // Deprecated.
2120 // Strict mode for checking the name of services and methods.
22- StrictMethodTitle bool `env:"STRICT_METHOD_TITLE" envDefault:"true "`
21+ StrictMethodTitle bool `env:"STRICT_METHOD_TITLE" envDefault:"false "`
2322
2423 // GRPC server configuration.
2524 GRPCNetwork string `env:"GRPC_NETWORK" envDefault:"tcp"`
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ func TestConfig_Defaults(t *testing.T) {
1414
1515 require .Equal (t , "info" , conf .LogLevel )
1616
17- require .True (t , conf .Simpler )
18- require .True (t , conf .StrictMethodTitle )
17+ require .False (t , conf .StrictMethodTitle )
1918
2019 require .Equal (t , "tcp" , conf .GRPCNetwork )
2120 require .Equal (t , "0.0.0.0" , conf .GRPCHost )
@@ -50,7 +49,6 @@ func TestConfig_Override(t *testing.T) {
5049
5150 require .Equal (t , "trace" , conf .LogLevel )
5251
53- require .False (t , conf .Simpler )
5452 require .False (t , conf .StrictMethodTitle )
5553
5654 require .Equal (t , "udp" , conf .GRPCNetwork )
Original file line number Diff line number Diff line change 1- github.com/caarlos0/env/v10 v10.0.0 h1:yIHUBZGsyqCnpTkbjk8asUlx6RFhhEs+h7TOBdgdzXA =
2- github.com/caarlos0/env/v10 v10.0.0 /go.mod h1:ZfulV76NvVPw3tm591U4SwL3Xx9ldzBP9aGxzeN7G18 =
31github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA =
42github.com/caarlos0/env/v11 v11.3.1 /go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U =
53github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
You can’t perform that action at this time.
0 commit comments