3 ms·
Code coverage for your AWK programs
- pabs3 4y agoAre there any linters for AWK programs?
- benhoyt 4y agoI don't know of a stand-alone one. Gawk has the "--lint" option, which is documented to "Warn about constructs that are dubious or nonportable to other awk implementations ... Some warnings are issued when gawk first reads your program. Others are issued at runtime, as your program executes." I've never used it, so I'm not sure the range of warnings it generates. Given that some of its checks are done at runtime, I suspect you have to be careful if you want to only use it as a static linter ahead-of-time.
- nequo 4y agoThis demo written in awk and linked in the article is very impressive: https://youtu.be/j5aEjfBSQRI https://youtu.be/j5aEjfBSQRI