Skip to content

lint: Add lint for incorrect Go compiler directives.

Warren Gifford requested to merge vg/lint-go-directive into main

Created by: varungandhi-src

@jhchabran pointed out in the lang-go Slack channel today: (Slack link)

Need a linter for those // go:embed ... directives that are silently ignored :oldmanyellsatcloud:. Damn space before in between the // and go:embed ... every damn time, I forget it 🤦

As a great man once said, don't let your dreams be dreams.

Test plan

Manually ran the lint. It doesn't fail right now, but it flags errors if you remove the space from the regex.

Merge request reports

Loading