Skip to content

Instantly share code, notes, and snippets.

@williamspatrick
Created December 7, 2022 22:29
Show Gist options
  • Save williamspatrick/91b72cb2ed18ae794e91d1f04b78e3d7 to your computer and use it in GitHub Desktop.
Save williamspatrick/91b72cb2ed18ae794e91d1f04b78e3d7 to your computer and use it in GitHub Desktop.
Running format-code.sh
$ ../openbmc-build-scripts/scripts/format-code.sh --help
usage: format-code.sh [-h | --help] [--no-diff] [--disable <tool>]
[--list-tools] [<path>]
Format and lint a repository.
Arguments:
--list-tools Display available linters and formatters
--no-diff Don't show final diff output
--disable <tool> Disable linter
--allow-missing Run even if linters are not all present
path Path to git repository (default to pwd)
$ ../openbmc-build-scripts/scripts/format-code.sh
Formatting code under /home/apwillia/local/sync/openbmc-sources/sdbusplus
Running commit_gitlint
Running commit_spelling
openbmc-dictionary - misspelling count >> 0
generic-dictionary - misspelling count >> 0
Running beautysh
Running black
All done! ✨ 🍰 ✨
12 files left unchanged.
Running clang_format
Running flake8
Running isort
Running markdownlint
Running prettier
include/sdbusplus/server/README.md 38ms
docs/yaml/interface.md 76ms
docs/yaml/error.md 9ms
docs/asio.md 12ms
README.md 23ms
test/yaml/server/Test.interface.yaml 6ms
example/yaml/net/poettering/Calculator.interface.yaml 9ms
example/yaml/net/poettering/Calculator.errors.yaml 1ms
.prettierrc.yaml 2ms
.markdownlint.yaml 1ms
Running shellcheck
Result differences...
Format: PASSED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment