Skip to content

Commit

Permalink
Recommendation message for node color change
Browse files Browse the repository at this point in the history
  • Loading branch information
msingh-developer committed Nov 18, 2024
1 parent 421dbeb commit 1b71239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"description": "All success/error JSON nodes should proper colors",
"message": "Incorrect node color [%] - %",
"type": "best-practice",
"recommendation": "The [%] - % is not using the correct color. To ensure consistency, use the recommended color: [%].",
"recommendation": "The <%> is not using the correct color. To ensure consistency, use the recommended color: [%].",
"code": "dv-bp-node-002"
},
"dv-bp-node-003": {
Expand Down
4 changes: 2 additions & 2 deletions rules/dv-rule-node-001/NodeRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class NodeRule extends LintRule {
description: "All success/error JSON nodes should proper colors",
message: "Incorrect node color [%] - %",
type: "best-practice",
recommendation: "The [%] - % is not using the correct color. To ensure consistency, use the recommended color: [%].",
recommendation: "The <%> is not using the correct color. To ensure consistency, use the recommended color: [%].",
});
this.addCode("dv-bp-node-003", {
description: "All nodes should have a description",
Expand Down Expand Up @@ -95,7 +95,7 @@ class NodeRule extends LintRule {
data.properties?.backgroundColor?.value.toLowerCase(),
`${data.name} (${data.id}) - ${data.capabilityName}`,
],
recommendationArgs: [backgroundColor[connectorCapability], `${data.name} (${data.id}) - ${data.capabilityName}`],
recommendationArgs: [`${data.name} (${data.id}) - ${data.capabilityName}`, backgroundColor[connectorCapability]],
nodeId: data.id,
});
}
Expand Down

0 comments on commit 1b71239

Please sign in to comment.