Skip to content

Unnecessary doc generation for similarly named contract #35

@sebastiantf

Description

@sebastiantf
 // Checks if the documentation has to be generated for this contract
    const includesPath = config.include.some((str) => filePath.includes(str));

The above check in index.ts#L40, seems to be causing a slightly unwanted issue.

If there are two contracts that have the same substring in the contract name, docs are being generated for both contracts, even if I've only included one of them in hre.config.dodoc.include

Eg. contract/ContractName.sol, contracts/test/TestContractName.sol

Docs will be generated for both contracts, even if hre.config.dodoc.include = ['ContractName']

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