Query module SemicolonInsertion

name
Semicolon insertion
description
Code that uses automatic semicolon insertion inconsistently is hard to read and maintain.
kind
problem
problem.severity
recommendation
id
js/automatic-semicolon-insertion
tags
maintainability language-features statistical non-attributable
precision
very-high

Imports

RestrictedLocations

Provides classes for restricting the locations reported for program elements.

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

asi

Holds if statement s in statement container sc either has a semicolon inserted and asi is true, or does not have a semicolon inserted and asi is false.