Skip to content

dev/sg: enforce args on lint

Warren Gifford requested to merge sg-lint-no-args into main

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 ...

Merge request reports

Loading