Dependicus API Reference
    Preparing search index...

    Interface BasicComplianceConfig

    Configuration for BasicCompliancePlugin.

    The plugin is intentionally agnostic about how you assign policies to dependencies. You bring the policy definitions and a lookup function; the plugin handles columns, sections, and issue spec generation.

    interface BasicComplianceConfig {
        getPolicy: (name: string, store: FactStore) => string | undefined;
        policies: Record<string, CompliancePolicy>;
    }
    Index

    Properties

    Properties

    getPolicy: (name: string, store: FactStore) => string | undefined

    Given a dependency name, return its policy ID (a key into policies). Return undefined if the dependency has no policy — it will show as N/A.

    The store parameter gives access to facts populated by data sources, which is useful when the policy assignment lives in a custom data source rather than a static lookup table.

    policies: Record<string, CompliancePolicy>

    Map of policy ID to policy definition. IDs are opaque strings you define.