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

Make rule config which is enabled with CLI non-nilable #763

Merged
merged 1 commit into from
May 21, 2020

Conversation

wata727
Copy link
Member

@wata727 wata727 commented May 20, 2020

Fixes #760

In the rule configuration which is enabled with CLI, The Body attribute is always nil. So, it panics when decoded the rule configuration.

To prevent this, always set the empty body to the configuration.

@wata727 wata727 merged commit 24a0f29 into master May 21, 2020
@wata727 wata727 deleted the non-nilable_rule_config branch May 21, 2020 13:02
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.

TFLint crashed
1 participant