stacklit
stacklit copied to clipboard
Large file warning threshold
Running stacklit on a project with vendored dependencies or generated code produces a huge output. There should be a warning or auto-skip when a single file exceeds a reasonable size (e.g. 10k lines). Generated files like protobuf outputs or bundled JS should probably be excluded by default.
Related: .stacklitignore or gitignore integration would help here too.
Fixed in #38 and #40. Files over max_file_size (1 MiB by default, set it in .stacklitrc.json or with STACKLIT_MAX_FILE_SIZE) are skipped with a warning on stderr and listed under scan in stacklit.json. #40 adds separate limits for tree-sitter (large, minified and generated files fall back to a line count).