Skip to content

dev/sg: add 'sg lint -fast-fail', default '-ff=true'

Administrator requested to merge runner-fast-fail into main

Created by: bobheadxi

Following some feedback, this adds a -fast-fail flag to sg lint, defaulting to true, so that linters error out fast locally. In CI we set this to false so that all linters run to completion.

Found this branch from a hack session with @burmudar a while ago, decided to finish it up :)

Test plan

add a litner failure somewhere, and try:

go run ./dev/sg lint -ff=false
go run ./dev/sg lint # equivalent to '-ff=true'

Merge request reports

Loading