Skip to content

Commit

Permalink
Reduce severity level to Warning for some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 22, 2024
1 parent a8be7c4 commit f1222f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/tests/e2e/suite/extension.ga.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ suite("Native (JSON) Workflows", () => {
{
message: "The workflow does not specify a creator.",
range: new vscode.Range(new vscode.Position(0, 0), new vscode.Position(0, 1)),
severity: vscode.DiagnosticSeverity.Error,
severity: vscode.DiagnosticSeverity.Warning,
},
{
message: "The workflow does not specify a license.",
range: new vscode.Range(new vscode.Position(0, 0), new vscode.Position(0, 1)),
severity: vscode.DiagnosticSeverity.Error,
severity: vscode.DiagnosticSeverity.Warning,
},
{
message: "Missing label in workflow output.",
Expand Down
2 changes: 1 addition & 1 deletion server/gx-workflow-ls-format2/src/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class GxFormat2IWCValidationProfile extends IWCCommonValidationProfile {
new RequiredPropertyValidationRule(
"doc",
true,
DiagnosticSeverity.Error,
DiagnosticSeverity.Warning,
"The workflow is not documented. Documenting workflows helps users understand the purpose of the workflow."
),
new InputTypeValidationRule(DiagnosticSeverity.Error),
Expand Down
2 changes: 1 addition & 1 deletion server/gx-workflow-ls-native/src/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class NativeIWCValidationProfile extends IWCCommonValidationProfile {
new RequiredPropertyValidationRule(
"annotation",
true,
DiagnosticSeverity.Error,
DiagnosticSeverity.Warning,
"The workflow is not annotated. Annotating workflows helps users understand the purpose of the workflow."
),
new WorkflowOutputLabelValidationRule(DiagnosticSeverity.Error),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ export class IWCCommonValidationProfile implements ValidationProfile {
new RequiredPropertyValidationRule(
"creator",
true,
DiagnosticSeverity.Error,
DiagnosticSeverity.Warning,
"The workflow does not specify a creator."
),
new RequiredPropertyValidationRule(
"license",
true,
DiagnosticSeverity.Error,
DiagnosticSeverity.Warning,
"The workflow does not specify a license."
),
// Add more common rules here...
Expand Down

0 comments on commit f1222f4

Please sign in to comment.