Language - Linter (Code Analysis, Validation)

Card Puncher Data Processing

Language - Linter (Code Analysis, Validation)


A linter is a tool that:

They are also used for syntax highlighting

Example implementation

Bad variable name writing

Bad name writing is a problem that occurs when the developer makes a mistake in the variable name.


  • The variable has been written: $contextpath and not $contextPath with an uppercase letter P
  • The variable is then unused
  • The linter will report it and colors the variable characters in grey.

Code Analysis Variable Unused Name Error

Because this language is dynamic (no variable and type declaration), it allows for the declaration of variables everywhere and will not create any problems when it runs.


A linter is basically a parser that traverse and analyze the parse tree to:


Documentation / Reference

Discover More
Card Puncher Data Processing
(Data) Type - (Datatype|Type of data)

Variables, parameters, and function may be typed (static typing) and return values that are typed (as do a database column). The type of a variable or expression defines the characteristics of the values...
Card Puncher Data Processing
Code - Syntax Highlighting

Syntax Highlighting gives color to every type of token. Syntax highlighting is generally achieved via linter. The linter creates a syntax tree that is traversed by the syntax syntax highlighter code...
Code Analysis Variable Unused Name Error
Code Quality - Code analysis

Code analysis is an application that scans code and reports : problems or improvement The application performing code analysis is a linter (a parser/lexer program) Bad name writing is a problem...
HTML - Linter (Code analysis)

List of linter for HTML
Java Conceptuel Diagram
Java - Test Tool

- assertion library assertThat - library (Findbugs) - ...
Javascript - Format / Prettify

linter in Javascript
Javascript - Linter / Minification (EsLint / Tern / Uglify)

This page is linter / minification in Javascript Linter are used under the hood by bundler in the optimization phase. Name Language Description eslint/eslintESLint Javascript A linter (identifying...
Card Puncher Data Processing
Language - Coding Style (Syntax Formatting)

Syntax formatting is done by a linter. See also: Indent_style
Language - Compiler compilers or (lexer|parser) generators

Compiler-compilers splits the work into a lexer and a parser: The Lexer reads text data (file, string,...) and divides it into tokens using lexer rule (patterns). It generates as output a list of tokens...
Lexical Analysis - Parser (Syntax analysis|Linter)

A parser create a parse tree data structure from a series of token created by the lexer. The creation of the tree is based on the rules declared in the grammar (which defines the syntactic structure of...

Share this page:
Follow us:
Task Runner