def check

bolt@1.27.0.0 · src/rules/pedantic/index.bend:82

import bolt@1.27.0.0/src/rules/pedantic/index.bend as Index
import Base
import bolt@1.27.0.0/src/src.bend as Src
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/rules/calls.bend as Calls
import bolt@1.27.0.0/src/rules/table.bend as Table

82# the rule
83def check(ss: Src.Src) -> List<&2, F.Finding>:
84  Src.Src{path, text, toks, tree, bound, items} = ss
85  +ds = Calls.defs(tree)
86  check.go(ds, Table.modules(ds, []), path, [])

Uses (6)

Used by (1)