MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / AppendLicense

Method AppendLicense

opensca/model/dep.go:78–90  ·  view source on GitHub ↗
(lic string)

Source from the content-addressed store, hash-verified

76}
77
78func (dep *DepGraph) AppendLicense(lic string) {
79 if dep.licenseMap == nil {
80 dep.licenseMap = map[string]bool{}
81 }
82 if lic == "" {
83 return
84 }
85 if dep.licenseMap[lic] {
86 return
87 }
88 dep.licenseMap[lic] = true
89 dep.Licenses = append(dep.Licenses, lic)
90}
91
92func (dep *DepGraph) Index() string {
93 if dep.Vendor == "" {

Callers 3

parsePomFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected