I have this (simplified) code example:
File.write("out.txt", "content", mode="a")
which is not what I intended. It should should have been using a colon as in this one:
File.write("out.txt", "content", mode:"a")
However the former still works and creates a file with the following permissions:
I wonder if such code snippet could be flagged as incorrect or if there is any tool (a linter maybe?) that will flag such code as “probably incorrect”.