-
Notifications
You must be signed in to change notification settings - Fork 7
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
WAF TF Linting rules for VMSS, AFW, AASP #64
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mbilalamjad almost LGTM but we need to remove all commented methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Bilal, looks good just a few suggestions as some extra spaces have crept in
func (wf WafRules) ZoneBalanceDisabledLinux() *attrvalue.SimpleRule[bool] { | ||
return attrvalue.NewSimpleRule[bool]( | ||
"azurerm_linux_virtual_machine_scale_set", | ||
"zone_balance ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"zone_balance ", | |
"zone_balance", |
func (wf WafRules) ZoneBalanceDisabledWindows() *attrvalue.SimpleRule[bool] { | ||
return attrvalue.NewSimpleRule[bool]( | ||
"azurerm_windows_virtual_machine_scale_set", | ||
"zone_balance ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"zone_balance ", | |
"zone_balance", |
func (wf WafRules) AutomaticRepairsPolicyEnabledWindows() *attrvalue.SimpleRule[bool] { | ||
return attrvalue.NewSimpleRule[bool]( | ||
"azurerm_windows_virtual_machine_scale_set", | ||
"automatic_instance_repair ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"automatic_instance_repair ", | |
"automatic_instance_repair", |
func (wf WafRules) AutomaticRepairsPolicyEnabledLinux() *attrvalue.SimpleRule[bool] { | ||
return attrvalue.NewSimpleRule[bool]( | ||
"azurerm_linux_virtual_machine_scale_set", | ||
"automatic_instance_repair ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"automatic_instance_repair ", | |
"automatic_instance_repair", |
No description provided.