pub struct FeatureFlagFinding {
pub path: String,
pub flag_name: String,
pub kind: FeatureFlagKind,
pub confidence: FeatureFlagConfidence,
pub line: u32,
pub col: u32,
pub actions: Vec<FeatureFlagAction>,
pub sdk_name: Option<String>,
pub dead_code_overlap: Option<FeatureFlagDeadCodeOverlap>,
}Expand description
One feature flag finding in JSON output.
Fields§
§path: StringFile path relative to the analysed root.
flag_name: StringDetected flag identifier, e.g. the env var or SDK key name.
kind: FeatureFlagKindDetection pattern the flag matched.
confidence: FeatureFlagConfidenceHow confident the detector is that this is a real feature flag.
line: u321-based line of the flag usage.
col: u321-based column of the flag usage.
actions: Vec<FeatureFlagAction>Suggested follow-up actions (investigate / suppress).
sdk_name: Option<String>Flag SDK the call belongs to, for SDK-call findings.
dead_code_overlap: Option<FeatureFlagDeadCodeOverlap>Overlap with dead-code findings when the flag guards unused exports.
Trait Implementations§
Source§impl Clone for FeatureFlagFinding
impl Clone for FeatureFlagFinding
Source§impl Debug for FeatureFlagFinding
impl Debug for FeatureFlagFinding
Auto Trait Implementations§
impl Freeze for FeatureFlagFinding
impl RefUnwindSafe for FeatureFlagFinding
impl Send for FeatureFlagFinding
impl Sync for FeatureFlagFinding
impl Unpin for FeatureFlagFinding
impl UnsafeUnpin for FeatureFlagFinding
impl UnwindSafe for FeatureFlagFinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more