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

Fix crash when passed --enable-rule with a configured rule #1105

Merged
merged 1 commit into from
Apr 24, 2021

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Apr 24, 2021

Fixes #1103

This PR fixes a crash when enabling a rule that requires config such as aws_s3_bucket_name with --enable-rule.

When rules are enabled from CLI, the pseudo rule configs are merged into the real configs. This should be ignored when merging, as pseudo rule configs have no reference to files.

@wata727 wata727 force-pushed the do_not_override_file_when_merged branch from ea4ca7c to a960d1d Compare April 24, 2021 06:49
@wata727 wata727 merged commit 022359e into master Apr 24, 2021
@wata727 wata727 deleted the do_not_override_file_when_merged branch April 24, 2021 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Passing --enable-rule with a configured rule results in a crash
1 participant