package main import "fmt" func init() { register(Check{ Seq: 100, ID: "10", Title: "Button automation attributes", Run: func(ctx *ScanContext, rep *Reporter) { // Check 10: Button automation attributes fmt.Println("=== Check 10: Button automation attributes ===") if len(ctx.frontendTargets) > 0 { var buttonViolations []buttonViolation for _, target := range ctx.frontendTargets { for _, v := range checkButtonAutomation(target.dir) { v.file = prefixDisplayPath(target.label, v.file) buttonViolations = append(buttonViolations, v) } } if len(buttonViolations) > 0 { fmt.Printf(" FAIL: %d