diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2021-06-13 20:25:19 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2021-06-17 00:58:11 +0200 |
commit | f613557b5e5186cfa0ef451e5b4d7e57782cba69 (patch) | |
tree | 1c52a8f7ce859d94ddb3e44b56e7d03f9b82489e /AUTHORS | |
parent | 40a49da8856dd0325a5407829d064247bf9b40e0 (diff) | |
download | tracker-f613557b5e5186cfa0ef451e5b4d7e57782cba69.tar.gz |
build: Add check-style.py helper script
This script uses uncrustify to detect code style breaks in/around the
given SHA diff. There's two ways to use it:
- `check-style.py --sha $SHA` prints in stdout the diffs with the
changes suggested to the modifications done between HEAD and $SHA.
The default with no --sha specified is HEAD^
This is meant for integration in CI, in order to show code style
differences, and suggest a set of changes.
- `check-style.py -r` in addition amends the changes in the last
commit. This is ideal to rewrite all commits in a branch one by
one with the suggested changes, e.g.:
`$ git rebase origin/master --exec "./check-style -r"`
One caveat is that there is per-function granularity in the suggested
code changes, so the script might suggest to fix style in unmodified
portions of the changed functions.
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions