JSLint - The JavaScript Code Quality Tool

  •        6879

JSLint is a JavaScript program that looks for problems in JavaScript programs. It is a code quality tool. JSLint takes a JavaScript source and scans it. If it finds a problem, it returns a message describing the problem and an approximate location within the source. The problem is not necessarily a syntax error, although it often is. JSLint looks at some style conventions as well as structural problems. It does not prove that your program is correct.

JavaScript is a young-for-its-age language. It was originally intended to do small tasks in webpages, tasks for which Java was too heavy and clumsy. But JavaScript is a very capable language, and it is now being used in larger projects. Many of the features that were intended to make the language easy to use are troublesome for larger projects. A lint for JavaScript is needed: JSLint, a JavaScript syntax checker and validator.

The source is available in location http://www.jslint.com/lint.html




Related Projects

Flow - A static type checker for JavaScript

Adds static typing to JavaScript to improve developer productivity and code quality.

eslint-config-standard-jsx - ESLint Shareable Config for JSX support in JavaScript Standard Style

Shareable configs are designed to work with the extends feature of .eslintrc files. You can learn more about Shareable Configs on the official ESLint website.This Shareable Config adds extra JSX style rules to the baseline JavaScript Standard Style rules provided in eslint-config-standard. It doesn't assume that you're using React, so other virtual DOM libraries like virtual-dom and deku are supported.

JSHint - A Static Code Analysis Tool for JavaScript

JSHint is a community-driven tool to detect errors in JavaScript code and enforce your team's coding conventions.

js-code-analyzer - Static JS-code analysis using JSLint and Esprima.

Static JS-code analysis using JSLint and Esprima.

NullAway - A tool to help eliminate NullPointerExceptions (NPEs) in your Java code.

NullAway is a tool to help eliminate NullPointerExceptions (NPEs) in your Java code. To use NullAway, first add @Nullable annotations in your code wherever a field, method parameter, or return value may be null. Given these annotations, NullAway performs a series of type-based, local checks to ensure that any pointer that gets dereferenced in your code cannot be null. NullAway is similar to the type-based nullability checking in the Kotlin and Swift languages, and the Checker Framework and Eradicate null checkers for Java.NullAway is fast. It is built as a plugin to Error Prone and can run on every single build of your code. In our measurements, the build-time overhead of running NullAway is usually less than 10%. NullAway is also practical: it does not prevent all possible NPEs in your code, but it catches most of the NPEs we have observed in production while imposing a reasonable annotation burden, giving a great "bang for your buck." At Uber, we combine NullAway with RAVE to obtain thorough protection against NPEs in our Android apps.

Sonarqube - Continuous Code Quality

SonarQube is the open source platform for continuous inspection of code quality. SonarQube provides the capability to not only show health of an application but also to highlight issues newly introduced. With a Quality Gate in place, you can fix the leak and therefore improve code quality systematically. Code analyzers can detect tricky issues such as null-pointers dereferences, logic errors, resource leaks.

Checkstyle - Checks Java coding standard

Checkstyle is a tool to help programmers write Java code that adheres to a coding standard. Checkstyle is highly configurable and can be made to support almost any coding standard. Checkstyle provides checks that find class design problems, duplicate code, or bug patterns like double checked locking. This tool could be integrated as Ant task.

FindBugs - Static Analysis Tool for Java

FindBugs uses static analysis to look for bugs in Java code. it can analyze programs compiled for any version of Java. Eclipse and Maven plugins are available. FindBugs has been downloaded more than 700,000 times.

csslint - Automated linting of Cascading Stylesheets

CSSLint is an open source CSS code quality tool originally written by Nicholas C. Zakas and Nicole Sullivan. It was released in June 2011 at the Velocity conference.A lint tool performs static analysis of source code and flags patterns that might be errors or otherwise cause problems for the developer.

goreporter - A Golang tool that does static analysis, unit testing, code review and generate code quality report

Install goreporter (see above).You have to confirm that your project is operational. In particular, the problem with vendor, when the package is not found in the default path, goreporter will look again from the possible vendor path.


A Gradle custom Plugin that allows running JSLint static analysis against JavaScipt code. A blog article accompanies this source code to explain its intent and implementation.

CodeNarc - Static Analysis for Groovy

CodeNarc analyzes Groovy code for defects, bad practices, inconsistencies, style issues, coding standards, best practices and more. CodeNarc triggers violations based on rules which are predefined or custom rules. The static analysis report is generated in XML or HTML format. It is well integrated with the Ant Task and plugins exist for Maven, Gradle, Grails, Griffon, Sonar and Hudson.

jslint-core - JSLint: The JavaScript Code Quality Tool packaged as a CommonJS module

JSLint: The JavaScript Code Quality Tool packaged as a CommonJS module

jslint-node-edition - JSLint JavaScript code quality tool ported to Node.js from Rhino

JSLint JavaScript code quality tool ported to Node.js from Rhino