Diff based coding style inspection?
I'd like to do an automated coding style inspection on 开发者_StackOverflow社区changes (to be) committed to the repository.
Is there a tool can do style inspection/static inspection for patches?
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-style
and the webkitpy
directory in http://svn.webkit.org/repository/webkit/trunk/Tools/Scripts/
精彩评论