IF Commons GitHub

aide/introspect/rules

The rules of introspection (commons lang-sql 0008-sql-introspect FR-007): a rule is data, a code, a severity, a message and a query over the relations that gives a node column, so that the lint of a tree is written in the same SQL.

Spec: 0008-sql-introspect FR-007

Source: commons/lang-sql/src/aide/introspect/rules.ts

0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

BUILTIN_RULESconstno test imports it
const BUILTIN_RULES: readonly Rule[]

The rules that every parse is judged by.

Ruleinterfaceno test imports it
interface Rule

A rule of diagnostics.

MemberTypeWhat it is
codestring
severity"error" | "info" | "warning"
messagestring
sqlstringA query that gives one column named node: the id of each node that deserves the diagnostic.

Titles, headings, exports, tables, columns and requirements. Esc closes.