Skip to content

refactor(config): split validation into focused files with shared helpers#220

Merged
indaco merged 2 commits intomainfrom
refactor/config-validation-separation
Mar 8, 2026
Merged

refactor(config): split validation into focused files with shared helpers#220
indaco merged 2 commits intomainfrom
refactor/config-validation-separation

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Mar 8, 2026

Description

Break apart config validation logic into focused, cohesive files:

  • Extract extension validation from validator_workspace.go into validator_extensions.go - extensions are a top-level config concern, not workspace-specific.
  • Add validator_helpers.go with reusable validateEnum, validateFileExists, and validateRegex methods to eliminate duplicated patterns across plugin validators.
  • Refactor validator_plugins.go to use the shared helpers

Related Issue

  • None

Notes for Reviewers

  • resolvePath replaces the former resolveExtensionPath and is now shared across extensions and plugin validators.

@indaco indaco merged commit 96f839b into main Mar 8, 2026
7 checks passed
@indaco indaco deleted the refactor/config-validation-separation branch March 8, 2026 23:17
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