This is the way you set the rules as warnings, however, the name for the second rule should be "no-undef-init" (per the ticket)