Cleanup File
cc_cleanup_fileClean source code files by removing BOM, NUL bytes, and trailing whitespace, and normalizing line endings to LF or CRLF. Preview changes with dry-run option.
Instructions
Cleans up source code files: BOM, NUL bytes, trailing whitespace, line endings.
Args:
path (string): Path to the file
remove_bom (boolean): Remove BOM
remove_trailing_whitespace (boolean): Trailing whitespace
normalize_line_endings (string): "lf" | "crlf"
remove_nul_bytes (boolean): Remove NUL bytes
dry_run (boolean): Preview only
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| remove_bom | No | Remove BOM | |
| remove_trailing_whitespace | No | Trailing whitespace | |
| normalize_line_endings | No | Line endings | |
| remove_nul_bytes | No | NUL bytes | |
| dry_run | No | Preview only |