Add JSONOutput.add_warning, and fix output to sort keys.

Review Request #12172 — Created March 17, 2022 and submitted — Latest diff uploaded

Information

RBTools
master

Reviewers

This adds JSONOutput.add_warning(), which is similar to
JSONOutput.add_error(), but works with a warnings key.

It also fixes JSON outputting to sort keys, so that there's always a
consistent set of results, rather than dealing with dictionary sort
order.

Documentation and some code has been cleaned up to better fit our
standards.

Unit tests pass.

Tested add_warning() with an upcoming change to rbt patch.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add JSONOutput.add_warning, and fix output to sort keys.
This adds `JSONOutput.add_warning()`, which is similar to `JSONOutput.add_error()`, but works with a `warnings` key. It also fixes JSON outputting to sort keys, so that there's always a consistent set of results, rather than dealing with dictionary sort order. Documentation and some code has been cleaned up to better fit our standards.
101224fc1be78b18c2aea81a1e326a7a016ba72e Christian Hammond
rbtools/commands/__init__.py
rbtools/commands/tests/test_main.py
Loading...