command/init.go
Function cmdInit
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func cmdInit(m *Metadata) (err error) {
if m.Config == nil {
m.Config = new(config.Config)
}
Function cmdInit
has 7 return statements (exceeds 4 allowed). Open
Open
func cmdInit(m *Metadata) (err error) {
if m.Config == nil {
m.Config = new(config.Config)
}
error strings should not be capitalized or end with punctuation or a newline Open
Open
return fmt.Errorf("Input value is empty.")
- Exclude checks