Skip to content

feat: Add configuration validation system to reject invalid GasGuard config files before scans run.#231

Merged
mijinummi merged 3 commits intoMDTechLabs:mainfrom
phertyameen:main
Apr 26, 2026
Merged

feat: Add configuration validation system to reject invalid GasGuard config files before scans run.#231
mijinummi merged 3 commits intoMDTechLabs:mainfrom
phertyameen:main

Conversation

@phertyameen
Copy link
Copy Markdown
Contributor

Summary

Add configuration validation system to reject invalid GasGuard config files before scans run.

Changes

  • Added schema validation for config files

  • Added custom ConfigValidationError

  • Added validation for:

    • required contracts array
    • valid contract paths
    • supported output formats
    • boolean flags
  • Added clear and descriptive error messages for invalid configs

Result

Invalid configurations are now rejected early instead of causing silent scan failures.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

Hey @phertyameen! 👋 It looks like this PR isn't linked to any issue.

If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g., Closes #123), or by clicking a button below:

Issue Title
#223 🧪 AST Snapshot Debugger Link to this issue
#222 ⚡ Parallel File Processing Link to this issue
#221 🧾 Config Validation System Link to this issue

ℹ️ Learn more about linking PRs to issues

@mijinummi mijinummi merged commit bdc6e38 into MDTechLabs:main Apr 26, 2026
1 of 3 checks 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.

2 participants