Add new severity and text_extra options when commenting.

Review Request #11564 — Created March 30, 2021 and submitted — Latest diff uploaded

Information

ReviewBot
release-3.0.x

Reviewers

This introduces two new standard options for comments:

  • severity is a severity indicator, as provided by the tool. This can
    be used to help differentiate between errors, stylistic issues, or any
    other criteria offered by a tool.

  • text_extra is a list of tuples, each in (Header, Value) form.
    These are used for adding custom tool-specific information at the end
    of the comment text, after any built-in ones like Severity,
    Column, or Error code.

Unit tests passed.

Used these in an upcoming change.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add new severity and text_extra options when commenting.
This introduces two new standard options for comments: * `severity` is a severity indicator, as provided by the tool. This can be used to help differentiate between errors, stylistic issues, or any other criteria offered by a tool. * `text_extra` is a list of tuples, each in `(Header, Value)` form. These are used for adding custom tool-specific information at the end of the comment text, after any built-in ones like `Severity`, `Column`, or `Error code`.
3a378a4da8294da749e3a89b131538905b5c800f Christian Hammond
bot/reviewbot/processing/review.py
bot/reviewbot/processing/tests/test_file.py
Loading...