#25500: Add option to check command to return non-zero exit status for warnings
--------------------------------------------+--------------------
     Reporter:  jdufresne                   |      Owner:  nobody
         Type:  New feature                 |     Status:  new
    Component:  Core (Management commands)  |    Version:  master
     Severity:  Normal                      |   Keywords:
 Triage Stage:  Unreviewed                  |  Has patch:  0
Easy pickings:  0                           |      UI/UX:  0
--------------------------------------------+--------------------
 I plan to use the system check command on a CI server to catch suspicious
 commits. Typically, the CI server will use the exit status to determine if
 a command fails or passes. I noticed the check command only exits with a
 non-zero exit status for `ERROR` issues. I suggest adding an option to the
 check command to either:

 * Treat warnings as errors, default to off
 * Set a minimum level to fail with an error, default to `ERROR`

 I'm OK with either approach if Django maintainers have a preference.

 This would be similar in spirit to gcc's `-Werror` option.

--
Ticket URL: <https://code.djangoproject.com/ticket/25500>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.a8edcb88e236005f7b23addd3390ae15%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to