def run

bend-lint-pack@0.1.1.0 · complexity/cognitive.bend:109

import bend-lint-pack@0.1.1.0/complexity/cognitive.bend as Cognitive
import Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
import bend-lint-pack@0.1.1.0/common.bend as Common

109def run(input: Lint.Input) -> IO(List<&2, Lint.Diag>):
110  match input:
111    case Lint.Input{sources, options}:
112      do IO<List<&2, Lint.Diag>>:
113        owners : Common.Owners <- Lint.fold_facts(~Common.Owners, ~Common.Owners.collect, Common.Owners.empty())
114        judge(Lint.option_number(options, "max", 15), Common.Owners.ordered(owners), [])

Uses (12)

Used by (1)