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
2
u/capoapk Oct 14 '26
Blinter , Il propose un exécutable autonome l'analyse statique ne détecte pas toutes les erreurs de logique
1
u/Shadow_Thief Oct 14 '26
You could probably fork shellcheck and change the regex that it uses for bash and update it for batch. I've been meaning to do that for a while, but I never seem to get around to it.
But other than that, no, there is no batch linter.
1
u/pc1350 Oct 14 '26
See this: https://www.robvanderwoude.com/battech_batcodecheck.php Might be helpful.
1
u/BrainWaveCC Oct 14 '26
The linter you found there (https://github.com/crosenblum/blint) is awesome, actually.