From 042ae44682a8a6c5037d920689124e2304056dd8 Mon Sep 17 00:00:00 2001 From: Raphael LANG Date: Wed, 18 Nov 2020 15:55:20 -0500 Subject: [PATCH] Docs: Fix JS syntax and doc URL in working-with-custom-formatters.md (#13828) * Docs: Fix JS syntax in working-with-custom-formatters.md code sample Missing parenthesis on ruleUrl causing syntax error in detailed formatter * Docs: Fix ruleUrl in working-with-custom-formatters.md code sample ruleUrl needs to get URL from the docs object --- docs/developer-guide/working-with-custom-formatters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/working-with-custom-formatters.md b/docs/developer-guide/working-with-custom-formatters.md index 7efed419335..a5e9ade81bf 100644 --- a/docs/developer-guide/working-with-custom-formatters.md +++ b/docs/developer-guide/working-with-custom-formatters.md @@ -195,7 +195,7 @@ module.exports = function(results, data) { var logMessage = { filePath: current.filePath, ruleId: msg.ruleId, - ruleUrl: data.rulesMeta[msg.ruleId].url, + ruleUrl: data.rulesMeta[msg.ruleId].docs.url, message: msg.message, line: msg.line, column: msg.column @@ -226,7 +226,7 @@ module.exports = function(results, data) { "\n" + msg.type + " " + - msg.ruleId + (msg.ruleUrl ? " (" + msg.ruleUrl + ")" : "" + msg.ruleId + (msg.ruleUrl ? " (" + msg.ruleUrl + ")" : "") + "\n " + msg.filePath + ":" +