Skip to content

refactor: split batch_processor_impl.py — extract filter logic#19

Merged
tom-sapletta-com merged 1 commit intomainfrom
redsl/split-batch-processor
Apr 12, 2026
Merged

refactor: split batch_processor_impl.py — extract filter logic#19
tom-sapletta-com merged 1 commit intomainfrom
redsl/split-batch-processor

Conversation

@tom-sapletta-com
Copy link
Copy Markdown
Contributor

ReDSL Auto-Refactoring

Action: split_god_module
Target: src/vallm/cli/batch_processor_impl.py
Score: 1.17

Changes

  • Extracted parse_filter_patterns, should_exclude_file, matches_include_pattern into new file
  • New file: src/vallm/cli/batch_processor_filter.py (24L)
  • Reduced: src/vallm/cli/batch_processor_impl.py (466L → 32L, -93%)

Quality Impact

  • Reduces god module size
  • Improves single-responsibility principle compliance
  • Lower cyclomatic complexity per file

Generated by Semcod reDSL engine

ReDSL auto-refactoring: split_god_module on batch_processor_impl.py
- Extracted parse_filter_patterns, should_exclude_file, matches_include_pattern
- New file: src/vallm/cli/batch_processor_filter.py (24L)
- Reduced: src/vallm/cli/batch_processor_impl.py (466L → 32L)
@tom-sapletta-com tom-sapletta-com merged commit 936f71a into main Apr 12, 2026
0 of 6 checks passed
@tom-sapletta-com tom-sapletta-com deleted the redsl/split-batch-processor branch April 12, 2026 15:04
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