r/Batch • u/zaphodikus • Oct 14 '26
Question (Unsolved) script linting
I use a linter for my C# (it's in the IDE mostly), I use pylint for Python, and on occasion start up a clang-tidy for C++. I'm always making dumb mistakes with batch and prefer to just use Python where possible and I suddenly wondered, what linter tooling do people use?
I could always spend a few tokens in this one tool my boss gave me, but surely there is a linter? All I could find was an abandoned thread https://www.reddit.com/r/Batch/comments/1mp1wc7/github_crosenblumblint_blint_is_a_lightweight_and/
6
Upvotes
View all comments
Show parent comment
1
u/pc1350 Oct 15 '26
Thank you. Did some checking. Shows an error:
- Context: GOTO points to non-existent label ':EOF'And
Redundant file existence check (P001)here: if exist file.txt del file.txtI prefer checking if file exists instead of using >NUL 2>NULLinter displays too many non existent.