mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 23:00:42 -08:00
add yarn.lock parser (fanal#16)
* add yarn.lock parser * skip analyze package files in dependency folder
This commit is contained in:
committed by
Teppei Fukuda
parent
ce1f557cf7
commit
b7debf7f0a
@@ -1,10 +1,16 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
var (
|
||||
NODE_DEP_DIR = "node_modules"
|
||||
PathSeparator = fmt.Sprintf("%c", os.PathSeparator)
|
||||
)
|
||||
|
||||
func CacheDir() string {
|
||||
cacheDir, err := os.UserCacheDir()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user