Skip to content

Commit 4f90632

Browse files
committed
fix: formatter settings
1 parent f61f198 commit 4f90632

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/website/expand_templates/linters.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ func hasSettings(name string) bool {
152152
}
153153
}
154154

155+
tp = reflect.TypeOf(config.FormatterSettings{})
156+
157+
for i := range tp.NumField() {
158+
if strings.EqualFold(name, tp.Field(i).Name) {
159+
return true
160+
}
161+
}
162+
155163
return false
156164
}
157165

0 commit comments

Comments
 (0)