-
Notifications
You must be signed in to change notification settings - Fork 2
Standard library linters #5
Copy link
Copy link
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
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
Just some ideas for linters which pick up on potential issues with people using standard library functions:
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.string.formatand("foo"):format) have the correct number of arguments. And possibly that the strings are well-formed.string.*functions.