Skip to content

Commit

Permalink
feat: enable recursive scan for NPM, Yarn, PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed May 7, 2024
1 parent bacc48b commit c1d2d7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/npm/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
type Inspector struct{}

func (i *Inspector) SupportFeature(feature model.InspectorFeature) bool {
return false
return model.InspectorFeatureAllowNested&feature > 0
}

func (i *Inspector) String() string {
Expand Down
2 changes: 1 addition & 1 deletion module/pnpm/pnpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (Inspector) InspectProject(ctx context.Context) error {
}

func (Inspector) SupportFeature(feature model.InspectorFeature) bool {
return false
return model.InspectorFeatureAllowNested&feature > 0
}

var _ model.Inspector = (*Inspector)(nil)
2 changes: 1 addition & 1 deletion module/yarn/yarnlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
type Inspector struct{}

func (i *Inspector) SupportFeature(feature model.InspectorFeature) bool {
return false
return model.InspectorFeatureAllowNested&feature > 0
}

func (i *Inspector) String() string {
Expand Down

0 comments on commit c1d2d7b

Please sign in to comment.