Added the SWI Prolog (swipl) ecosystem (#3076)

* Add binary classifier for swipl

Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>

* Added cataloger for SWI Prolog Pack packages

Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>

---------

Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
This commit is contained in:
Laurent Goderre
2024-07-31 16:13:26 -04:00
committed by GitHub
parent a4b5dcd0df
commit 92d63df6f5
32 changed files with 2992 additions and 8 deletions
+4
View File
@@ -28,6 +28,7 @@ const (
Ruby Language = "ruby"
Rust Language = "rust"
Swift Language = "swift"
Swipl Language = "swipl"
)
// AllLanguages is a set of all programming languages detected by syft.
@@ -48,6 +49,7 @@ var AllLanguages = []Language{
Ruby,
Rust,
Swift,
Swipl,
}
// String returns the string representation of the language.
@@ -88,6 +90,8 @@ func LanguageByName(name string) Language {
return Dotnet
case packageurl.TypeCocoapods, packageurl.TypeSwift, string(CocoapodsPkg):
return Swift
case "swipl", string(SwiplPackPkg):
return Swipl
case packageurl.TypeConan, string(CPP):
return CPP
case packageurl.TypeHackage, string(Haskell):