// Apply applies the rule to the proto.
Apply applies the rule to the proto.
// Apply applies the rule to the proto .
func (r FieldNamesLowerSnakeCaseRule) Apply(proto *parser.Proto) ([]report.Failure, error) {
	base, err := visitor.NewBaseFixableVisitor(r.ID(), r.fixMode, proto)
	if err != nil {
		return nil, err
	}
	v := &fieldNamesLowerSnakeCaseVisitor{
		BaseFixableVisitor: base,
	}
	return visitor.RunVisitor(v, proto, r.ID())
}
func ( r FieldNamesLowerSnakeCaseRule ) Apply ( proto * parser . Proto ) ( [ ] report . Failure , error ) { base , err := visitor . NewBaseFixableVisitor ( r . ID ( ) , r . fixMode , proto ) if err != nil { return nil , err } v := & fieldNamesLowerSnakeCaseVisitor { BaseFixableVisitor : base , } return visitor . RunVisitor ( v , proto , r . ID ( ) ) }
Apply applies the rule to the proto.
Apply applies the rule to the proto .