Hi, weve been using StyleCop for enforcing coding standards in C#, I was wondering are there similar tools for other languages? namely:
- js
- css
- sql
Hi, weve been using StyleCop for enforcing coding standards in C#, I was wondering are there similar tools for other languages? namely:
Haven't seen StyleCop, but for Java there is Checkstyle: http://checkstyle.sourceforge.net/
There has been some moves towards CSS & JS coding standards being supported in PHP_CodeSniffer (blog post/announcement). It's currently (March 2009) in Release Candidate status though.
I'm not aware of any js tool that will actually enforce rules on commit but http://www.jslint.com/ is a good start.