Page MenuHomePhabricator

Allow validators to specify a function to autofix the validation errors
Open, Needs TriagePublic

Description

We're currently creating validators to ensure that,

  1. If source string does not start with a newline then the translation should not either
  2. If source string starts with a newline then the translation should too

We will show the translator an error when these conditions are not met but these can be fixed automatically. So we should look at allowing Validators to specify an auto-fix method, that when called tries to fix the errors.