Skip to content

Commit a70bb13

Browse files
committed
feat(structfield): add support for additional initialisms in linter
1 parent a84603b commit a70bb13

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/structfield/structfield.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ func tagNameToPascal(tagName string) (want, alternate string) {
410410

411411
// Common Go initialisms that should be all caps.
412412
var initialisms = map[string]bool{
413-
"API": true, "ASCII": true,
413+
"API": true, "ASCII": true, "AWS": true,
414414
"CAA": true, "CAS": true, "CNAME": true, "CPU": true,
415415
"CSS": true, "CWE": true, "CVE": true, "CVSS": true,
416416
"DN": true, "DNS": true,
@@ -419,6 +419,7 @@ var initialisms = map[string]bool{
419419
"HTML": true, "HTTP": true, "HTTPS": true,
420420
"ID": true, "IDE": true, "IDP": true, "IP": true, "JIT": true,
421421
"JSON": true,
422+
"OIDC": true,
422423
"LDAP": true, "LFS": true, "LHS": true,
423424
"MD5": true, "MS": true, "MX": true,
424425
"NPM": true, "NTP": true, "NVD": true,
@@ -440,6 +441,7 @@ var initialisms = map[string]bool{
440441
var specialCases = map[string]string{
441442
"CPUS": "CPUs",
442443
"CWES": "CWEs",
444+
"JFROG": "JFrog",
443445
"GRAPHQL": "GraphQL",
444446
"HREF": "HRef",
445447
"IDS": "IDs",

0 commit comments

Comments
 (0)