Skip to content

[hackaton] Go code checkers as template insights, linking to suggested batch changes

Warren Gifford requested to merge mm/add-go-checker-insights into main

Created by: malomarrec

Track and fix bad go code patterns, in a few clicks!

This PR:

  • Adds templates from comby/co-patterns as default Code Insights.
  • Adds template batch changes, that can be opened in a few clicks from the insight to fix the bad code patterm
Screenshot 2022-03-31 at 18 36 00

go-fix

Credits: I stole the batch change URL query parser from @eseliger @vrto Thanks @vovakulikov for your time. I didn't go as deep as I wanted to integrate this cleanly using the Code Insights frontend, but thanks for explaining it.

App preview:

Moving this to production

See https://github.com/sourcegraph/sourcegraph/issues/33801

Test plan

Tested this workflow locally and verified without the feature flag nothing shows up. This is meant for demoing purposes mostly, so it's safe as long as the feature flag works properly.

Closes https://github.com/sourcegraph/sourcegraph/issues/33801

Merge request reports

Loading