
Zig Programming Language & Linters • Andrew Kelley & Jeroen Engels
GOTO - The Brightest Minds in Tech
00:00
Errors Versus Warnings
Some linters allow you to specify for each rule how you want them to influence the exit code of the linter. And as I said during talk, that doesn't really make much sense because you're trying to enforce a rule without trying to enforce it. You lose that kind of guarantee or you have to execute the preprocessor and then assume that one set of defines is true. But maybe if your build system changes the option, then this other if-def defines it the other way. Then you try to do a refactoring tool, but then it's wrong for all the places where the other definition would be activated. Yeah. You can't solve the problem.
Transcript
Play full episode