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

Method Check

opensca/sca/java/pom.go:288–290  ·  view source on GitHub ↗

Check 检查是否是合法maven依赖

()

Source from the content-addressed store, hash-verified

286
287// Check 检查是否是合法maven依赖
288func (dep PomDependency) Check() bool {
289 return !(dep.ArtifactId == "" || dep.GroupId == "" || dep.Version == "" || strings.Contains(dep.GAV(), "$"))
290}
291
292// ImportPath 引入路径
293func (dep PomDependency) ImportPath() []PomDependency {

Callers 6

FindMaxVersionFunction · 0.80
ParsePackageJsonWithNodeFunction · 0.80
FindMaxVersionFunction · 0.80
ScaMethod · 0.80
parsePomFunction · 0.80
DownloadPomFromRepoFunction · 0.80

Calls 1

GAVMethod · 0.95

Tested by

no test coverage detected