Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Commit 69f8c46

Browse files
authored
Merge pull request #14 from gripmock/StrictMethodTitle-deprecated
STRICT_METHOD_TITLE=false
2 parents 40880cc + ef043a3 commit 69f8c46

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- name: golangci-lint
2424
uses: golangci/golangci-lint-action@v7
2525
with:
26-
version: v2.0.2
26+
version: v2.1.2

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test:
44
go test -tags mock -race -cover ./...
55

66
lint:
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

99
lint-fix:
1010
make lint args=--fix

env.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ const (
1616
type 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"`

env_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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)

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
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=
31
github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA=
42
github.com/caarlos0/env/v11 v11.3.1/go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U=
53
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=

0 commit comments

Comments
 (0)