feat: deprecate github-actions format (#4726)
This commit is contained in:
parent
4f5251d3c8
commit
867adaf996
@ -350,6 +350,13 @@ func (l *Loader) handleDeprecation() error {
|
||||
l.cfg.Output.Formats = f
|
||||
}
|
||||
|
||||
for _, format := range l.cfg.Output.Formats {
|
||||
if format.Format == OutFormatGithubActions {
|
||||
l.log.Warnf("The output format `%s` is deprecated, please use `%s`", OutFormatGithubActions, OutFormatColoredLineNumber)
|
||||
break // To avoid repeating the message if there are several usages of github-actions format.
|
||||
}
|
||||
}
|
||||
|
||||
l.handleLinterOptionDeprecations()
|
||||
|
||||
return nil
|
||||
|
@ -17,7 +17,7 @@ const (
|
||||
OutFormatCodeClimate = "code-climate"
|
||||
OutFormatHTML = "html"
|
||||
OutFormatJunitXML = "junit-xml"
|
||||
OutFormatGithubActions = "github-actions"
|
||||
OutFormatGithubActions = "github-actions" // Deprecated
|
||||
OutFormatTeamCity = "teamcity"
|
||||
OutFormatSarif = "sarif"
|
||||
)
|
||||
|
@ -15,6 +15,7 @@ type GitHubAction struct {
|
||||
}
|
||||
|
||||
// NewGitHubAction output format outputs issues according to GitHub actions.
|
||||
// Deprecated
|
||||
func NewGitHubAction(w io.Writer) *GitHubAction {
|
||||
return &GitHubAction{w: w}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user