We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
avoid_unused_private_function_parameters
does it make any sense to have unused function parameters when the function is private in a class?
class foo { void _bar(int I) { print("hello word"); } }
The text was updated successfully, but these errors were encountered:
Maybe.
If you override the method in subclasses inside the same library, and the other methods use the parameter.
If you tear off the method and pass it to something expecting a parameter.
Sorry, something went wrong.
Can an optional lint, in that case, could make sense? Not everyone needs to do this and an unused parameters can be hard to spot in your codebase.
No branches or pull requests
does it make any sense to have unused function parameters when the function is private in a class?
The text was updated successfully, but these errors were encountered: