def run

bend-lint-pack@0.1.1.0 · complexity/cyclomatic.bend:97

import bend-lint-pack@0.1.1.0/complexity/cyclomatic.bend as Cyclomatic
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

97def run(input: Lint.Input) -> IO(List<&2, Lint.Diag>):
98  match input:
99    case Lint.Input{sources, options}:
100      do IO<List<&2, Lint.Diag>>:
101        owners : Common.Owners <- Lint.fold_facts(~Common.Owners, ~Common.Owners.collect, Common.Owners.empty())
102        judge(Lint.option_number(options, "max", 10), Common.Owners.ordered(owners), [])

Uses (12)

Used by (1)