You don’t always need to use codegen (or custom lints) in your apps or packages.

Just write a test.

For example, I have a Codepage437Icons class, where I need to (manually) include a string-based representation of the icons, so I wrote a test to check I don’t forget any!