6 ms·
Any recommendations for tools in web development? I use JS Lint, but what about server side languages?
by speg 14y ago
Any recommendations for tools in web development? I use JS Lint, but what about server side languages?
- buster 14y agohttps://github.com/SublimeLinter/SublimeLinter https://github.com/SublimeLinter/SublimeLinter
- sergimansilla 14y agoCloud9 IDE has static JavaScript Analysis integrated in the editor. https://c9.io/ https://c9.io/
- OriginalSyn 14y agoWhich ones? PHP has a bunch of them, http://stackoverflow.com/questions/378959/is-there-a-static-code-analyzer-like-lint-for-php-files http://stackoverflow.com/questions/378959/is-there-a-static-... Here's a some for asp.net, http://stackoverflow.com/questions/4419253/seeking-a-code-analysis-tool-for-asp-net http://stackoverflow.com/questions/4419253/seeking-a-code-an...
- karmi 14y agoTry http://codeclimate.com http://codeclimate.com
- Too 14y agoFor PHP: phpLint[1], almost makes php into a type safe language. For .NET you have Code Contracts[2], this requires you to annotate pre- and postconditions for your functions but after that it's for example impossible to pass a possibly null into a function without compile time error. It can even do range-check of numerics after calculations etc. [1]http://www.icosaedro.it/phplint/ http://www.icosaedro.it/phplint/ [2]http://research.microsoft.com/en-us/projects/contracts/ http://research.microsoft.com/en-us/projects/contracts/
- nahname 14y agoReSharper is the best lint tool you can get for dotnet development. It literally makes you a better programmer that writes cleaner code. It really sounds like JetBrains needs to make a similar tool for C++
- adamzochowski 14y agoHow does it compare to fxCop?
- nahname 14y agoNight and day. FxCop requires days of customization to include something into your build step. Even then, the recommendations are weak at best. Furthermore, think back to Carmack's comment on how static analysis has to at least be in your build step. ReSharper has much better recommendations that require almost no tweaking (variable names you might disagree with). The best part, it tells you these recommendations at the time of writing. This is one of ReSharpers best features (IMO). Not only do programmers write better code with, they often write code that works the first time and compiling becomes just a technicality. Code improvement is noticeably better. So much so, that when my company is hiring and I am reviewing the candidates submission; I can immediately tell whether or not they were using ReSharper. Cannot recommend this tool enough. I feel crippled without it in VS.
- rbellio 14y agoAnother ReSharper user here that has used FxCop as well. I think both tools are awesome, but ReSharper's ability to do the code analysis on the fly is huge for me. Just be aware of your default shortcuts if you look into ReSharper. I remember that some of them change on you.
- adamzochowski 14y agoFor PHP: Facebook's PHP compiler, HipHop, comes with static code analysis. Rasmus Lerdorf himself recommends it.
- MBlume 14y agoPylint is fantastic Googling "$LANGUAGE lint" will probably find what you need.
- pnathan 14y agoI've personally found pychecker and pyflakes to be much more useful out of the gate than pylint.
- viscanti 14y agoFlake8Lint (available for Vim and Sublime Text 2) works really well for me, and my co-workers. The optional complexity checking is a nice bonus. You also get the PEP 8 linting and some logic checks. It hurts at first, to see all the errors pop up, but once you tweak the settings (maybe you don't care so much about PEP 8 spacing and you'd like your equals signs to all match up, in which case it's simple to ignore those issues), it can help keep code consistent. I think the big win is on large projects with a number of people writing code. Having an enforceable "style" really helps cut down on bugs and makes everything more readable.
- farnulfo 14y agoSonar from SonarSource can natively analyzed java code (open source). Additional plugins are available for other languages (http://docs.codehaus.org/display/SONAR/Plugin+Library http://docs.codehaus.org/display/SONAR/Plugin+Library). You can see a live demo for a lot of open source project at http://nemo.sonarsource.org http://nemo.sonarsource.org .
- Joeri 14y agoI can strongly recommend phpstorm for javascript and php inspections. Errors are highlighted as you type (including but not limited to what jslint catches) and quite a few can be automatically fixed. They also have a good spellcheck for misspelled variable names. No more poeple arrays in my code :)
- viggity 14y agoI wrote a static code analysis tool for .net (c#/vb) www.nitriq.com
- jaimefjorge 14y agoI would love for you to try qamine (www.qamine.com). I'm giving a trial for people to test the tool before I launch it. Feel free to join.