dev/sg: enforce args on lint
Created by: bobheadxi
sg lint [target]
commands don't use args, and neither does sg lint
, so we just enforce it by adding validation to provide helpful messages (right now commands like sg lint docker go
run but the additional arg doesn't do anything) and simplify runCheckScriptsAndReport
.
linters should use flags exclusively to accept options in lint.Target
Test plan
sg update -local
sg lint ...