Sign in

    Delthin/moon_repomix/security does not have a README file

    ScanError

    pub(all) suberror ScanError {
    InvalidBomOffset
    InvalidText
    InvalidEngineRange
    InputTooLarge
    } derive(Eq,
    Debug
    )

    Stable categories only: neither text, paths nor engine diagnostics are stored.

    ScanError::equal

    fn ScanError::equal(ScanError, ScanError) -> Bool

    ScanError::not_equal

    fn ScanError::not_equal(x : ScanError, y : ScanError) -> Bool

    Finding

    pub(all) struct Finding {
    rule : String
    path : String
    start : Int
    end : Int
    line : Int
    } derive(Eq,
    Debug
    )

    Locations refer to the original disk UTF-8 bytes, including a stripped BOM.

    Finding::equal

    fn Finding::equal(Finding, Finding) -> Bool

    Finding::not_equal

    fn Finding::not_equal(x : Finding, y : Finding) -> Bool

    Finding::to_repr

    scan

    fn scan(path : String, text : String, bom_bytes : Int) -> Array[Finding] raise ScanError

    Scan a snapshot using moon_scrub's secrets-only policy. Pass 3 only when the reader removed a UTF-8 BOM; otherwise pass 0. A finding excludes the entire file at the caller, not just its byte range.

    test {
    assert_eq(@security.scan("readme.md", "hello", 0).length(), 0)
    }

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io