Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a linter and a validator?

Tags:

People also ask

What is the purpose of a linter?

Lint, or a linter, is a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs. The term originates from a Unix utility that examined C language source code.

Why is it called Linting?

See lint on wikipedia: lint was the name originally given to a particular program that flagged some suspicious and non-portable constructs (likely to be bugs) in C language source code. The term is now applied generically to tools that flag suspicious usage in software written in any computer language.

What is a linter in IDE?

According to Wikipedia, linter. is a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs.

What is a linter Javascript?

A Linter is an automated tool that runs on static code to find formatting discrepancies, non-adherence to coding standards and conventions, and find logical errors in your program.


I'm working on organizing some things and wanted to combined these two sets. In fact I don't know of any other validator besides the W3 - http://validator.w3.org/

Linters - jslint | jshint | eslint
Validators - w3

Is there any difference between these 2 types of tools. Both just look at the code statically and test it against a set syntax correct ?