Skip to content

Implemented the --show-all and --export-files options for the aditi check command#27

Merged
rolfedh merged 1 commit intomainfrom
make-more-visible
Aug 29, 2025
Merged

Implemented the --show-all and --export-files options for the aditi check command#27
rolfedh merged 1 commit intomainfrom
make-more-visible

Conversation

@rolfedh
Copy link
Owner

@rolfedh rolfedh commented Aug 29, 2025

Features Added:

  1. --show-all flag: Displays all affected files without truncation (defaults to showing 10 files then "... and X more")
  2. --export-files option: Exports the complete list of affected files to a specified file, organized by rule

Implementation Details:

  • Added options to both the CLI interface and check command
  • Created _display_file_list() helper method in processor for consistent file list display
  • Updated display_summary() to support new options
  • Export format includes metadata (timestamp, total files, total issues) and groups files by rule name
  • Journey command now uses the same file display helper for consistency

Testing Verified:

  • Normal truncated output (default behavior preserved)
  • --show-all displays all files inline
  • --export-files creates a well-formatted text file
  • Both options work together
  • Export file is sorted and organized by rule name

The implementation provides users flexibility to see complete file lists when needed, while maintaining clean terminal output by default.

@rolfedh rolfedh merged commit b3f147e into main Aug 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant