Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary doc generation for similarly named contract #35

Open
sebastiantf opened this issue Jun 29, 2022 · 0 comments
Open

Unnecessary doc generation for similarly named contract #35

sebastiantf opened this issue Jun 29, 2022 · 0 comments

Comments

@sebastiantf
Copy link

sebastiantf commented Jun 29, 2022

 // 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']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant