Merge pull request 'fix(i18n): 对齐 locale key schema 并补充 gosec 注释' (#104) from muel/gitlink-cli:fix/i18n-schema-gosec into master

This commit is contained in:
wbtiger 2026-06-08 02:19:19 +08:00
commit 9c085fb246
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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_.-]+$"
}
}