
Zig Programming Language & Linters • Andrew Kelley & Jeroen Engels
GOTO - The Brightest Minds in Tech
00:00
How to Disable a Linter With a Disable Comment
The length is... We want to report any fields usage of a potentially null value. So you would need to assert that it's not null and that assertion would make the Linter error go away. You've already showed that in this case it could be disabled not with a comment but with an assert. And that doesn't count as a disable comment, right? No. That is you pushing towards better code or code that reads more like what you want. I wouldn't say never. But it should be very rare. Very rare.
Transcript
Play full episode