def what

bend-lint-rules@0.2.0.0 · layout/case.bend:230

import bend-lint-rules@0.2.0.0/layout/case.bend as Case
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

230def what(syntax: Lint.Syntax, want: Case) -> String:
231  match want:
232    case Pascal{}:
233      noun(syntax, True{}) ++ " is PascalCase"
234    case Snake{}:
235      noun(syntax, False{}) ++ " is snake_case"
236    case Either{}:
237      "this name is snake_case, or PascalCase if it is a type"

Uses (6)

Used by (1)