Closed cyw3 closed 6 years ago
If not using an argument is correct, you can name it as _
and it will be ignored. You can silence all warnings about unused arguments named self
with --ignore 212/self
or equivalents in config and inlne options. See documentation.
Many linters take this convention further by allowing you to prefix a named argument with _
. This is better to keep track of what the arguments are even when not using them. Would you consider adjusting the rule to allow for this? Thanks.
test.lua:64:17: unused argument 'self'
When I use luacheck to scan my project, there are many warnings about Unused Argument "self". What can i do for it?