🚀 Blinter The Linter - A Cross Platform Batch Script Linter
Posted by Ok_Bottle8789@reddit | Python | View on Reddit | 2 comments
Yes, it's 2025. Yes, people still write batch scripts. No, they shouldn't crash.
What It Does
✅ 158 rules across Error/Warning/Style/Security/Performance
✅ Catches the nasty stuff: Command injection, path traversal, unsafe temp files
✅ Handles the weird stuff: Variable expansion, FOR loops, multilevel escaping
✅ 10MB+ files? No problem. Unicode? Got it. Thread-safe? Always.
Get It Now
pip install Blinter
Or grab the standalone .exe
from GitHub Releases
One Command
python -m blinter script.bat
That's it. No config needed. No ceremony. Just point it at your .bat
or .cmd
files.
The first professional-grade linter for Windows batch files.
Because your automation scripts shouldn't be held together with duct tape.
What My Project Does A cross platform linter for batch scripts.
Target Audience Developers, primarily Windows based.
Comparison There is no comparison, it's the only batch linter so theres nothing to compare it to.
james_pic@reddit
On the one hand, it's probably good that this exists. I know shell scripts are often improved by a linter, and a lot of batch scripts have problems that couldn't benefit from tooling drawing attention to them.
On the other hand, if I had enough batch scripts in my project that a tool like this could help, I'd probably mostly be spending my days screaming anyway.
maikeu@reddit
Nice! If I was unfortunate enough to need to deal with a collection of batch scripts then I'd be on the lookout for something like this.
You went for a single-file package approach - was that to make it easier to do the standalone exe build? It's a mixed bag - it does kind of help reading the code as a single "story" on a quick scan, though at over 6000 lines it's well last the point where I'd have decided it's too much...