-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
area-lintersIssues relating to linters and code fixersIssues relating to linters and code fixersenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Just some ideas for linters which pick up on potential issues with people using standard library functions:
- Suggest replacing
pcall(function() return f() end)(orpcall(function f() end) withpcall(f). This should probably only be done if all arguments are pure/will not error. - Check format strings (
string.formatand("foo"):format) have the correct number of arguments. And possibly that the strings are well-formed. - Check Lua patterns are welformed within the various
string.*functions.
Metadata
Metadata
Assignees
Labels
area-lintersIssues relating to linters and code fixersIssues relating to linters and code fixersenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers