add yarn.lock parser (fanal#16)

* add yarn.lock parser

* skip analyze package files in dependency folder
This commit is contained in:
Tomoya Amachi
2019-05-16 09:29:14 +09:00
committed by Teppei Fukuda
parent ce1f557cf7
commit b7debf7f0a
6 changed files with 70 additions and 5 deletions

View File

@@ -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 {