def verdict

bend-lint-rules@0.2.0.0 · layout/imports.bend:196

import bend-lint-rules@0.2.0.0/layout/imports.bend as Imports
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint

196# Rule
197# ====
198def verdict(
199  same: Bool,
200  +span: Lint.Span,
201  ordered: String,
202  renames: List<&2, Lint.Operation>
203) -> List<&2, Lint.Finding>:
204  match same:
205    case True{}:
206      []
207    case False{}:
208      [
209        Lint.Finding{
210          Lint.Warning{},
211          span,
212          "Order the imports: import Base first, then by path and alias, each file once.",
213          [Lint.Fix{"Order the imports", Lint.Replace{span, ordered} <> renames}]
214        }
215      ]

Uses (8)

Used by (1)