Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Adding TOML comments in the remappings (foundry.toml) breaks resolution #64

@beeb

Description

@beeb

The resolution of remappings from the foundry.toml file are broken when the file contains comments within the remappings table. This is because natspec-smells uses custom string parsing instead of a proper TOML parser.

Repro:

remappings = [
    "forge-std/=dependencies/forge-std-1.9.2/src/", # this is a comment
    "@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-5.0.2/"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions