Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ignoreSourceCodeByRegex key for custom mutator definitions #1385

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

maks-rafalko
Copy link
Member

@maks-rafalko maks-rafalko commented Oct 28, 2020

Fixes #1384

The root error from 1384:

[mutators.ArrayItemRemoval] Object value found, but a boolean is required 
[mutators.ArrayItemRemoval] The property ignoreSourceCodeByRegex is not defined and the definition does not allow additional properties [mutators.ArrayItemRemoval] Failed to match at least one schema 

Currently, we have the following issue: when we add a new key to default-mutator-config definition, we have to add such key for every custom definition. This is what I forget to do, and this is what this PR does.

It fixes the issue, but we will definitely have the same issue in the future because someone will forget to add new key to custom definitions as well.

I tried to fix this second issue by using Extending in JSON schema, but this brings new issues.

Let's get it merged to fix the issue, and discuss extending in a separate PR.

@sanmai sanmai merged commit 5d1e7d6 into master Oct 28, 2020
@sanmai sanmai deleted the feature/remove-appveyor branch October 28, 2020 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Call to undefined function get_debug_type() when configuration is invalid
2 participants