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

Method Update

opensca/sca/java/pom.go:227–237  ·  view source on GitHub ↗

Update 使用pom信息更新当前依赖中使用的属性

(dep *PomDependency)

Source from the content-addressed store, hash-verified

225
226// Update 使用pom信息更新当前依赖中使用的属性
227func (p *Pom) Update(dep *PomDependency) {
228 var ref *Property
229 dep.GroupId, ref = p.update(dep.GroupId)
230 if ref != nil {
231 dep.RefProperty = ref
232 }
233 dep.Version, ref = p.update(dep.Version)
234 if ref != nil {
235 dep.RefProperty = ref
236 }
237}
238
239var propertyReg = regexp.MustCompile(`\$\{[^{}]*\}`)
240

Callers 4

ScaMethod · 0.45
ParsePomsFunction · 0.45
inheritPomFunction · 0.45
parsePomFunction · 0.45

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected