hed-typescript API
    Preparing search index...

    Class BidsHedIssue

    A wrapper for a HED validation issue that is compatible with the BIDS validator.

    This class encapsulates a HED Issue object and provides additional properties and methods for BIDS-specific error reporting.

    Index
    code: BidsIssueCode

    The BIDS-compliant issue code.

    file: FilePath | null

    The file associated with this issue.

    hedIssue: Issue

    The underlying HED issue object.

    issueMessage: string

    The human-readable issue message.

    line: string

    The line number where the issue occurred.

    location: string | null

    The path to the file where the issue occurred.

    severity: IssueLevel

    The severity of the issue (e.g., 'error' or 'warning').

    subCode: string

    The HED-specific issue code.

    • Filter and reduce a list of issues based on severity and user options, producing a new list.

      Parameters

      • issues: BidsHedIssue[]

        A list of BIDS HED issues.

      • checkWarnings: boolean = false

        Whether to include warnings in the output.

      • limitErrors: boolean = false

        Whether to reduce the list of issues to one of each type.

      Returns BidsHedIssue[]

      The processed list of issues.

      If checkWarnings is true, warnings will be included in the output, otherwise only errors will be included. If limitErrors is true, the output will be reduced to one issue of each subCode type in the list. The message of each "representative" issue will be updated to summarize the number of occurrences and files.