minikube/generator/schema_builder.go
Function constructSchema
has 96 lines of code (exceeds 50 allowed). Consider refactoring. Wontfix
Wontfix
func constructSchema(entries []SchemaEntry) string {
header := `//go:generate go run ../generate/main.go -target $GOFILE
// THIS FILE IS GENERATED DO NOT EDIT
package minikube
Function addEntry
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func addEntry(entries []SchemaEntry, currentEntry SchemaEntry) ([]SchemaEntry, error) {
switch currentEntry.Type {
case String:
entries = append(entries, SchemaEntry{
Parameter: currentEntry.Parameter,
Avoid deeply nested control flow statements. Invalid
Invalid
if ok {
currentEntry.Description = val.Description
}
Avoid deeply nested control flow statements. Invalid
Invalid
if err != nil {
return "", err
}