mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-12-05 04:47:43 +08:00
storage/framework/views/ holds Laravel's compiled Blade templates: generated PHP with no source value. It was excluded only through Laravel's stock .gitignore in that folder; when that file is missing, every compiled view was indexed and reported as parse_partial by the php grammar, burying real coverage gaps under generated noise. Every built-in skip rule matched a directory BASENAME, and "views" is far too common to skip everywhere. Add ALWAYS_SKIP_DIR_SUFFIXES, a built-in rule list matched against the relative path suffix on a '/'-component boundary, so storage/framework/views (at any depth, e.g. backend/storage/framework/views) is skipped while resources/views, app/views, app/framework/views, mystorage/framework/views and storage/framework/views_old stay indexed. The rule is applied in should_skip_directory next to the basename skip list, so it shares its semantics: the subtree is reported as an excluded dir (#411) in the index result and as not_indexed_dir "excluded subtree" in check_index_coverage, and a .cbmignore negation (!storage/framework/views/) can un-skip it like any non-safety-core built-in skip (#500). Test: discover::discover_skips_laravel_compiled_views_issue1735 (RED before, green after, RED on revert) and discover::discover_cbmignore_negates_laravel_compiled_views_issue1735. Docs: docs/cbmignore.md precedence layer 1. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>