Skip to content

Commit

Permalink
Feat: Change metadatavalid default severity (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
oshirohugo authored Nov 7, 2024
1 parent 882de9a commit 32dae9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/analysis/passes/metadatavalid/metadatavalid.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

var (
invalidMetadata = &analysis.Rule{Name: "invalid-metadata", Severity: analysis.Warning}
invalidMetadata = &analysis.Rule{Name: "invalid-metadata", Severity: analysis.Error}
metadataNotFound = &analysis.Rule{Name: "metadata-not-found", Severity: analysis.Error}
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/plugincheck2/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func TestIntegration(t *testing.T) {
},
"metadatavalid": {
{
Severity: "warning",
Severity: "error",
Title: "plugin.json: dependencies: grafanaDependency is required",
Detail: "The plugin.json file is not following the schema. Please refer to the documentation for more information. https://grafana.com/docs/grafana/latest/developers/plugins/metadata/",
Name: "invalid-metadata",
Expand Down Expand Up @@ -222,7 +222,7 @@ func TestIntegration(t *testing.T) {
PluginValidator: map[string][]Issue{
"metadatavalid": {
{
Severity: "warning",
Severity: "error",
Title: "plugin.json: dependencies: grafanaDependency is required",
Detail: "The plugin.json file is not following the schema. Please refer to the documentation for more information. https://grafana.com/docs/grafana/latest/developers/plugins/metadata/",
Name: "invalid-metadata",
Expand Down

0 comments on commit 32dae9d

Please sign in to comment.