stacklit icon indicating copy to clipboard operation
stacklit copied to clipboard

Large file warning threshold

Open thegdsks opened this issue 7 months ago • 1 comments

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.

thegdsks avatar Apr 16 '26 04:04 thegdsks

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).

thegdsks avatar Nov 08 '26 19:11 thegdsks