fix(i18n): 对齐 locale key schema 并补充 gosec 注释 #104
|
|
@ -44,6 +44,7 @@ func main() {
|
|||
}
|
||||
|
||||
func checkLocaleFormat(fix bool) error {
|
||||
// #nosec G703 -- pattern is repo-local and not user-controlled.
|
||||
files, err := filepath.Glob(filepath.Join("internal", "i18n", "locales", "*.json"))
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@
|
|||
"minLength": 1
|
||||
},
|
||||
"propertyNames": {
|
||||
"pattern": "^(cmd|flag|error|output|prompt|success|warning|table)\\.[a-z0-9_.-]+$"
|
||||
"pattern": "^(cmd|flag|error|prompt|success|warning|confirm|table|output)\\.[a-z0-9_.-]+$"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue