diff --git a/lmc/config.py b/lmc/config.py index d79e9fd..241a189 100644 --- a/lmc/config.py +++ b/lmc/config.py @@ -37,7 +37,7 @@ IGNORE_DIRS = { ".git", "node_modules", "vendor", ".venv", "venv", "dist", "build", "__pycache__", ".idea", ".vscode", "target", "bower_components", - "storage", "var", "cache", + "storage", "var", "cache", ".worktrees", ".phpstan", } CONFIG_NAME = "lumos.yml" diff --git a/lmc/joern.py b/lmc/joern.py index e338545..3b5ae6a 100644 --- a/lmc/joern.py +++ b/lmc/joern.py @@ -31,6 +31,8 @@ DEFAULT_EXCLUDES = ( "vendor", "node_modules", ".venv", "venv", "__pycache__", "storage", "public", "dist", "build", "target", ".git", + ".worktrees", # git worktrees: ganze Zweit-Checkouts, sonst kommt jeder Treffer n-fach + ".phpstan", # PHPStan-Cache: resultCache.php wird zweistellig MB gross -> OOM beim Einlesen ) # ponytail: joern-parse kennt kein --exclude, und was nach --frontend-args kommt, diff --git a/lmc/server/graph.py b/lmc/server/graph.py index ad99e29..c89e26d 100644 --- a/lmc/server/graph.py +++ b/lmc/server/graph.py @@ -337,7 +337,7 @@ def _walk(node, src, file, idx, def_stack): _IGNORE = { ".git", "node_modules", "vendor", ".venv", "venv", "dist", "build", "__pycache__", ".idea", ".vscode", "target", "bower_components", - "storage", "var", "cache", "__pycache__", + "storage", "var", "cache", "__pycache__", ".worktrees", ".phpstan", } _LANG_EXTS = {