Open sneak opened 1 year ago
Oh that's neat! I actually think we should lint these files? If that's the only issue reported, that's an easy fix.
Longer-term we'd want lints to be run on the generated test code, so it'd block a release. For now, I'd suggest fixing that one case, then keeping an eye on it. If it becomes more unwieldy, I'm also open to //nolint
comments, but I do want the generated code to be as good as possible.
As part of CI I run a linting of my repository. I suggest adding the line
//nolint
at the top of the template forbud/internal/app/main.go
, as well as any other bud-managed template boilerplate files. This way any linters people use will ignore these files (without having to do special configuration to exclude thebud
directory like is already automagically done in the.gitignore
.)