History log of /openbmc/entity-manager/format-code (Results 1 – 3 of 3)
Revision Date Author Comments
# bb454503 15-Dec-2025 Patrick Williams <patrick@stwcx.xyz>

format: find repo root programmatically

The `format-code` script assumes it is ran from the root of the
repository. Add bash support using BASH_SOURCE to move to the root of
the repository rather t

format: find repo root programmatically

The `format-code` script assumes it is ran from the root of the
repository. Add bash support using BASH_SOURCE to move to the root of
the repository rather than making that assumption.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I623ecdbc098a15b55d3d53900d342fce5d611828

show more ...


# ae395745 15-Dec-2025 Patrick Williams <patrick@stwcx.xyz>

format: add generate scripts

Add the generation scripts to the `format-code` helper instead of the
`run-ci` helper. Both are ran in Jenkins so there is no change to
test coverage. `format-code` is

format: add generate scripts

Add the generation scripts to the `format-code` helper instead of the
`run-ci` helper. Both are ran in Jenkins so there is no change to
test coverage. `format-code` is lighter weight, so more likely to be
ran manually / locally by developers.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibfaf4369d2e5519fc9441a13cc6ec82d307a1089

show more ...


# ae2b0734 29-Apr-2021 Ed Tanous <edtanous@google.com>

Add custom format code

entity-manager has for a long time had autojson.py, which enforces
key ordering to keep the json files consistent. This commit hooks this
into the custom format-code that CI

Add custom format code

entity-manager has for a long time had autojson.py, which enforces
key ordering to keep the json files consistent. This commit hooks this
into the custom format-code that CI supports, to be able to reject
patches that haven't run this, and prevent maintainers having to do it
by hand (like 98e102f377d9a5e8f7bbac1063ac39bc5fc8d023)

Tested:
Made some incompatible changes, then ran format-code, and observed them
disappear in the diff as they were cleaned up. CI on this patch should
also test the CI integration.

Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: If34ecb3c76b178a5e939db28eb997c76ad628d90

show more ...