Skip to content

Commit 22c1925

Browse files
committed
feat: deprecate github-actions format
1 parent 8c4cfb6 commit 22c1925

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/config/loader.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,13 @@ func (l *Loader) handleDeprecation() error {
350350
l.cfg.Output.Formats = f
351351
}
352352

353+
for _, format := range l.cfg.Output.Formats {
354+
if format.Format == OutFormatGithubActions {
355+
l.log.Warnf("The output format `%s` is deprecated, please use `%s`", OutFormatGithubActions, OutFormatColoredLineNumber)
356+
break // To avoid repeating the message if there are several usages of github-actions format.
357+
}
358+
}
359+
353360
l.handleLinterOptionDeprecations()
354361

355362
return nil

0 commit comments

Comments
 (0)