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

WAF TF Linting rules for VMSS, AFW, AASP #64

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mbilalamjad
Copy link

No description provided.

Copy link
Member

@matt-FFFFFF matt-FFFFFF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mbilalamjad mbilalamjad marked this pull request as ready for review August 1, 2024 15:14
Copy link
Member

@lonegunmanb lonegunmanb left a 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.

waf/azurerm_compute_virtualmachinescaleset.go Outdated Show resolved Hide resolved
waf/azurerm_service_plan.go Outdated Show resolved Hide resolved
@mbilalamjad mbilalamjad changed the title Create azurerm_compute_virtualmachinescaleset.go WAF TF Linting rules for VMSS, AFW, AASP Sep 11, 2024
Copy link
Member

@matt-FFFFFF matt-FFFFFF left a 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 ",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"zone_balance ",
"zone_balance",

func (wf WafRules) ZoneBalanceDisabledWindows() *attrvalue.SimpleRule[bool] {
return attrvalue.NewSimpleRule[bool](
"azurerm_windows_virtual_machine_scale_set",
"zone_balance ",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"zone_balance ",
"zone_balance",

func (wf WafRules) AutomaticRepairsPolicyEnabledWindows() *attrvalue.SimpleRule[bool] {
return attrvalue.NewSimpleRule[bool](
"azurerm_windows_virtual_machine_scale_set",
"automatic_instance_repair ",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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 ",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"automatic_instance_repair ",
"automatic_instance_repair",

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.

3 participants