add user and password to uri if the uri does not contain user password #14
Annotations
6 errors
Lint Check:
main_test.go#L41
[golangci-lint] reported by reviewdog 🐶
Function 'TestBuildURI' has too many statements (74 > 40) (funlen)
Raw Output:
main_test.go:41: Function 'TestBuildURI' has too many statements (74 > 40) (funlen)
func TestBuildURI(t *testing.T) {
|
Lint Check:
main_test.go#L52
[golangci-lint] reported by reviewdog 🐶
var-naming: var newUri should be newURI (revive)
Raw Output:
main_test.go:52:6: var-naming: var newUri should be newURI (revive)
var newUri string
^
|
Lint Check:
main_test.go#L53
[golangci-lint] reported by reviewdog 🐶
var-naming: var resetNewUri should be resetNewURI (revive)
Raw Output:
main_test.go:53:2: var-naming: var resetNewUri should be resetNewURI (revive)
resetNewUri := func() {
^
|
Lint Check:
main.go#L37
[golangci-lint] reported by reviewdog 🐶
tag is not aligned, should be: env:"MONGODB_USER" help:"monitor user, need clusterMonitor role in admin db and read role in local db" name:"mongodb.user" placeholder:"monitorUser" (tagalign)
Raw Output:
main.go:37:31: tag is not aligned, should be: env:"MONGODB_USER" help:"monitor user, need clusterMonitor role in admin db and read role in local db" name:"mongodb.user" placeholder:"monitorUser" (tagalign)
User string `name:"mongodb.user" help:"monitor user, need clusterMonitor role in admin db and read role in local db" env:"MONGODB_USER" placeholder:"monitorUser"`
^
|
Lint Check:
main.go#L38
[golangci-lint] reported by reviewdog 🐶
tag is not aligned, should be: env:"MONGODB_PASSWORD" help:"monitor user password" name:"mongodb.password" placeholder:"monitorPassword" (tagalign)
Raw Output:
main.go:38:31: tag is not aligned, should be: env:"MONGODB_PASSWORD" help:"monitor user password" name:"mongodb.password" placeholder:"monitorPassword" (tagalign)
Password string `name:"mongodb.password" help:"monitor user password" env:"MONGODB_PASSWORD" placeholder:"monitorPassword"`
^
|
Lint Check:
main.go#L107
[golangci-lint] reported by reviewdog 🐶
return with no blank line before (nlreturn)
Raw Output:
main.go:107:2: return with no blank line before (nlreturn)
return uri
^
|