sg: un-revert redesigned checks functionality after fixing wrong checks name and err handler
Created by: mrnugget
This restores #31055 after the revert in #31102.
See a0c21370a635635cbd82df6f12fc9e5ee053969d for what the problem was: in the original code I managed to mess up an if err != nil { return err }
and a checkname in sg.config.yaml
was wrong.
Test plan
-
go run . start enterprise-codeintel
in./dev/sg
-
go run . doctor
in./dev/sg