Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated formatting and style checker tool #48

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

naushir
Copy link
Collaborator

@naushir naushir commented Jul 6, 2021

This set of commits updates all source files to have a consistent format/style via clang-format.
We also add a checkstyle.py script that can be used as a git hook to ensure all commits match our coding style.

This allows us to have a somewhat consistent coding style for our libcamera-apps.
…ing style.

This script can be used as a git pre or post commit hook. To do this, call it
from .git/hooks/pre-commit or .git/hooks/post-commit.

This script is a cut-down copy of the libcamera checkstyle script found at:
https://git.libcamera.org/libcamera/libcamera.git/tree/utils/checkstyle.py
There are no functional changes in this commit.
@naushir
Copy link
Collaborator Author

naushir commented Jul 6, 2021

@davidplowman

@davidplowman davidplowman merged commit 070ff4a into raspberrypi:main Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants