Skip to content

Commit

Permalink
feat(maven): 把对scope的过滤去掉
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki-working committed Sep 12, 2023
1 parent 2cc156f commit 91e5788
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions module/maven/plugin_graph_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package maven

import (
"encoding/json"
"github.com/murphysecurity/murphysec/utils"
"os"
)

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 91e5788

Please sign in to comment.