Skip to content

Commit 86d89ef

Browse files
committed
chore:fmt
1 parent 8013531 commit 86d89ef

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

main.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -350,26 +350,26 @@ func normalizeLicense(license string) string {
350350

351351
// Check for known SPDX patterns (case-insensitive)
352352
replacements := map[string]string{
353-
"gpl-2": "GPL-2.0-only",
354-
"gpl-2+": "GPL-2.0-or-later",
355-
"gpl-3": "GPL-3.0-only",
356-
"gpl-3+": "GPL-3.0-or-later",
357-
"lgpl-2": "LGPL-2.0-only",
358-
"lgpl-2+": "LGPL-2.0-or-later",
359-
"lgpl-2.1": "LGPL-2.1-only",
360-
"lgpl-2.1+": "LGPL-2.1-or-later",
361-
"lgpl-3": "LGPL-3.0-only",
362-
"lgpl-3+": "LGPL-3.0-or-later",
363-
"apache-2": "Apache-2.0",
364-
"bsd": "BSD-3-Clause",
365-
"mit/x11": "MIT",
366-
"expat": "MIT", // Expat is the MIT license
367-
"mit-1": "MIT",
368-
"mit-style": "MIT",
369-
"psf": "Python-2.0",
353+
"gpl-2": "GPL-2.0-only",
354+
"gpl-2+": "GPL-2.0-or-later",
355+
"gpl-3": "GPL-3.0-only",
356+
"gpl-3+": "GPL-3.0-or-later",
357+
"lgpl-2": "LGPL-2.0-only",
358+
"lgpl-2+": "LGPL-2.0-or-later",
359+
"lgpl-2.1": "LGPL-2.1-only",
360+
"lgpl-2.1+": "LGPL-2.1-or-later",
361+
"lgpl-3": "LGPL-3.0-only",
362+
"lgpl-3+": "LGPL-3.0-or-later",
363+
"apache-2": "Apache-2.0",
364+
"bsd": "BSD-3-Clause",
365+
"mit/x11": "MIT",
366+
"expat": "MIT", // Expat is the MIT license
367+
"mit-1": "MIT",
368+
"mit-style": "MIT",
369+
"psf": "Python-2.0",
370370
"public-domain": "NOASSERTION", // Not a license
371-
"openldap-2.8": "NOASSERTION", // Not in SPDX list
372-
"hylafax": "NOASSERTION", // Not in SPDX list
371+
"openldap-2.8": "NOASSERTION", // Not in SPDX list
372+
"hylafax": "NOASSERTION", // Not in SPDX list
373373
}
374374

375375
// Check for exact match first (case-insensitive)
@@ -403,10 +403,10 @@ func normalizeLicense(license string) string {
403403
"build-aux",
404404
"Portions",
405405
"free software",
406-
"<", // Email addresses
407-
">", // Email addresses
408-
"'", // Apostrophes
409-
",", // Commas in descriptions
406+
"<", // Email addresses
407+
">", // Email addresses
408+
"'", // Apostrophes
409+
",", // Commas in descriptions
410410
}
411411

412412
for _, pattern := range invalidPatterns {

0 commit comments

Comments
 (0)