Accept input from stdin?
I've been working on adding OpenSCAD as a newly supported language to my preferred neovim linter, ALE, with SCA2D as the first linter.
When possible, ALE seems to read the buffer directly (I think by piping to the stdin of the linter -- for example echo "print('hello')" | black -
). For linters that can only read from a file, it has a workaround that involves creating a tmpfile ('lint_file': 1
) and overall seems inferior.
Would you be interested in a PR that includes accepting input from stdin, which would them allow me to improve the ALE integration?
I would use the conventional filename -
to indicate that input should come from stdin, I imagine it would be a fairly trivial change to implement.