From 91e5788860167df712ca23e1def1bded0592a3e5 Mon Sep 17 00:00:00 2001 From: nanayama moyoka Date: Tue, 12 Sep 2023 14:17:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(maven):=20=E6=8A=8A=E5=AF=B9scope=E7=9A=84?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/maven/plugin_graph_output.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/module/maven/plugin_graph_output.go b/module/maven/plugin_graph_output.go index 77583af8..310edb9b 100644 --- a/module/maven/plugin_graph_output.go +++ b/module/maven/plugin_graph_output.go @@ -2,7 +2,6 @@ package maven import ( "encoding/json" - "github.com/murphysecurity/murphysec/utils" "os" ) @@ -58,9 +57,6 @@ func (d PluginGraphOutput) _tree(id int, visitedId []bool, edges map[int][]int) visitedId[id] = true defer func() { visitedId[id] = false }() - if !utils.InStringSlice(d.Artifacts[id].Scopes, "compile") && !utils.InStringSlice(d.Artifacts[id].Scopes, "runtime") { - return nil - } r := &Dependency{ Coordinate: Coordinate{ GroupId: d.Artifacts[id].GroupId,