diff --git a/detect/detect_test.go b/detect/detect_test.go index 7769f29..7f8c336 100644 --- a/detect/detect_test.go +++ b/detect/detect_test.go @@ -258,7 +258,7 @@ func TestResourceGroups(t *testing.T) { touch("README.md") touch("CHANGELOG.md") touch("AGENTS.md") - touch("NOTICE") + touch("NOTICES.md") touch("CONTRIBUTING.md") touch(".github/CODE_OF_CONDUCT.md") touch(".github/CODEOWNERS") @@ -283,7 +283,7 @@ func TestResourceGroups(t *testing.T) { if res.Agents["agents"] != "AGENTS.md" { t.Errorf("agents.agents = %q", res.Agents["agents"]) } - if res.Legal["notice"] != "NOTICE" { + if res.Legal["notice"] != "NOTICES.md" { t.Errorf("legal.notice = %q", res.Legal["notice"]) } if res.Community["contributing"] != "CONTRIBUTING.md" { diff --git a/knowledge/_shared/_resources.toml b/knowledge/_shared/_resources.toml index 6925744..ec433bf 100644 --- a/knowledge/_shared/_resources.toml +++ b/knowledge/_shared/_resources.toml @@ -43,7 +43,7 @@ patterns = ["copyright", "copyright.md", "copyright.txt"] name = "Notice" field = "notice" group = "legal" -patterns = ["notice", "notice.md", "notice.txt"] +patterns = ["notice", "notice.md", "notice.txt", "notices", "notices.md", "notices.txt"] dirs = ["docs", ".github", ".gitlab"] [[resources]]