dev/sg: add mechanism for testing linters that operate on repo.State
Created by: bobheadxi
lint.Runer
can now be tested by providing a mock state with repo.NewMockState()
. To demo, add a test for https://github.com/sourcegraph/sourcegraph/pull/35815
Test plan
Tests pass