Skip to content

dev/sg: allow providing list of lints to run

Warren Gifford requested to merge sg-lint-varargs into main

Created by: bobheadxi

Allow sg lint [lint] [lint] [lint] - will be useful for https://github.com/sourcegraph/sourcegraph/issues/33363

Test plan

Tab on first arg for full autocompletions:

Screenshot 2022-05-09 at 4 54 37 PM

Tab on second to continuously get autocompletions for other available checks:

Screenshot 2022-05-09 at 4 54 43 PM

Specify exactly the lint targets you want to run:

Screenshot 2022-05-09 at 4 54 50 PM

Default behaviour is still to run all:

Screenshot 2022-05-09 at 4 55 16 PM

Merge request reports

Loading