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

Allow configuring the linter with comments #55

Open
srdtrk opened this issue Aug 13, 2024 · 0 comments
Open

Allow configuring the linter with comments #55

srdtrk opened this issue Aug 13, 2024 · 0 comments
Assignees
Milestone

Comments

@srdtrk
Copy link

srdtrk commented Aug 13, 2024

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)();
}
@gas1cent gas1cent self-assigned this Aug 19, 2024
@gas1cent gas1cent added this to the v1.2.0 milestone Aug 19, 2024
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

2 participants