cli icon indicating copy to clipboard operation
cli copied to clipboard

DB Lint Should have the Option to Exit with a Non-Zero Status Code if There are Lint Errors

Open davidtucker opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Currently the Supabase documentation includes the lint functionality in the sample Github workflows. Since lint always returns a zero exit code, this does nothing more than add the lint notes to the build logs. While I don't think you always want a lint command to fail when there are warnings or errors, this should be a configuration option so that it can be included in a testing pipeline without parsing the output.

Describe the solution you'd like The current behavior can be preserved by forcing a flag to enable this behavior. The --fail-on flag could be configured for error, warning, or none (default value).

davidtucker avatar Jan 04 '24 15:01 davidtucker