find_large_files
Flag source files over a configurable line threshold to identify candidates for refactoring or splitting.
Instructions
Flag source files that are unusually large — often a signal they're due for a refactor or split.
Args: path: Filesystem path to the repo root. threshold_lines: Minimum line count to be flagged (default 300). top_n: Max number of files to return, largest first (default 10).
Returns: List of {file, lines} dicts, sorted largest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| top_n | No | ||
| threshold_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |