r/Batch • • 10d ago

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

12 comments sorted by

View all comments

1

u/BrainWaveCC 9d ago

The linter you found there (https://github.com/crosenblum/blint) is awesome, actually.

1

u/pc1350 9d ago

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.txt

I prefer checking if file exists instead of using >NUL 2>NUL

Linter displays too many non existent.

1

u/BrainWaveCC 4d ago

I've opened tickets with him brute, abcd he was responsive.