Skip to content
SPECIFICTION
Get listed

JSHint vs PHP_CodeSniffer

JSHint

jshint.com

PHP_CodeSniffer

github.com

Side by side

FigureJSHintPHP_CodeSniffer
Price fromFreeFree
Free planYesYes
Free trial——
Open sourceYes—
WebYes—
WindowsYes—
macOSYes—
LinuxYes—
APIYes—
Self-hostedYesYes
Plans published11
Spec score · Linters8.7 (#3)7.3 (#29)
InstallationOfficial installation supports browser-like standalone files, Mozilla Rhino, npm global installation and npm development dependencies.The project documents installation through PHAR downloads, Composer, Phive, or a Git clone.
LicenseJSHint is licensed under the MIT Expat license.The repository identifies PHP_CodeSniffer as BSD-3-Clause licensed.
PurposeJSHint is a community-driven static analysis tool that detects errors and potential problems in JavaScript code.PHP_CodeSniffer tokenizes PHP files and detects violations of a defined coding standard.
SupportThe project directs users to report bugs and suggestions through GitHub Issues.The project directs users to its GitHub issue tracker for bug reports and feature requests and to its wiki for documentation.

Plans

JSHint

  • JSHintFree

JSHint pricing →

PHP_CodeSniffer

  • PHP_CodeSnifferFree

PHP_CodeSniffer pricing →

In their own words

JSHint

JSHint is a free, open-source static analysis tool for JavaScript. It checks code for syntax errors and potential problems such as implicit type conversion issues and leaking variables. The project aims to help JavaScript developers avoid typos and language gotchas while working on complex programs. JSHint is distributed as a Node module with a library and command-line program, and it can also be used through a JavaScript API. Configuration can come from command-line options, a .jshintrc file, package.json, or inline source directives. Standalone files are available for browser-like environments and Mozilla Rhino, with releases published to npm for Node.js. The install page lists integrations for editors and IDEs including Vim, Emacs, Sublime Text, Visual Studio, VS Code, Eclipse, and JetBrains IDEs, plus build integrations such as Grunt, Ant, Maven, pre-commit, and QUnit. JSHint is licensed under the MIT Expat license. Its documentation cautions that static analysis cannot determine whether a program is correct or fast, or whether it has memory leaks, and recommends using it alongside unit and functional tests and code reviews.

Visit jshint.com

PHP_CodeSniffer

PHP_CodeSniffer has no write-up on Specifiction yet; its figures are above.

Visit github.com