Skip to content

dev/sg: add mechanism for testing linters that operate on repo.State

Warren Gifford requested to merge lint-runner-testing into main

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

Merge request reports

Loading