defi-wonderland / natspec-smells

👃Automatically identify missing or incomplete natspec
MIT License
91 stars 7 forks source link

Allow configuring the linter with comments #55

Open srdtrk opened 1 month ago

srdtrk commented 1 month ago

I would find it useful to allow the use of comments in the source code to configure natspec-smells in a given line or file. I find myself wanting to disable the linter on certain functions like this, similar to solhint:

// natspec-smells-disable-next-line
function transferTo(address to, uint amount) public {
    require(tx.origin == owner);
    to.call.value(amount)();
}