package main func init() { register(Check{ Seq: 100, ID: "10", Title: "Button automation attributes", Run: func(ctx *ScanContext, rep *Reporter) { 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 { rep.Fail("%d