-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add code style check #93
base: development
Are you sure you want to change the base?
Add code style check #93
Conversation
@ronald-cron-arm I have just realised that I have not yet got the all.sh component in place. I will do that this afternoon so I will remove the |
Now done and ready for review. |
.uncrustify.cfg
Outdated
@@ -0,0 +1,240 @@ | |||
# Configuration options for Uncrustify specifying the Mbed TLS code style. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to copy that file from Mbed TLS instead of committing it into the development branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, can change that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will need to add a new function to the psa_crypto.py
script to allow for copying files from the root directory in order to achieve this since currently only things from sub-directories are copied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes sure you can add one
|
||
component_check_code_style () { | ||
msg "Check C code style" | ||
./scripts/code_style.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried to run it and it seems we miss check-generated-files.sh
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, ok not sure why. Will investigate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, I misunderstood the meaning of the initial comment. I have added check-generated-files.sh
to be copied in psa_crypto.py
.
Signed-off-by: Thomas Daubney <[email protected]>
Signed-off-by: Thomas Daubney <[email protected]>
Signed-off-by: Thomas Daubney <[email protected]>
Signed-off-by: Thomas Daubney <[email protected]>
Commit removes the existing uncrustify config file and adds it for copying in psa_crypto.py. This required the creation of a new function in psa_crypto.py called copy_from_root. Signed-off-by: Thomas Daubney <[email protected]>
9da43fa
to
ce66409
Compare
@ronald-cron-arm @gabor-mezei-arm merge conflict is resolved so this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #48
PR relies on changes to the following files which are brought in on Mbed TLS PR #8523 which is now merged:
scripts/generate_driver_wrappers.py
scripts/mbedtls_dev/build_tree.py
tests/scripts/check-generated-files.sh