fix(self-check): fail to fix

This commit is contained in:
Jacky 2025-05-03 07:56:10 +08:00
parent cf531e3f09
commit 1c282a57ad
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
3 changed files with 4 additions and 1 deletions

View file

@ -30,7 +30,8 @@
"golang.go", "golang.go",
"vue.volar", "vue.volar",
"ms-azuretools.vscode-docker", "ms-azuretools.vscode-docker",
"akino.i18n-gettext" "akino.i18n-gettext",
"github.vscode-github-actions"
] ]
} }
}, },

View file

@ -16,6 +16,7 @@ func Run() (reports Reports) {
status = ReportStatusError status = ReportStatusError
} }
reports = append(reports, &Report{ reports = append(reports, &Report{
Key: task.Key,
Name: task.Name, Name: task.Name,
Description: task.Description, Description: task.Description,
Fixable: task.FixFunc != nil, Fixable: task.FixFunc != nil,

View file

@ -24,6 +24,7 @@ const (
) )
type Report struct { type Report struct {
Key string `json:"key"`
Name *translation.Container `json:"name"` Name *translation.Container `json:"name"`
Description *translation.Container `json:"description,omitempty"` Description *translation.Container `json:"description,omitempty"`
Fixable bool `json:"fixable"` Fixable bool `json:"fixable"`