mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-07-28 06:59:10 -04:00
dev: support build tags about go version in linter tests (#2744)
This commit is contained in:
parent
a2e6c7674d
commit
13c4726760
3 changed files with 89 additions and 8 deletions
test
|
@ -49,6 +49,11 @@ func TestFix(t *testing.T) {
|
|||
input,
|
||||
}
|
||||
rc := extractRunContextFromComments(t, input)
|
||||
if rc == nil {
|
||||
t.Logf("Skipped: %s", input)
|
||||
return
|
||||
}
|
||||
|
||||
args = append(args, rc.args...)
|
||||
|
||||
cfg, err := yaml.Marshal(rc.config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue