Code style
Revision as of 10:50, 13 May 2014 by Freephile (talk | contribs) (Created page with "When doing continuous integration, or really any development process where you want to enforce a coding standard (aka coding conventions, or code style), you want to be ab...")
When doing continuous integration, or really any development process where you want to enforce a coding standard (aka coding conventions, or code style), you want to be able to do that automatically. You might have code reviews in your process, but you don't want engineers using eyeballs to check the syntax of code and brace style etc. -- that is so 1990. This is where tools like jscodesniffer or PHP CodeSniffer come into play.
jscodesniffer is pretty cool in that it's a nodejs app can be easily integrated with your Jenkins environment [1], or used with a commit hook in your Version Control system.
References[edit source]
- ↑ The example given is using it with the static code analyzer 'CheckStyle' for Java projects via the CheckStyle plugin for Jenkins. However, you can have Jenkins employ jscodesniffer on any source