Skip to content

Cleanup and housekeeping: remove unused code and fix linter warnings #3

Cleanup and housekeeping: remove unused code and fix linter warnings

Cleanup and housekeeping: remove unused code and fix linter warnings #3

GitHub Actions / golangci-app failed Oct 18, 2023 in 1s

reviewdog [golangci-app] report

reported by reviewdog 🐶

Findings (55)

app/shutdown/shutdown.go|22 col 2| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|68 col 5| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|133 col 5| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|280 col 21| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|290 col 21| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|300 col 25| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|310 col 24| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|321 col 24| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|331 col 24| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|341 col 24| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|351 col 20| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|362 col 20| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|372 col 21| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|383 col 21| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|393 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|404 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|414 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|425 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|435 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|445 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|451 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|457 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|467 col 21| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|478 col 21| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|488 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|499 col 22| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|509 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|520 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|530 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|541 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|551 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|561 col 23| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|571 col 28| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|577 col 31| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|601 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|603 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|605 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|607 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|609 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|611 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|613 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|615 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|617 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|619 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|621 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|623 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|625 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|627 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|629 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|631 col 6| type assertion must be checked (forcetypeassert)
app/configuration/configuration.go|633 col 6| type assertion must be checked (forcetypeassert)
app/configuration/parser.go|20 col 19| type assertion must be checked (forcetypeassert)
app/logger/logger.go|28 col 3| type assertion must be checked (forcetypeassert)
app/logger/logger.go|31 col 3| type assertion must be checked (forcetypeassert)
app/logger/logger.go|43 col 3| type assertion must be checked (forcetypeassert)

Filtered Findings (0)

Annotations

Check failure on line 22 in app/shutdown/shutdown.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/shutdown/shutdown.go#L22

type assertion must be checked (forcetypeassert)
Raw output
shutdown/shutdown.go:22:2: type assertion must be checked (forcetypeassert)
	handler.(func(reason string, critical bool))(params[0].(string), params[1].(bool))
	^

Check failure on line 68 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L68

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:68:5: type assertion must be checked (forcetypeassert)
				parameter = par.(map[string]interface{})
				^

Check failure on line 133 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L133

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:133:5: type assertion must be checked (forcetypeassert)
				parameter = par.(map[string]interface{})
				^

Check failure on line 280 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L280

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:280:21: type assertion must be checked (forcetypeassert)
			flagset.BoolVarP(valueField.Addr().Interface().(*bool), name, shortHand, defaultValue, usage)
			                 ^

Check failure on line 290 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L290

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:290:21: type assertion must be checked (forcetypeassert)
			flagset.BoolVarP(valueField.Interface().(*bool), name, shortHand, *defaultValue, usage)
			                 ^

Check failure on line 300 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L300

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:300:25: type assertion must be checked (forcetypeassert)
			flagset.DurationVarP(valueField.Addr().Interface().(*time.Duration), name, shortHand, defaultValue, usage)
			                     ^

Check failure on line 310 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L310

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:310:24: type assertion must be checked (forcetypeassert)
			flagset.Float32VarP(valueField.Addr().Interface().(*float32), name, shortHand, defaultValue, usage)
			                    ^

Check failure on line 321 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L321

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:321:24: type assertion must be checked (forcetypeassert)
			flagset.Float32VarP(valueField.Interface().(*float32), name, shortHand, *defaultValue, usage)
			                    ^

Check failure on line 331 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L331

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:331:24: type assertion must be checked (forcetypeassert)
			flagset.Float64VarP(valueField.Addr().Interface().(*float64), name, shortHand, defaultValue, usage)
			                    ^

Check failure on line 341 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L341

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:341:24: type assertion must be checked (forcetypeassert)
			flagset.Float64VarP(valueField.Interface().(*float64), name, shortHand, *defaultValue, usage)
			                    ^

Check failure on line 351 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L351

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:351:20: type assertion must be checked (forcetypeassert)
			flagset.IntVarP(valueField.Addr().Interface().(*int), name, shortHand, defaultValue, usage)
			                ^

Check failure on line 362 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L362

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:362:20: type assertion must be checked (forcetypeassert)
			flagset.IntVarP(valueField.Interface().(*int), name, shortHand, *defaultValue, usage)
			                ^

Check failure on line 372 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L372

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:372:21: type assertion must be checked (forcetypeassert)
			flagset.Int8VarP(valueField.Addr().Interface().(*int8), name, shortHand, defaultValue, usage)
			                 ^

Check failure on line 383 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L383

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:383:21: type assertion must be checked (forcetypeassert)
			flagset.Int8VarP(valueField.Interface().(*int8), name, shortHand, *defaultValue, usage)
			                 ^

Check failure on line 393 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L393

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:393:22: type assertion must be checked (forcetypeassert)
			flagset.Int16VarP(valueField.Addr().Interface().(*int16), name, shortHand, defaultValue, usage)
			                  ^

Check failure on line 404 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L404

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:404:22: type assertion must be checked (forcetypeassert)
			flagset.Int16VarP(valueField.Interface().(*int16), name, shortHand, *defaultValue, usage)
			                  ^

Check failure on line 414 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L414

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:414:22: type assertion must be checked (forcetypeassert)
			flagset.Int32VarP(valueField.Addr().Interface().(*int32), name, shortHand, defaultValue, usage)
			                  ^

Check failure on line 425 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L425

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:425:22: type assertion must be checked (forcetypeassert)
			flagset.Int32VarP(valueField.Interface().(*int32), name, shortHand, *defaultValue, usage)
			                  ^

Check failure on line 435 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L435

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:435:22: type assertion must be checked (forcetypeassert)
			flagset.Int64VarP(valueField.Addr().Interface().(*int64), name, shortHand, defaultValue, usage)
			                  ^

Check failure on line 445 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L445

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:445:22: type assertion must be checked (forcetypeassert)
			flagset.Int64VarP(valueField.Interface().(*int64), name, shortHand, *defaultValue, usage)
			                  ^

Check failure on line 451 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L451

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:451:23: type assertion must be checked (forcetypeassert)
			flagset.StringVarP(valueField.Addr().Interface().(*string), name, shortHand, defaultValue, usage)
			                   ^

Check failure on line 457 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L457

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:457:23: type assertion must be checked (forcetypeassert)
			flagset.StringVarP(valueField.Interface().(*string), name, shortHand, *defaultValue, usage)
			                   ^

Check failure on line 467 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L467

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:467:21: type assertion must be checked (forcetypeassert)
			flagset.UintVarP(valueField.Addr().Interface().(*uint), name, shortHand, defaultValue, usage)
			                 ^

Check failure on line 478 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L478

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:478:21: type assertion must be checked (forcetypeassert)
			flagset.UintVarP(valueField.Interface().(*uint), name, shortHand, *defaultValue, usage)
			                 ^

Check failure on line 488 in app/configuration/configuration.go

See this annotation in the file changed.

@github-actions github-actions / golangci-app

[golangci-app] app/configuration/configuration.go#L488

type assertion must be checked (forcetypeassert)
Raw output
configuration/configuration.go:488:22: type assertion must be checked (forcetypeassert)
			flagset.Uint8VarP(valueField.Addr().Interface().(*uint8), name, shortHand, defaultValue, usage)
			                  ^