(bool)
boolean literals
clojure
(bool val?)Where:
- val: boolean value to match *
Examples
Find feature flags hardcoded to true before extracting them to configuration.
clojure
(var _ true)Selects in lines { 1, 3 } but not in { 2 }:
typescript
const debugMode = true
const isProduction = false
let enableFeature = trueLocate boolean comparisons that can be simplified.
clojure
(bin === _ (bool true))Selects in lines { 1 } but not in { 2, 3 }:
typescript
if (isValid === true) { }
if (isReady === false) { }
if (hasPermission) { }Arguments
val
• "true"
• "false"
Does NOT support: Composition — Free-form Selection — Refinement — Replacement