• 
      

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

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

    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.

    Summary ID
    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
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.x (d23fd0d)