def message

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

import bend-lint-pack@0.1.1.0/complexity/cognitive.bend as Cognitive
import Base

86def message(+name: String, score: U32, max: U32) -> String:
87  "def " ++ name ++ " has cognitive complexity " ++ U32.show(score) ++ "; the limit is " ++ U32.show(max) ++ ". Flatten nested matches into helper defs."

Uses (4)

Used by (1)