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 ed89c1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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 ed89c1f

Please sign in to comment.