Preparing report...

Report for gitoa.ru/go-4devs/config

A+    Excellent!    Found 31 issues across 43 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint27%

Golint is a linter for Go source code.

    • /gitoa.ru/go-4devs/config/provider/toml/value.go
    • Line 11: warning: exported type Value should have comment or be unexported (golint)
    • Line 15: warning: exported method Value.Int should have comment or be unexported (golint)
    • Line 21: warning: exported method Value.ParseInt should have comment or be unexported (golint)
    • Line 30: warning: exported method Value.Unmarshal should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/client.go
    • Line 9: warning: exported function New should have comment or be unexported (golint)
    • Line 17: warning: exported type Client should have comment or be unexported (golint)
    • Line 31: warning: exported method Client.Value should have comment or be unexported (golint)
    • Line 40: warning: exported method Client.Variable should have comment or be unexported (golint)
    • Line 62: warning: exported function NewWatch should have comment or be unexported (golint)
    • Line 76: warning: exported type WatchClient should have comment or be unexported (golint)
    • Line 81: warning: exported method WatchClient.Watch should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider.go
    • Line 5: warning: exported type Provider should have comment or be unexported (golint)
    • Line 10: warning: exported type WatchCallback should have comment or be unexported (golint)
    • Line 12: warning: exported type WatchProvider should have comment or be unexported (golint)
    • Line 17: warning: exported type NamedProvider should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/value/jstring.go
    • Line 11: warning: exported type JString should have comment or be unexported (golint)
    • Line 13: warning: exported method JString.Unmarshal should have comment or be unexported (golint)
    • Line 17: warning: exported method JString.ParseString should have comment or be unexported (golint)
    • Line 21: warning: exported method JString.ParseInt should have comment or be unexported (golint)
    • Line 25: warning: exported method JString.ParseInt64 should have comment or be unexported (golint)
    • Line 29: warning: exported method JString.ParseUint should have comment or be unexported (golint)
    • Line 38: warning: exported method JString.ParseUint64 should have comment or be unexported (golint)
    • Line 42: warning: exported method JString.ParseFloat64 should have comment or be unexported (golint)
    • Line 46: warning: exported method JString.ParseBool should have comment or be unexported (golint)
    • Line 50: warning: exported method JString.ParseDuration should have comment or be unexported (golint)
    • Line 54: warning: exported method JString.ParseTime should have comment or be unexported (golint)
    • Line 58: warning: exported method JString.Bytes should have comment or be unexported (golint)
    • Line 66: warning: exported method JString.Int should have comment or be unexported (golint)
    • Line 72: warning: exported method JString.Int64 should have comment or be unexported (golint)
    • Line 78: warning: exported method JString.Uint should have comment or be unexported (golint)
    • Line 84: warning: exported method JString.Uint64 should have comment or be unexported (golint)
    • Line 90: warning: exported method JString.Float64 should have comment or be unexported (golint)
    • Line 96: warning: exported method JString.Bool should have comment or be unexported (golint)
    • Line 102: warning: exported method JString.Duration should have comment or be unexported (golint)
    • Line 108: warning: exported method JString.Time should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/arg/provider.go
    • Line 17: warning: exported type Option should have comment or be unexported (golint)
    • Line 19: warning: exported function WithKeyFactory should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported type Provider should have comment or be unexported (golint)
    • Line 98: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 102: warning: exported method Provider.IsSupport should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/yaml/file.go
    • Line 12: warning: exported function WithFileKeyFactory should have comment or be unexported (golint)
    • Line 18: warning: exported type FileOption should have comment or be unexported (golint)
    • Line 20: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 33: warning: exported type File should have comment or be unexported (golint)
    • Line 38: warning: exported method File.Name should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/vault/secret.go
    • Line 16: warning: exported type SecretOption should have comment or be unexported (golint)
    • Line 18: warning: exported function WithSecretResolve should have comment or be unexported (golint)
    • Line 22: warning: exported function NewSecretKV2 should have comment or be unexported (golint)
    • Line 35: warning: exported type SecretKV2 should have comment or be unexported (golint)
    • Line 40: warning: exported method SecretKV2.IsSupport should have comment or be unexported (golint)
    • Line 46: warning: exported method SecretKV2.Name should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/env/provider.go
    • Line 15: warning: exported type Option should have comment or be unexported (golint)
    • Line 17: warning: exported function WithKeyFactory should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported type Provider should have comment or be unexported (golint)
    • Line 39: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 43: warning: exported method Provider.IsSupport should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/value/helpers.go
    • Line 12: warning: exported function ParseDuration should have comment or be unexported (golint)
    • Line 21: warning: exported function ParseInt should have comment or be unexported (golint)
    • Line 30: warning: exported function ParseUint should have comment or be unexported (golint)
    • Line 39: warning: exported function Atoi should have comment or be unexported (golint)
    • Line 48: warning: exported function ParseTime should have comment or be unexported (golint)
    • Line 57: warning: exported function ParseFloat should have comment or be unexported (golint)
    • Line 66: warning: exported function ParseBool should have comment or be unexported (golint)
    • Line 75: warning: exported function JUnmarshal should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/value/value.go
    • Line 13: warning: exported type Value should have comment or be unexported (golint)
    • Line 17: warning: exported method Value.Int should have comment or be unexported (golint)
    • Line 23: warning: exported method Value.Int64 should have comment or be unexported (golint)
    • Line 29: warning: exported method Value.Uint should have comment or be unexported (golint)
    • Line 35: warning: exported method Value.Uint64 should have comment or be unexported (golint)
    • Line 41: warning: exported method Value.Float64 should have comment or be unexported (golint)
    • Line 53: warning: exported method Value.Bool should have comment or be unexported (golint)
    • Line 59: warning: exported method Value.Duration should have comment or be unexported (golint)
    • Line 65: warning: exported method Value.Raw should have comment or be unexported (golint)
    • Line 69: warning: exported method Value.Time should have comment or be unexported (golint)
    • Line 75: warning: exported method Value.Unmarshal should have comment or be unexported (golint)
    • Line 88: warning: exported method Value.ParseInt should have comment or be unexported (golint)
    • Line 96: warning: exported method Value.ParseInt64 should have comment or be unexported (golint)
    • Line 104: warning: exported method Value.ParseUint should have comment or be unexported (golint)
    • Line 112: warning: exported method Value.ParseUint64 should have comment or be unexported (golint)
    • Line 120: warning: exported method Value.ParseFloat64 should have comment or be unexported (golint)
    • Line 128: warning: exported method Value.ParseString should have comment or be unexported (golint)
    • Line 136: warning: exported method Value.ParseBool should have comment or be unexported (golint)
    • Line 144: warning: exported method Value.ParseDuration should have comment or be unexported (golint)
    • Line 152: warning: exported method Value.ParseTime should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/yaml/provider.go
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 38: warning: exported type Option should have comment or be unexported (golint)
    • Line 40: warning: exported type Provider should have comment or be unexported (golint)
    • Line 45: warning: exported method Provider.Name should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/watcher/provider.go
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported function WithLogger should have comment or be unexported (golint)
    • Line 39: warning: exported type Option should have comment or be unexported (golint)
    • Line 41: warning: exported type Provider should have comment or be unexported (golint)
    • Line 47: warning: exported method Provider.Watch should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/value/jbytes.go
    • Line 11: warning: exported type JBytes should have comment or be unexported (golint)
    • Line 13: warning: exported method JBytes.Unmarshal should have comment or be unexported (golint)
    • Line 17: warning: exported method JBytes.ParseString should have comment or be unexported (golint)
    • Line 21: warning: exported method JBytes.ParseInt should have comment or be unexported (golint)
    • Line 25: warning: exported method JBytes.ParseInt64 should have comment or be unexported (golint)
    • Line 29: warning: exported method JBytes.ParseUint should have comment or be unexported (golint)
    • Line 38: warning: exported method JBytes.ParseUint64 should have comment or be unexported (golint)
    • Line 42: warning: exported method JBytes.ParseFloat64 should have comment or be unexported (golint)
    • Line 46: warning: exported method JBytes.ParseBool should have comment or be unexported (golint)
    • Line 50: warning: exported method JBytes.ParseDuration should have comment or be unexported (golint)
    • Line 54: warning: exported method JBytes.ParseTime should have comment or be unexported (golint)
    • Line 58: warning: exported method JBytes.Bytes should have comment or be unexported (golint)
    • Line 66: warning: exported method JBytes.Int should have comment or be unexported (golint)
    • Line 72: warning: exported method JBytes.Int64 should have comment or be unexported (golint)
    • Line 78: warning: exported method JBytes.Uint should have comment or be unexported (golint)
    • Line 84: warning: exported method JBytes.Uint64 should have comment or be unexported (golint)
    • Line 90: warning: exported method JBytes.Float64 should have comment or be unexported (golint)
    • Line 96: warning: exported method JBytes.Bool should have comment or be unexported (golint)
    • Line 102: warning: exported method JBytes.Duration should have comment or be unexported (golint)
    • Line 108: warning: exported method JBytes.Time should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/test/provider_suite.go
    • Line 16: warning: exported const DSN should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function Run should have comment or be unexported (golint)
    • Line 31: warning: exported type ProviderSuite should have comment or be unexported (golint)
    • Line 37: warning: exported type Read should have comment or be unexported (golint)
    • Line 42: warning: exported const ConfigJSON should have comment or be unexported (golint)
    • Line 44: warning: exported type Config should have comment or be unexported (golint)
    • Line 49: warning: exported function NewReadConfig should have comment or be unexported (golint)
    • Line 58: warning: exported function NewReadUnmarshal should have comment or be unexported (golint)
    • Line 73: warning: exported function Time should have comment or be unexported (golint)
    • Line 79: warning: comment on exported function NewRead should be of the form "NewRead ..." (golint)
    • Line 133: warning: exported method ProviderSuite.TestReadKeys should have comment or be unexported (golint)
    • Line 143: warning: exported function LoadConfig should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/value.go
    • Line 7: warning: exported type Value should have comment or be unexported (golint)
    • Line 13: warning: exported type UnmarshalValue should have comment or be unexported (golint)
    • Line 17: warning: exported type ReadValue should have comment or be unexported (golint)
    • Line 29: warning: exported type ParseValue should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/json/provider.go
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 30: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 39: warning: exported type Option should have comment or be unexported (golint)
    • Line 41: warning: exported type Provider should have comment or be unexported (golint)
    • Line 46: warning: exported method Provider.IsSupport should have comment or be unexported (golint)
    • Line 50: warning: exported method Provider.Name should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/ini/provider.go
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 29: warning: exported type Provider should have comment or be unexported (golint)
    • Line 34: warning: exported method Provider.IsSupport should have comment or be unexported (golint)
    • Line 40: warning: exported method Provider.Name should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/toml/provider.go
    • Line 15: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 24: warning: exported type Option should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 48: warning: exported type Provider should have comment or be unexported (golint)
    • Line 53: warning: exported method Provider.IsSupport should have comment or be unexported (golint)
    • Line 57: warning: exported method Provider.Name should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/key/key.go
    • Line 10: warning: exported function NsAppName should have comment or be unexported (golint)
    • Line 16: warning: exported function AppName should have comment or be unexported (golint)
    • Line 22: warning: exported function PrefixName should have comment or be unexported (golint)
    • Line 28: warning: exported function Name should have comment or be unexported (golint)
    • Line 32: warning: exported function AliasName should have comment or be unexported (golint)
    • Line 42: warning: exported function ReplaceAll should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/provider/etcd/provider.go
    • Line 19: warning: exported type Client should have comment or be unexported (golint)
    • Line 24: warning: exported function NewProvider should have comment or be unexported (golint)
    • Line 33: warning: exported type Provider should have comment or be unexported (golint)
    • Line 38: warning: exported method Provider.IsSupport should have comment or be unexported (golint)
    • Line 42: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 62: warning: exported method Provider.Watch should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/value/decode.go
    • Line 11: warning: exported type Decode should have comment or be unexported (golint)
    • Line 13: warning: exported method Decode.Unmarshal should have comment or be unexported (golint)
    • Line 17: warning: exported method Decode.ParseInt should have comment or be unexported (golint)
    • Line 21: warning: exported method Decode.ParseInt64 should have comment or be unexported (golint)
    • Line 25: warning: exported method Decode.ParseUint should have comment or be unexported (golint)
    • Line 29: warning: exported method Decode.ParseUint64 should have comment or be unexported (golint)
    • Line 33: warning: exported method Decode.ParseFloat64 should have comment or be unexported (golint)
    • Line 37: warning: exported method Decode.ParseString should have comment or be unexported (golint)
    • Line 41: warning: exported method Decode.ParseDuration should have comment or be unexported (golint)
    • Line 45: warning: exported method Decode.ParseTime should have comment or be unexported (golint)
    • Line 49: warning: exported method Decode.Int should have comment or be unexported (golint)
    • Line 55: warning: exported method Decode.Int64 should have comment or be unexported (golint)
    • Line 61: warning: exported method Decode.Uint should have comment or be unexported (golint)
    • Line 67: warning: exported method Decode.Uint64 should have comment or be unexported (golint)
    • Line 73: warning: exported method Decode.Float64 should have comment or be unexported (golint)
    • Line 79: warning: exported method Decode.Bytes should have comment or be unexported (golint)
    • Line 89: warning: exported method Decode.Bool should have comment or be unexported (golint)
    • Line 95: warning: exported method Decode.ParseBool should have comment or be unexported (golint)
    • Line 99: warning: exported method Decode.Duration should have comment or be unexported (golint)
    • Line 105: warning: exported method Decode.Time should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/config/value/empty.go
    • Line 7: warning: exported type Empty should have comment or be unexported (golint)
    • Line 11: warning: exported method Empty.Unmarshal should have comment or be unexported (golint)
    • Line 15: warning: exported method Empty.ParseString should have comment or be unexported (golint)
    • Line 19: warning: exported method Empty.ParseInt should have comment or be unexported (golint)
    • Line 23: warning: exported method Empty.ParseInt64 should have comment or be unexported (golint)
    • Line 27: warning: exported method Empty.ParseUint should have comment or be unexported (golint)
    • Line 31: warning: exported method Empty.ParseUint64 should have comment or be unexported (golint)
    • Line 35: warning: exported method Empty.ParseFloat64 should have comment or be unexported (golint)
    • Line 39: warning: exported method Empty.ParseBool should have comment or be unexported (golint)
    • Line 43: warning: exported method Empty.ParseDuration should have comment or be unexported (golint)
    • Line 47: warning: exported method Empty.ParseTime should have comment or be unexported (golint)
    • Line 55: warning: exported method Empty.Int should have comment or be unexported (golint)
    • Line 59: warning: exported method Empty.Int64 should have comment or be unexported (golint)
    • Line 63: warning: exported method Empty.Uint should have comment or be unexported (golint)
    • Line 67: warning: exported method Empty.Uint64 should have comment or be unexported (golint)
    • Line 71: warning: exported method Empty.Float64 should have comment or be unexported (golint)
    • Line 75: warning: exported method Empty.Bool should have comment or be unexported (golint)
    • Line 79: warning: exported method Empty.Duration should have comment or be unexported (golint)
    • Line 83: warning: exported method Empty.Time should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!