xiaoxiang781216 commented on PR #2807:
URL: https://github.com/apache/nuttx-apps/pull/2807#issuecomment-2495623420

   > @cederom Is there a way to check whether my changes will pass the check 
before committing? I read the documentation on 
[pre-commit](https://nuttx.apache.org/docs/latest/contributing/coding_style.html#using-pre-commit),
 but it seems that this only applies to the nuttx repository - at least this 
repository is missing the required 
[.pre-commit-config.yaml](https://github.com/apache/nuttx/blob/master/.pre-commit-config.yaml).
   > 
   > I have installed pre-commit in the nuttx repository and tested it on 
branch nuttx-12.7.0, where everything is fine. I then naively tried from within 
the nuttx repository: `pre-commit run --files ../apps/*` which gives all sorts 
of strange errors.
   
   please run the following command to check the style:
   ../nuttx/tools/checkpatch.sh -g HEAD~...HEAD


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to