def opt_in

bolt@1.26.0.0 · src/config.bend:284

import bolt@1.26.0.0/src/config.bend as Config
import Base

284# a rule only its own setting turns on: a group setting, or the group's
285# default, would put new findings on projects that never asked for it
286# (`thunk`, `transcong`, and the laws' `coverage` and `closed`, which are a
287# project's policy rather than defects)
288def opt_in(+rule: String) -> Bool:
289  List.contains(~String, ~String.eq, ["thunk", "transcong", "coverage", "closed"], rule)

Uses (5)

Used by (1)