diff --git a/src/lib/writer-json-sarif.cc b/src/lib/writer-json-sarif.cc index 0ee06fdf..c53989a7 100644 --- a/src/lib/writer-json-sarif.cc +++ b/src/lib/writer-json-sarif.cc @@ -109,6 +109,12 @@ static void sarifEncodeShellCheckRule(object *rule, const std::string &ruleID) // name rule->emplace("name", ruleID); + // shortDescription + object shortDesc = { + { "text", ruleID } + }; + rule->emplace("shortDescription", std::move(shortDesc)); + // properties.tags[] array tags = { "ShellCheck" }; object &props = rule->at("properties").as_object(); @@ -117,13 +123,20 @@ static void sarifEncodeShellCheckRule(object *rule, const std::string &ruleID) // help.text && help.markdown auto helpURI = "https://github.com/koalaman/shellcheck/wiki/" + ruleID; auto helpMarkdown = "Defect reference: [" + ruleID +"](" + helpURI + ")"; + auto helpText = "Defect reference: " + std::move(helpURI); object help = { - { "text", "Defect reference: " + helpURI }, + { "text", helpText }, { "markdown", std::move(helpMarkdown) } }; rule->emplace("help", std::move(help)); + + // fullDescription + object fullDesc = { + { "text", std::move(helpText) } + }; + rule->emplace("fullDescription", std::move(fullDesc)); } static void sarifEncodeCweRule(object *rule, const int cwe, bool append = false) @@ -192,7 +205,7 @@ static void sarifEncodeMsg(object *pDst, const std::string& text) { "text", sanitizeUTF8(text) } }; - pDst->emplace("message", std::move(message) ); + pDst->emplace("message", std::move(message)); } static void sarifEncodeLevel(object *result, const std::string &event) diff --git a/tests/csgrep/0096-sarif-levels-stdout.txt b/tests/csgrep/0096-sarif-levels-stdout.txt index 0fcc7404..ef7fd24f 100644 --- a/tests/csgrep/0096-sarif-levels-stdout.txt +++ b/tests/csgrep/0096-sarif-levels-stdout.txt @@ -17,9 +17,15 @@ ] }, "name": "SC1035", + "shortDescription": { + "text": "SC1035" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1035", "markdown": "Defect reference: [SC1035](https://github.com/koalaman/shellcheck/wiki/SC1035)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1035" } }, { @@ -30,9 +36,15 @@ ] }, "name": "SC2068", + "shortDescription": { + "text": "SC2068" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2068", "markdown": "Defect reference: [SC2068](https://github.com/koalaman/shellcheck/wiki/SC2068)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2068" } }, { @@ -43,9 +55,15 @@ ] }, "name": "SC1091", + "shortDescription": { + "text": "SC1091" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1091", "markdown": "Defect reference: [SC1091](https://github.com/koalaman/shellcheck/wiki/SC1091)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1091" } }, { @@ -56,9 +74,15 @@ ] }, "name": "SC2006", + "shortDescription": { + "text": "SC2006" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2006", "markdown": "Defect reference: [SC2006](https://github.com/koalaman/shellcheck/wiki/SC2006)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2006" } }, { @@ -69,9 +93,15 @@ ] }, "name": "SC2012", + "shortDescription": { + "text": "SC2012" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2012", "markdown": "Defect reference: [SC2012](https://github.com/koalaman/shellcheck/wiki/SC2012)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2012" } }, { @@ -82,9 +112,15 @@ ] }, "name": "SC2016", + "shortDescription": { + "text": "SC2016" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2016", "markdown": "Defect reference: [SC2016](https://github.com/koalaman/shellcheck/wiki/SC2016)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2016" } }, { @@ -95,9 +131,15 @@ ] }, "name": "SC2086", + "shortDescription": { + "text": "SC2086" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2086", "markdown": "Defect reference: [SC2086](https://github.com/koalaman/shellcheck/wiki/SC2086)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2086" } }, { @@ -108,9 +150,15 @@ ] }, "name": "SC2162", + "shortDescription": { + "text": "SC2162" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2162", "markdown": "Defect reference: [SC2162](https://github.com/koalaman/shellcheck/wiki/SC2162)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2162" } }, { @@ -121,9 +169,15 @@ ] }, "name": "SC2181", + "shortDescription": { + "text": "SC2181" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2181", "markdown": "Defect reference: [SC2181](https://github.com/koalaman/shellcheck/wiki/SC2181)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2181" } }, { @@ -134,9 +188,15 @@ ] }, "name": "SC2268", + "shortDescription": { + "text": "SC2268" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2268", "markdown": "Defect reference: [SC2268](https://github.com/koalaman/shellcheck/wiki/SC2268)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2268" } }, { @@ -147,9 +207,15 @@ ] }, "name": "SC1090", + "shortDescription": { + "text": "SC1090" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1090", "markdown": "Defect reference: [SC1090](https://github.com/koalaman/shellcheck/wiki/SC1090)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1090" } }, { @@ -160,9 +226,15 @@ ] }, "name": "SC2034", + "shortDescription": { + "text": "SC2034" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2034", "markdown": "Defect reference: [SC2034](https://github.com/koalaman/shellcheck/wiki/SC2034)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2034" } }, { @@ -173,9 +245,15 @@ ] }, "name": "SC2046", + "shortDescription": { + "text": "SC2046" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2046", "markdown": "Defect reference: [SC2046](https://github.com/koalaman/shellcheck/wiki/SC2046)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2046" } }, { @@ -186,9 +264,15 @@ ] }, "name": "SC2076", + "shortDescription": { + "text": "SC2076" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2076", "markdown": "Defect reference: [SC2076](https://github.com/koalaman/shellcheck/wiki/SC2076)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2076" } }, { @@ -199,9 +283,15 @@ ] }, "name": "SC2089", + "shortDescription": { + "text": "SC2089" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2089", "markdown": "Defect reference: [SC2089](https://github.com/koalaman/shellcheck/wiki/SC2089)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2089" } }, { @@ -212,9 +302,15 @@ ] }, "name": "SC2090", + "shortDescription": { + "text": "SC2090" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2090", "markdown": "Defect reference: [SC2090](https://github.com/koalaman/shellcheck/wiki/SC2090)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2090" } }, { @@ -225,9 +321,15 @@ ] }, "name": "SC2091", + "shortDescription": { + "text": "SC2091" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2091", "markdown": "Defect reference: [SC2091](https://github.com/koalaman/shellcheck/wiki/SC2091)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2091" } }, { @@ -238,9 +340,15 @@ ] }, "name": "SC2124", + "shortDescription": { + "text": "SC2124" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2124", "markdown": "Defect reference: [SC2124](https://github.com/koalaman/shellcheck/wiki/SC2124)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2124" } }, { @@ -251,9 +359,15 @@ ] }, "name": "SC2128", + "shortDescription": { + "text": "SC2128" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2128", "markdown": "Defect reference: [SC2128](https://github.com/koalaman/shellcheck/wiki/SC2128)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2128" } }, { @@ -264,9 +378,15 @@ ] }, "name": "SC2155", + "shortDescription": { + "text": "SC2155" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2155", "markdown": "Defect reference: [SC2155](https://github.com/koalaman/shellcheck/wiki/SC2155)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2155" } }, { @@ -277,9 +397,15 @@ ] }, "name": "SC2164", + "shortDescription": { + "text": "SC2164" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2164", "markdown": "Defect reference: [SC2164](https://github.com/koalaman/shellcheck/wiki/SC2164)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2164" } }, { @@ -290,9 +416,15 @@ ] }, "name": "SC2166", + "shortDescription": { + "text": "SC2166" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2166", "markdown": "Defect reference: [SC2166](https://github.com/koalaman/shellcheck/wiki/SC2166)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2166" } }, { @@ -303,9 +435,15 @@ ] }, "name": "SC2174", + "shortDescription": { + "text": "SC2174" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2174", "markdown": "Defect reference: [SC2174](https://github.com/koalaman/shellcheck/wiki/SC2174)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2174" } }, { @@ -316,9 +454,15 @@ ] }, "name": "SC2178", + "shortDescription": { + "text": "SC2178" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2178", "markdown": "Defect reference: [SC2178](https://github.com/koalaman/shellcheck/wiki/SC2178)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2178" } }, { @@ -329,9 +473,15 @@ ] }, "name": "SC2206", + "shortDescription": { + "text": "SC2206" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2206", "markdown": "Defect reference: [SC2206](https://github.com/koalaman/shellcheck/wiki/SC2206)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2206" } }, { @@ -342,9 +492,15 @@ ] }, "name": "SC2207", + "shortDescription": { + "text": "SC2207" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2207", "markdown": "Defect reference: [SC2207](https://github.com/koalaman/shellcheck/wiki/SC2207)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2207" } }, { @@ -355,9 +511,15 @@ ] }, "name": "SC2209", + "shortDescription": { + "text": "SC2209" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2209", "markdown": "Defect reference: [SC2209](https://github.com/koalaman/shellcheck/wiki/SC2209)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2209" } }, { @@ -368,9 +530,15 @@ ] }, "name": "SC3045", + "shortDescription": { + "text": "SC3045" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC3045", "markdown": "Defect reference: [SC3045](https://github.com/koalaman/shellcheck/wiki/SC3045)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC3045" } } ] diff --git a/tests/csgrep/0097-sarif-set-tool-stdout.txt b/tests/csgrep/0097-sarif-set-tool-stdout.txt index 42daafb1..7030415e 100644 --- a/tests/csgrep/0097-sarif-set-tool-stdout.txt +++ b/tests/csgrep/0097-sarif-set-tool-stdout.txt @@ -26,9 +26,15 @@ ] }, "name": "SC2164", + "shortDescription": { + "text": "SC2164" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2164", "markdown": "Defect reference: [SC2164](https://github.com/koalaman/shellcheck/wiki/SC2164)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2164" } }, { @@ -39,9 +45,15 @@ ] }, "name": "SC2174", + "shortDescription": { + "text": "SC2174" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2174", "markdown": "Defect reference: [SC2174](https://github.com/koalaman/shellcheck/wiki/SC2174)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2174" } } ] diff --git a/tests/csgrep/0109-shellcheck-sarif-cwe-stdout.txt b/tests/csgrep/0109-shellcheck-sarif-cwe-stdout.txt index dee642b5..fe90bf9c 100644 --- a/tests/csgrep/0109-shellcheck-sarif-cwe-stdout.txt +++ b/tests/csgrep/0109-shellcheck-sarif-cwe-stdout.txt @@ -20,9 +20,15 @@ ] }, "name": "SC1035", + "shortDescription": { + "text": "SC1035" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1035\nhttps://cwe.mitre.org/data/definitions/569.html", "markdown": "Defect reference: [SC1035](https://github.com/koalaman/shellcheck/wiki/SC1035)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1035" } }, { @@ -36,9 +42,15 @@ ] }, "name": "SC2068", + "shortDescription": { + "text": "SC2068" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2068\nhttps://cwe.mitre.org/data/definitions/88.html", "markdown": "Defect reference: [SC2068](https://github.com/koalaman/shellcheck/wiki/SC2068)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2068" } }, { @@ -49,9 +61,15 @@ ] }, "name": "SC1091", + "shortDescription": { + "text": "SC1091" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1091", "markdown": "Defect reference: [SC1091](https://github.com/koalaman/shellcheck/wiki/SC1091)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1091" } }, { @@ -62,9 +80,15 @@ ] }, "name": "SC2006", + "shortDescription": { + "text": "SC2006" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2006", "markdown": "Defect reference: [SC2006](https://github.com/koalaman/shellcheck/wiki/SC2006)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2006" } }, { @@ -75,9 +99,15 @@ ] }, "name": "SC2012", + "shortDescription": { + "text": "SC2012" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2012", "markdown": "Defect reference: [SC2012](https://github.com/koalaman/shellcheck/wiki/SC2012)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2012" } }, { @@ -88,9 +118,15 @@ ] }, "name": "SC2016", + "shortDescription": { + "text": "SC2016" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2016", "markdown": "Defect reference: [SC2016](https://github.com/koalaman/shellcheck/wiki/SC2016)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2016" } }, { @@ -101,9 +137,15 @@ ] }, "name": "SC2086", + "shortDescription": { + "text": "SC2086" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2086", "markdown": "Defect reference: [SC2086](https://github.com/koalaman/shellcheck/wiki/SC2086)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2086" } }, { @@ -114,9 +156,15 @@ ] }, "name": "SC2162", + "shortDescription": { + "text": "SC2162" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2162", "markdown": "Defect reference: [SC2162](https://github.com/koalaman/shellcheck/wiki/SC2162)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2162" } }, { @@ -127,9 +175,15 @@ ] }, "name": "SC2181", + "shortDescription": { + "text": "SC2181" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2181", "markdown": "Defect reference: [SC2181](https://github.com/koalaman/shellcheck/wiki/SC2181)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2181" } }, { @@ -140,9 +194,15 @@ ] }, "name": "SC2268", + "shortDescription": { + "text": "SC2268" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2268", "markdown": "Defect reference: [SC2268](https://github.com/koalaman/shellcheck/wiki/SC2268)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2268" } }, { @@ -156,9 +216,15 @@ ] }, "name": "SC1090", + "shortDescription": { + "text": "SC1090" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1090\nhttps://cwe.mitre.org/data/definitions/398.html", "markdown": "Defect reference: [SC1090](https://github.com/koalaman/shellcheck/wiki/SC1090)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC1090" } }, { @@ -172,9 +238,15 @@ ] }, "name": "SC2034", + "shortDescription": { + "text": "SC2034" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2034\nhttps://cwe.mitre.org/data/definitions/563.html", "markdown": "Defect reference: [SC2034](https://github.com/koalaman/shellcheck/wiki/SC2034)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2034" } }, { @@ -188,9 +260,15 @@ ] }, "name": "SC2046", + "shortDescription": { + "text": "SC2046" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2046\nhttps://cwe.mitre.org/data/definitions/156.html", "markdown": "Defect reference: [SC2046](https://github.com/koalaman/shellcheck/wiki/SC2046)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2046" } }, { @@ -201,9 +279,15 @@ ] }, "name": "SC2076", + "shortDescription": { + "text": "SC2076" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2076", "markdown": "Defect reference: [SC2076](https://github.com/koalaman/shellcheck/wiki/SC2076)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2076" } }, { @@ -217,9 +301,15 @@ ] }, "name": "SC2089", + "shortDescription": { + "text": "SC2089" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2089\nhttps://cwe.mitre.org/data/definitions/569.html", "markdown": "Defect reference: [SC2089](https://github.com/koalaman/shellcheck/wiki/SC2089)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2089" } }, { @@ -233,9 +323,15 @@ ] }, "name": "SC2090", + "shortDescription": { + "text": "SC2090" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2090\nhttps://cwe.mitre.org/data/definitions/569.html", "markdown": "Defect reference: [SC2090](https://github.com/koalaman/shellcheck/wiki/SC2090)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2090" } }, { @@ -249,9 +345,15 @@ ] }, "name": "SC2091", + "shortDescription": { + "text": "SC2091" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2091\nhttps://cwe.mitre.org/data/definitions/829.html", "markdown": "Defect reference: [SC2091](https://github.com/koalaman/shellcheck/wiki/SC2091)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2091" } }, { @@ -265,9 +367,15 @@ ] }, "name": "SC2124", + "shortDescription": { + "text": "SC2124" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2124\nhttps://cwe.mitre.org/data/definitions/569.html", "markdown": "Defect reference: [SC2124](https://github.com/koalaman/shellcheck/wiki/SC2124)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2124" } }, { @@ -281,9 +389,15 @@ ] }, "name": "SC2128", + "shortDescription": { + "text": "SC2128" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2128\nhttps://cwe.mitre.org/data/definitions/670.html", "markdown": "Defect reference: [SC2128](https://github.com/koalaman/shellcheck/wiki/SC2128)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2128" } }, { @@ -297,9 +411,15 @@ ] }, "name": "SC2155", + "shortDescription": { + "text": "SC2155" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2155\nhttps://cwe.mitre.org/data/definitions/571.html", "markdown": "Defect reference: [SC2155](https://github.com/koalaman/shellcheck/wiki/SC2155)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2155" } }, { @@ -313,9 +433,15 @@ ] }, "name": "SC2164", + "shortDescription": { + "text": "SC2164" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2164\nhttps://cwe.mitre.org/data/definitions/252.html", "markdown": "Defect reference: [SC2164](https://github.com/koalaman/shellcheck/wiki/SC2164)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2164" } }, { @@ -329,9 +455,15 @@ ] }, "name": "SC2166", + "shortDescription": { + "text": "SC2166" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2166\nhttps://cwe.mitre.org/data/definitions/477.html", "markdown": "Defect reference: [SC2166](https://github.com/koalaman/shellcheck/wiki/SC2166)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2166" } }, { @@ -345,9 +477,15 @@ ] }, "name": "SC2174", + "shortDescription": { + "text": "SC2174" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2174\nhttps://cwe.mitre.org/data/definitions/277.html", "markdown": "Defect reference: [SC2174](https://github.com/koalaman/shellcheck/wiki/SC2174)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2174" } }, { @@ -361,9 +499,15 @@ ] }, "name": "SC2178", + "shortDescription": { + "text": "SC2178" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2178\nhttps://cwe.mitre.org/data/definitions/398.html", "markdown": "Defect reference: [SC2178](https://github.com/koalaman/shellcheck/wiki/SC2178)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2178" } }, { @@ -377,9 +521,15 @@ ] }, "name": "SC2206", + "shortDescription": { + "text": "SC2206" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2206\nhttps://cwe.mitre.org/data/definitions/140.html", "markdown": "Defect reference: [SC2206](https://github.com/koalaman/shellcheck/wiki/SC2206)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2206" } }, { @@ -393,9 +543,15 @@ ] }, "name": "SC2207", + "shortDescription": { + "text": "SC2207" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2207\nhttps://cwe.mitre.org/data/definitions/140.html", "markdown": "Defect reference: [SC2207](https://github.com/koalaman/shellcheck/wiki/SC2207)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2207" } }, { @@ -409,9 +565,15 @@ ] }, "name": "SC2209", + "shortDescription": { + "text": "SC2209" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2209\nhttps://cwe.mitre.org/data/definitions/456.html", "markdown": "Defect reference: [SC2209](https://github.com/koalaman/shellcheck/wiki/SC2209)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC2209" } }, { @@ -422,9 +584,15 @@ ] }, "name": "SC3045", + "shortDescription": { + "text": "SC3045" + }, "help": { "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC3045", "markdown": "Defect reference: [SC3045](https://github.com/koalaman/shellcheck/wiki/SC3045)" + }, + "fullDescription": { + "text": "Defect reference: https://github.com/koalaman/shellcheck/wiki/SC3045" } } ]