views:

413

answers:

4

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
+1  A: 

Haven't seen StyleCop, but for Java there is Checkstyle: http://checkstyle.sourceforge.net/

Gary Kephart
+1  A: 

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.

Alister Bulman
+1  A: 

I'm not aware of any js tool that will actually enforce rules on commit but http://www.jslint.com/ is a good start.

Ollie Edwards
A: 

For Perl there is a tool called perlcritic.

Peter Stuifzand