I’d like to do an automated coding style inspection on changes (to be) committed to the repository.
Is there a tool can do style inspection/static inspection for patches?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The WebKit team have a Python-based code review bot that check incoming patches (diffs) for style issues. Perhaps you could adapt that to your needs?
Look at
check-webkit-styleand thewebkitpydirectory in http://svn.webkit.org/repository/webkit/trunk/Tools/Scripts/