diff --git a/src/json-writer.cc b/src/json-writer.cc index 48fa9fbe..575174ff 100644 --- a/src/json-writer.cc +++ b/src/json-writer.cc @@ -214,6 +214,24 @@ static void sarifEncodeMsg(PTree *pDst, const std::string& text) pDst->put_child("message", msg); } +static void sarifEncodeLevel(PTree *result, const std::string &event) { + std::string level = event; + + // cut the [...] suffix from event if present + size_t pos = event.find('['); + if (std::string::npos != pos) + level = event.substr(0U, pos); + + // go through events that denote warning level + for (const char *str : {"error", "warning", "note"}) { + if (str == level) { + // encode in the output if matched + result->put("level", level); + return; + } + } +} + static void sarifEncodeLoc(PTree *pLoc, const Defect &def, unsigned idx) { // location ID within the result @@ -291,6 +309,9 @@ void SarifTreeEncoder::appendDef(const Defect &def) // update CWE map cweMap_[ruleId] = def.cwe; + // key event severity level + sarifEncodeLevel(&result, keyEvt.event); + // key event location PTree loc; sarifEncodeLoc(&loc, def, def.keyEventIdx); diff --git a/tests/csgrep/80-sarif-writer-stdout.txt b/tests/csgrep/80-sarif-writer-stdout.txt index de976a0a..ea849767 100644 --- a/tests/csgrep/80-sarif-writer-stdout.txt +++ b/tests/csgrep/80-sarif-writer-stdout.txt @@ -20,6 +20,7 @@ "results": [ { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -71,6 +72,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -122,6 +124,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -173,6 +176,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -224,6 +228,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -275,6 +280,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -326,6 +332,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -377,6 +384,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -428,6 +436,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -479,6 +488,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -530,6 +540,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -581,6 +592,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -632,6 +644,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -683,6 +696,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -734,6 +748,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -785,6 +800,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -836,6 +852,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -887,6 +904,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -938,6 +956,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -989,6 +1008,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1040,6 +1060,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1091,6 +1112,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1142,6 +1164,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1193,6 +1216,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1244,6 +1268,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1295,6 +1320,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1346,6 +1372,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1397,6 +1424,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1448,6 +1476,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1499,6 +1528,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1550,6 +1580,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1601,6 +1632,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1652,6 +1684,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1703,6 +1736,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1754,6 +1788,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1805,6 +1840,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1856,6 +1892,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1907,6 +1944,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -1958,6 +1996,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2009,6 +2048,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2060,6 +2100,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2111,6 +2152,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2162,6 +2204,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2213,6 +2256,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2264,6 +2308,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2315,6 +2360,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2366,6 +2412,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2417,6 +2464,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2468,6 +2516,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2519,6 +2568,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2570,6 +2620,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2621,6 +2672,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2672,6 +2724,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2723,6 +2776,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2774,6 +2828,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2825,6 +2880,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2876,6 +2932,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2927,6 +2984,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -2978,6 +3036,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3029,6 +3088,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3080,6 +3140,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3131,6 +3192,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3182,6 +3244,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3233,6 +3296,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3284,6 +3348,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3335,6 +3400,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3386,6 +3452,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3437,6 +3504,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3488,6 +3556,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3539,6 +3608,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3590,6 +3660,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3641,6 +3712,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3692,6 +3764,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3743,6 +3816,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3794,6 +3868,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3845,6 +3920,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3896,6 +3972,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3947,6 +4024,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -3998,6 +4076,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4049,6 +4128,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4100,6 +4180,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4151,6 +4232,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4202,6 +4284,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4253,6 +4336,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4304,6 +4388,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4355,6 +4440,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4406,6 +4492,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4457,6 +4544,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4508,6 +4596,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4559,6 +4648,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4610,6 +4700,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4661,6 +4752,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4712,6 +4804,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4763,6 +4856,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4814,6 +4908,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4865,6 +4960,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4916,6 +5012,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -4967,6 +5064,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5018,6 +5116,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5069,6 +5168,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5120,6 +5220,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5171,6 +5272,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5222,6 +5324,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5273,6 +5376,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5324,6 +5428,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5375,6 +5480,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5426,6 +5532,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5477,6 +5584,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5528,6 +5636,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5579,6 +5688,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5630,6 +5740,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5681,6 +5792,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5732,6 +5844,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5783,6 +5896,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5834,6 +5948,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5885,6 +6000,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5936,6 +6052,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -5987,6 +6104,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6038,6 +6156,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6089,6 +6208,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6140,6 +6260,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6191,6 +6312,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6242,6 +6364,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6293,6 +6416,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6344,6 +6468,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6395,6 +6520,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6446,6 +6572,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6497,6 +6624,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6548,6 +6676,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6599,6 +6728,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6650,6 +6780,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6701,6 +6832,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6752,6 +6884,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6803,6 +6936,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6854,6 +6988,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6905,6 +7040,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -6956,6 +7092,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7007,6 +7144,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7058,6 +7196,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7109,6 +7248,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7160,6 +7300,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7211,6 +7352,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7262,6 +7404,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7313,6 +7456,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7364,6 +7508,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7415,6 +7560,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7466,6 +7612,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7517,6 +7664,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7568,6 +7716,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7619,6 +7768,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7670,6 +7820,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7721,6 +7872,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7772,6 +7924,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7823,6 +7976,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7874,6 +8028,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7925,6 +8080,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -7976,6 +8132,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8027,6 +8184,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8078,6 +8236,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8129,6 +8288,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8180,6 +8340,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8231,6 +8392,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8282,6 +8444,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8333,6 +8496,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8384,6 +8548,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8435,6 +8600,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8486,6 +8652,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8537,6 +8704,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8588,6 +8756,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, @@ -8639,6 +8808,7 @@ }, { "ruleId": "SNYK_CODE_WARNING: warning[cpp/BufferOverflowUnsafeFunction]", + "level": "warning", "locations": [ { "id": 0, diff --git a/tests/csgrep/90-sarif-writer-illegal-utf8-sequence-stdout.txt b/tests/csgrep/90-sarif-writer-illegal-utf8-sequence-stdout.txt index 84215762..e7133986 100644 --- a/tests/csgrep/90-sarif-writer-illegal-utf8-sequence-stdout.txt +++ b/tests/csgrep/90-sarif-writer-illegal-utf8-sequence-stdout.txt @@ -13,6 +13,7 @@ "results": [ { "ruleId": "COMPILER_WARNING: warning", + "level": "warning", "locations": [ { "id": 0, diff --git a/tests/csgrep/96-sarif-levels-args.txt b/tests/csgrep/96-sarif-levels-args.txt new file mode 100644 index 00000000..e9077a27 --- /dev/null +++ b/tests/csgrep/96-sarif-levels-args.txt @@ -0,0 +1 @@ +--mode sarif diff --git a/tests/csgrep/96-sarif-levels-stdin.txt b/tests/csgrep/96-sarif-levels-stdin.txt new file mode 100644 index 00000000..6534ba22 --- /dev/null +++ b/tests/csgrep/96-sarif-levels-stdin.txt @@ -0,0 +1,227 @@ +./contrib/guide/get_started/00-cleanup.sh:6:1: warning: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. [SC2164] +./contrib/guide/get_started/12-datadir-create.sh:4:7: warning: When used with -p, -m only applies to the deepest directory. [SC2174] +./contrib/scripts/resetgnome:14:13: note: Use $(...) notation instead of legacy backticked `...`. [SC2006] +./contrib/scripts/resetgnome:15:25: note: Double quote to prevent globbing and word splitting. [SC2086] +./contrib/scripts/resetgnome:17:10: note: Use $(...) notation instead of legacy backticked `...`. [SC2006] +./contrib/scripts/resetgnome:18:14: note: Double quote to prevent globbing and word splitting. [SC2086] +./contrib/scripts/resetgnome:20:7: note: Double quote to prevent globbing and word splitting. [SC2086] +./contrib/scripts/resetgnome:20:44: note: Double quote to prevent globbing and word splitting. [SC2086] +./contrib/scripts/resetgnome:20:57: note: Double quote to prevent globbing and word splitting. [SC2086] +./contrib/template/.bash_profile:2:25: warning: ShellCheck can't follow non-constant source. Use a directive to specify location. [SC1090] +./contrib/template/.bashrc:21:3: note: Not following: /soft/rko-modules/tcl/init/bash was not specified as input (see shellcheck -x). [SC1091] +./doc/example/compiler-etc-dependencies/example-sessions/bar-defaults.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/bar-loads.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/bar-switch.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh:6:6: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh:11:6: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh:34:7: warning: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. [SC2124] +./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh:45:2: warning: GCCGNU appears unused. Verify use (or export if used externally). [SC2034] +./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh:60:3: warning: AUTOFLAG appears unused. Verify use (or export if used externally). [SC2034] +./doc/example/compiler-etc-dependencies/example-sessions/foo-avail1.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/foo-avail2.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/foo-defaults.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/foo-loads.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/foo-switch.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/modavail.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/modversion.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/ompi-defaults.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/ompi-loads1.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh:3:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431:4:7: warning: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate. [SC2124] +./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431:5:7: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431:5:13: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh:2:8: warning: Declare and assign separately to avoid masking return values. [SC2155] +./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh:2:23: warning: Expanding an array without an index only gives the first element. [SC2128] +./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh:2:23: note: Double quote to prevent globbing and word splitting. [SC2086] +./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh:3:8: warning: Declare and assign separately to avoid masking return values. [SC2155] +./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh:3:23: warning: Expanding an array without an index only gives the first element. [SC2128] +./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh:3:23: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash.in:27:47: warning: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. [SC2166] +./init/bash.in:28:32: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash.in:29:67: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash.in:32:31: warning: Quotes/backslashes will be treated literally. Use an array. [SC2089] +./init/bash.in:32:49: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash.in:41:9: warning: Quotes/backslashes in this variable will not be respected. [SC2090] +./init/bash.in:41:9: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash.in:54:9: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:10:15: error: You are missing a required space here. [SC1035] +./init/bash_completion.in:10:27: warning: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. [SC2166] +./init/bash_completion.in:22:20: warning: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. [SC2166] +./init/bash_completion.in:23:64: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:35:19: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:43:66: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:49:70: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:52:25: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:65:95: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:66:87: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:67:69: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:68:27: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:69:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:70:25: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:72:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:74:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:75:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:76:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:79:87: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:81:89: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:83:86: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:85:98: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:87:88: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:89:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:90:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:94:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:96:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:99:17: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:105:21: warning: Variable was used as an array but is now assigned a string. [SC2178] +./init/bash_completion.in:106:21: warning: Variable was used as an array but is now assigned a string. [SC2178] +./init/bash_completion.in:108:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:109:33: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:116:4: warning: Remove surrounding $() to avoid executing output (or use eval if intentional). [SC2091] +./init/bash_completion.in:118:34: warning: cmds appears unused. Verify use (or export if used externally). [SC2034] +./init/bash_completion.in:118:39: warning: opts appears unused. Verify use (or export if used externally). [SC2034] +./init/bash_completion.in:124:99: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:125:91: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:126:73: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:127:31: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:128:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:129:29: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:131:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:133:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:134:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:135:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:138:91: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:140:93: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:142:90: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:144:102: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:146:92: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:148:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:149:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:153:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:155:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:158:21: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:164:25: warning: Variable was used as an array but is now assigned a string. [SC2178] +./init/bash_completion.in:165:25: warning: Variable was used as an array but is now assigned a string. [SC2178] +./init/bash_completion.in:167:37: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:172:55: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:173:100: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/bash_completion.in:174:55: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/bash_completion.in:179:55: warning: Prefer mapfile or read -a to split command output (or quote to avoid splitting). [SC2207] +./init/ksh.in:27:47: warning: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. [SC2166] +./init/ksh.in:28:32: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/ksh.in:29:67: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/ksh.in:32:31: warning: Quotes/backslashes will be treated literally. Use an array. [SC2089] +./init/ksh.in:32:49: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/ksh.in:41:9: warning: Quotes/backslashes in this variable will not be respected. [SC2090] +./init/ksh.in:41:9: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/ksh.in:54:9: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/profile.sh.in:10:23: warning: Quote this to prevent word splitting. [SC2046] +./init/profile.sh.in:14:6: warning: ShellCheck can't follow non-constant source. Use a directive to specify location. [SC1090] +./init/profile.sh.in:16:6: note: Not following: @initdir@/sh was not specified as input (see shellcheck -x). [SC1091] +./init/sh.in:27:47: warning: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. [SC2166] +./init/sh.in:28:32: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/sh.in:29:67: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/sh.in:32:31: warning: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions. [SC2089] +./init/sh.in:32:49: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/sh.in:41:11: warning: Quotes/backslashes in this variable will not be respected. [SC2090] +./init/sh.in:41:11: note: Double quote to prevent globbing and word splitting. [SC2086] +./init/sh.in:59:14: warning: In POSIX sh, export -f is undefined. [SC3045] +./init/sh.in:60:14: warning: In POSIX sh, export -f is undefined. [SC3045] +./init/sh.in:61:20: warning: In POSIX sh, type -t is undefined. [SC3045] +./init/sh.in:62:17: warning: In POSIX sh, export -f is undefined. [SC3045] +./init/sh.in:71:9: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:22:9: note: Expressions don't expand in single quotes, use double quotes for that. [SC2016] +./script/add.modules.in:34:9: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:39:9: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:61:1: note: read without -r will mangle backslashes. [SC2162] +./script/add.modules.in:63:6: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./script/add.modules.in:63:7: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:73:5: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:73:8: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:84:2: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:84:7: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:89:31: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:94:10: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:100:15: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:100:23: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:100:29: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:102:9: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./script/add.modules.in:102:10: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:107:10: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./script/add.modules.in:107:11: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:109:15: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:110:17: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:118:31: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:120:18: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:124:18: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:127:12: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./script/add.modules.in:127:13: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:129:15: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:130:17: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:137:31: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:139:18: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:143:18: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:147:19: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:147:28: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:147:47: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:148:11: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./script/add.modules.in:148:12: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:153:10: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./script/add.modules.in:153:11: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:155:17: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:164:12: note: Avoid x-prefix in comparisons as it no longer serves a purpose. [SC2268] +./script/add.modules.in:164:13: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:166:17: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:175:19: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:175:28: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:175:47: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:184:11: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:184:14: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:190:1: warning: Use 'cd ... || exit' or 'cd ... || return' in case cd fails. [SC2164] +./script/add.modules.in:190:4: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/add.modules.in:199:7: warning: Quote this to prevent word splitting. [SC2046] +./script/add.modules.in:199:7: note: Use $(...) notation instead of legacy backticked `...`. [SC2006] +./script/add.modules.in:199:17: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/commit-msg:31:12: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/commit-msg:49:6: note: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. [SC2181] +./script/commit-msg:52:39: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/envml:83:15: warning: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. [SC2166] +./script/envml:83:31: warning: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined. [SC2166] +./script/envml:89:12: error: Double quote array expansions to avoid re-splitting elements. [SC2068] +./script/envml:99:56: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/envml:101:59: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/envml:127:17: warning: module appears unused. Verify use (or export if used externally). [SC2034] +./script/envml:132:12: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/mkroot:75:37: warning: Quote this to prevent word splitting. [SC2046] +./script/mkroot:75:37: note: Use $(...) notation instead of legacy backticked `...`. [SC2006] +./script/mkroot:75:38: note: Use find instead of ls to better handle non-alphanumeric filenames. [SC2012] +./script/mkroot:77:38: warning: Quote this to prevent word splitting. [SC2046] +./script/mkroot:77:38: note: Use $(...) notation instead of legacy backticked `...`. [SC2006] +./script/mkroot:77:39: note: Use find instead of ls to better handle non-alphanumeric filenames. [SC2012] +./script/mkroot:88:30: warning: Quote this to prevent word splitting. [SC2046] +./script/mkroot:88:30: note: Use $(...) notation instead of legacy backticked `...`. [SC2006] +./script/mkroot:88:31: note: Use find instead of ls to better handle non-alphanumeric filenames. [SC2012] +./script/mkroot:99:23: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/mkroot:101:30: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/mkroot:104:30: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/mkroot:105:30: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/mt:35:6: note: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. [SC2181] +./script/mt:38:4: warning: Use var=$(command) to assign output (or quote to assign string). [SC2209] +./script/mt:42:1: warning: Use var=$(command) to assign output (or quote to assign string). [SC2209] +./script/mt:63:13: error: Double quote array expansions to avoid re-splitting elements. [SC2068] +./script/mt:63:34: error: Double quote array expansions to avoid re-splitting elements. [SC2068] +./script/mt:70:32: warning: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. [SC2206] +./script/mt:70:43: warning: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. [SC2206] +./script/mt:72:32: warning: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. [SC2206] +./script/mt:72:43: warning: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. [SC2206] +./script/mt:79:15: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/mt:83:45: warning: Remove quotes from right-hand side of =~ to match as a regex rather than literally. [SC2076] +./script/mt:84:26: warning: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a. [SC2206] +./script/pre-commit:31:12: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/pre-commit:45:6: note: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. [SC2181] +./script/pre-commit:47:9: note: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. [SC2181] +./script/pre-commit:56:6: note: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. [SC2181] +./script/pre-commit:61:33: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/pre-commit:62:10: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/pre-commit:65:17: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/pre-commit:65:36: note: Double quote to prevent globbing and word splitting. [SC2086] +./script/pre-commit:80:6: note: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?. [SC2181] diff --git a/tests/csgrep/96-sarif-levels-stdout.txt b/tests/csgrep/96-sarif-levels-stdout.txt new file mode 100644 index 00000000..48f158bf --- /dev/null +++ b/tests/csgrep/96-sarif-levels-stdout.txt @@ -0,0 +1,11821 @@ +{ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json", + "version": "", + "runs": [ + { + "tool": { + "driver": { + "name": "csdiff", + "version": "", + "informationUri": "https://github.com/csutils/csdiff" + } + }, + "results": [ + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2164]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/guide/get_started/00-cleanup.sh" + }, + "region": { + "startLine": 6, + "startColumn": 1 + } + } + } + ], + "message": { + "text": "Use 'cd ... || exit' or 'cd ... || return' in case cd fails." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/guide/get_started/00-cleanup.sh" + }, + "region": { + "startLine": 6, + "startColumn": 1 + } + }, + "message": { + "text": "Use 'cd ... || exit' or 'cd ... || return' in case cd fails." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2164]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2174]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/guide/get_started/12-datadir-create.sh" + }, + "region": { + "startLine": 4, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "When used with -p, -m only applies to the deepest directory." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/guide/get_started/12-datadir-create.sh" + }, + "region": { + "startLine": 4, + "startColumn": 7 + } + }, + "message": { + "text": "When used with -p, -m only applies to the deepest directory." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2174]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2006]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 14, + "startColumn": 13 + } + } + } + ], + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 14, + "startColumn": 13 + } + }, + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2006]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 15, + "startColumn": 25 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 15, + "startColumn": 25 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2006]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 17, + "startColumn": 10 + } + } + } + ], + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 17, + "startColumn": 10 + } + }, + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2006]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 18, + "startColumn": 14 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 18, + "startColumn": 14 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 20, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 20, + "startColumn": 7 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 20, + "startColumn": 44 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 20, + "startColumn": 44 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 20, + "startColumn": 57 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/scripts/resetgnome" + }, + "region": { + "startLine": 20, + "startColumn": 57 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC1090]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/template/.bash_profile" + }, + "region": { + "startLine": 2, + "startColumn": 25 + } + } + } + ], + "message": { + "text": "ShellCheck can't follow non-constant source. Use a directive to specify location." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/template/.bash_profile" + }, + "region": { + "startLine": 2, + "startColumn": 25 + } + }, + "message": { + "text": "ShellCheck can't follow non-constant source. Use a directive to specify location." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC1090]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC1091]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/template/.bashrc" + }, + "region": { + "startLine": 21, + "startColumn": 3 + } + } + } + ], + "message": { + "text": "Not following: /soft/rko-modules/tcl/init/bash was not specified as input (see shellcheck -x)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./contrib/template/.bashrc" + }, + "region": { + "startLine": 21, + "startColumn": 3 + } + }, + "message": { + "text": "Not following: /soft/rko-modules/tcl/init/bash was not specified as input (see shellcheck -x)." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC1091]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/bar-defaults.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/bar-defaults.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/bar-loads.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/bar-loads.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/bar-switch.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/bar-switch.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 6, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 6, + "startColumn": 6 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 11, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 11, + "startColumn": 6 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2124]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 34, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Assigning an array to a string! Assign as array, or use * instead of @ to concatenate." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 34, + "startColumn": 7 + } + }, + "message": { + "text": "Assigning an array to a string! Assign as array, or use * instead of @ to concatenate." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2124]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2034]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 45, + "startColumn": 2 + } + } + } + ], + "message": { + "text": "GCCGNU appears unused. Verify use (or export if used externally)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 45, + "startColumn": 2 + } + }, + "message": { + "text": "GCCGNU appears unused. Verify use (or export if used externally)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2034]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2034]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 60, + "startColumn": 3 + } + } + } + ], + "message": { + "text": "AUTOFLAG appears unused. Verify use (or export if used externally)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/common_code.sh" + }, + "region": { + "startLine": 60, + "startColumn": 3 + } + }, + "message": { + "text": "AUTOFLAG appears unused. Verify use (or export if used externally)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2034]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-avail1.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-avail1.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-avail2.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-avail2.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-defaults.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-defaults.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-loads.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-loads.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-switch.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/foo-switch.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/modavail.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/modavail.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/modversion.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/modversion.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-defaults.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-defaults.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-loads1.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-loads1.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2124]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431" + }, + "region": { + "startLine": 4, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Assigning an array to a string! Assign as array, or use * instead of @ to concatenate." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431" + }, + "region": { + "startLine": 4, + "startColumn": 7 + } + }, + "message": { + "text": "Assigning an array to a string! Assign as array, or use * instead of @ to concatenate." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2124]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431" + }, + "region": { + "startLine": 5, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431" + }, + "region": { + "startLine": 5, + "startColumn": 7 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431" + }, + "region": { + "startLine": 5, + "startColumn": 13 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/compiler-etc-dependencies/example-sessions/ompi-switch.sh.m431" + }, + "region": { + "startLine": 5, + "startColumn": 13 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2155]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh" + }, + "region": { + "startLine": 2, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Declare and assign separately to avoid masking return values." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh" + }, + "region": { + "startLine": 2, + "startColumn": 8 + } + }, + "message": { + "text": "Declare and assign separately to avoid masking return values." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2155]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2128]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh" + }, + "region": { + "startLine": 2, + "startColumn": 23 + } + } + } + ], + "message": { + "text": "Expanding an array without an index only gives the first element." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh" + }, + "region": { + "startLine": 2, + "startColumn": 23 + } + }, + "message": { + "text": "Expanding an array without an index only gives the first element." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2128]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh" + }, + "region": { + "startLine": 2, + "startColumn": 23 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/bar-2.1/bar-setup.sh" + }, + "region": { + "startLine": 2, + "startColumn": 23 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2155]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Declare and assign separately to avoid masking return values." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh" + }, + "region": { + "startLine": 3, + "startColumn": 8 + } + }, + "message": { + "text": "Declare and assign separately to avoid masking return values." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2155]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2128]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh" + }, + "region": { + "startLine": 3, + "startColumn": 23 + } + } + } + ], + "message": { + "text": "Expanding an array without an index only gives the first element." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh" + }, + "region": { + "startLine": 3, + "startColumn": 23 + } + }, + "message": { + "text": "Expanding an array without an index only gives the first element." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2128]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh" + }, + "region": { + "startLine": 3, + "startColumn": 23 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./doc/example/source-script-in-modulefile/foo-1.2/foo-setup.sh" + }, + "region": { + "startLine": 3, + "startColumn": 23 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2166]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 27, + "startColumn": 47 + } + } + } + ], + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 27, + "startColumn": 47 + } + }, + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2166]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 28, + "startColumn": 32 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 28, + "startColumn": 32 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 29, + "startColumn": 67 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 29, + "startColumn": 67 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2089]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 32, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Quotes/backslashes will be treated literally. Use an array." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 32, + "startColumn": 31 + } + }, + "message": { + "text": "Quotes/backslashes will be treated literally. Use an array." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2089]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 32, + "startColumn": 49 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 32, + "startColumn": 49 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2090]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Quotes/backslashes in this variable will not be respected." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + }, + "message": { + "text": "Quotes/backslashes in this variable will not be respected." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2090]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 54, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash.in" + }, + "region": { + "startLine": 54, + "startColumn": 9 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: error[SC1035]", + "level": "error", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 10, + "startColumn": 15 + } + } + } + ], + "message": { + "text": "You are missing a required space here." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 10, + "startColumn": 15 + } + }, + "message": { + "text": "You are missing a required space here." + } + }, + "nestingLevel": 0, + "kinds": [ + "error[SC1035]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2166]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 10, + "startColumn": 27 + } + } + } + ], + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 10, + "startColumn": 27 + } + }, + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2166]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2166]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 22, + "startColumn": 20 + } + } + } + ], + "message": { + "text": "Prefer [ p ] || [ q ] as [ p -o q ] is not well defined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 22, + "startColumn": 20 + } + }, + "message": { + "text": "Prefer [ p ] || [ q ] as [ p -o q ] is not well defined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2166]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 23, + "startColumn": 64 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 23, + "startColumn": 64 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 35, + "startColumn": 19 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 35, + "startColumn": 19 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 43, + "startColumn": 66 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 43, + "startColumn": 66 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 49, + "startColumn": 70 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 49, + "startColumn": 70 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 52, + "startColumn": 25 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 52, + "startColumn": 25 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 65, + "startColumn": 95 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 65, + "startColumn": 95 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 66, + "startColumn": 87 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 66, + "startColumn": 87 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 67, + "startColumn": 69 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 67, + "startColumn": 69 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 68, + "startColumn": 27 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 68, + "startColumn": 27 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 69, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 69, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 70, + "startColumn": 25 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 70, + "startColumn": 25 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 72, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 72, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 74, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 74, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 75, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 75, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 76, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 76, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 79, + "startColumn": 87 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 79, + "startColumn": 87 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 81, + "startColumn": 89 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 81, + "startColumn": 89 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 83, + "startColumn": 86 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 83, + "startColumn": 86 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 85, + "startColumn": 98 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 85, + "startColumn": 98 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 87, + "startColumn": 88 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 87, + "startColumn": 88 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 89, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 89, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 90, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 90, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 94, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 94, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 96, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 96, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 99, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 99, + "startColumn": 17 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2178]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 105, + "startColumn": 21 + } + } + } + ], + "message": { + "text": "Variable was used as an array but is now assigned a string." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 105, + "startColumn": 21 + } + }, + "message": { + "text": "Variable was used as an array but is now assigned a string." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2178]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2178]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 106, + "startColumn": 21 + } + } + } + ], + "message": { + "text": "Variable was used as an array but is now assigned a string." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 106, + "startColumn": 21 + } + }, + "message": { + "text": "Variable was used as an array but is now assigned a string." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2178]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 108, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 108, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 109, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 109, + "startColumn": 33 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2091]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 116, + "startColumn": 4 + } + } + } + ], + "message": { + "text": "Remove surrounding $() to avoid executing output (or use eval if intentional)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 116, + "startColumn": 4 + } + }, + "message": { + "text": "Remove surrounding $() to avoid executing output (or use eval if intentional)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2091]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2034]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 118, + "startColumn": 34 + } + } + } + ], + "message": { + "text": "cmds appears unused. Verify use (or export if used externally)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 118, + "startColumn": 34 + } + }, + "message": { + "text": "cmds appears unused. Verify use (or export if used externally)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2034]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2034]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 118, + "startColumn": 39 + } + } + } + ], + "message": { + "text": "opts appears unused. Verify use (or export if used externally)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 118, + "startColumn": 39 + } + }, + "message": { + "text": "opts appears unused. Verify use (or export if used externally)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2034]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 124, + "startColumn": 99 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 124, + "startColumn": 99 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 125, + "startColumn": 91 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 125, + "startColumn": 91 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 126, + "startColumn": 73 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 126, + "startColumn": 73 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 127, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 127, + "startColumn": 31 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 128, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 128, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 129, + "startColumn": 29 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 129, + "startColumn": 29 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 131, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 131, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 133, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 133, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 134, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 134, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 135, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 135, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 138, + "startColumn": 91 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 138, + "startColumn": 91 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 140, + "startColumn": 93 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 140, + "startColumn": 93 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 142, + "startColumn": 90 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 142, + "startColumn": 90 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 144, + "startColumn": 102 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 144, + "startColumn": 102 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 146, + "startColumn": 92 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 146, + "startColumn": 92 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 148, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 148, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 149, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 149, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 153, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 153, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 155, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 155, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 158, + "startColumn": 21 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 158, + "startColumn": 21 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2178]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 164, + "startColumn": 25 + } + } + } + ], + "message": { + "text": "Variable was used as an array but is now assigned a string." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 164, + "startColumn": 25 + } + }, + "message": { + "text": "Variable was used as an array but is now assigned a string." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2178]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2178]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 165, + "startColumn": 25 + } + } + } + ], + "message": { + "text": "Variable was used as an array but is now assigned a string." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 165, + "startColumn": 25 + } + }, + "message": { + "text": "Variable was used as an array but is now assigned a string." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2178]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 167, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 167, + "startColumn": 37 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 172, + "startColumn": 55 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 172, + "startColumn": 55 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 173, + "startColumn": 100 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 173, + "startColumn": 100 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 174, + "startColumn": 55 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 174, + "startColumn": 55 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2207]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 179, + "startColumn": 55 + } + } + } + ], + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/bash_completion.in" + }, + "region": { + "startLine": 179, + "startColumn": 55 + } + }, + "message": { + "text": "Prefer mapfile or read -a to split command output (or quote to avoid splitting)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2207]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2166]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 27, + "startColumn": 47 + } + } + } + ], + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 27, + "startColumn": 47 + } + }, + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2166]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 28, + "startColumn": 32 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 28, + "startColumn": 32 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 29, + "startColumn": 67 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 29, + "startColumn": 67 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2089]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 32, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Quotes/backslashes will be treated literally. Use an array." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 32, + "startColumn": 31 + } + }, + "message": { + "text": "Quotes/backslashes will be treated literally. Use an array." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2089]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 32, + "startColumn": 49 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 32, + "startColumn": 49 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2090]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Quotes/backslashes in this variable will not be respected." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + }, + "message": { + "text": "Quotes/backslashes in this variable will not be respected." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2090]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 41, + "startColumn": 9 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 54, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/ksh.in" + }, + "region": { + "startLine": 54, + "startColumn": 9 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2046]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/profile.sh.in" + }, + "region": { + "startLine": 10, + "startColumn": 23 + } + } + } + ], + "message": { + "text": "Quote this to prevent word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/profile.sh.in" + }, + "region": { + "startLine": 10, + "startColumn": 23 + } + }, + "message": { + "text": "Quote this to prevent word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2046]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC1090]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/profile.sh.in" + }, + "region": { + "startLine": 14, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "ShellCheck can't follow non-constant source. Use a directive to specify location." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/profile.sh.in" + }, + "region": { + "startLine": 14, + "startColumn": 6 + } + }, + "message": { + "text": "ShellCheck can't follow non-constant source. Use a directive to specify location." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC1090]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC1091]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/profile.sh.in" + }, + "region": { + "startLine": 16, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Not following: @initdir@/sh was not specified as input (see shellcheck -x)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/profile.sh.in" + }, + "region": { + "startLine": 16, + "startColumn": 6 + } + }, + "message": { + "text": "Not following: @initdir@/sh was not specified as input (see shellcheck -x)." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC1091]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2166]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 27, + "startColumn": 47 + } + } + } + ], + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 27, + "startColumn": 47 + } + }, + "message": { + "text": "Prefer [ p ] && [ q ] as [ p -a q ] is not well defined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2166]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 28, + "startColumn": 32 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 28, + "startColumn": 32 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 29, + "startColumn": 67 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 29, + "startColumn": 67 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2089]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 32, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Quotes/backslashes will be treated literally. Rewrite using set/\"$@\" or functions." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 32, + "startColumn": 31 + } + }, + "message": { + "text": "Quotes/backslashes will be treated literally. Rewrite using set/\"$@\" or functions." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2089]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 32, + "startColumn": 49 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 32, + "startColumn": 49 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2090]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 41, + "startColumn": 11 + } + } + } + ], + "message": { + "text": "Quotes/backslashes in this variable will not be respected." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 41, + "startColumn": 11 + } + }, + "message": { + "text": "Quotes/backslashes in this variable will not be respected." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2090]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 41, + "startColumn": 11 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 41, + "startColumn": 11 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC3045]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 59, + "startColumn": 14 + } + } + } + ], + "message": { + "text": "In POSIX sh, export -f is undefined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 59, + "startColumn": 14 + } + }, + "message": { + "text": "In POSIX sh, export -f is undefined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC3045]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC3045]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 60, + "startColumn": 14 + } + } + } + ], + "message": { + "text": "In POSIX sh, export -f is undefined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 60, + "startColumn": 14 + } + }, + "message": { + "text": "In POSIX sh, export -f is undefined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC3045]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC3045]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 61, + "startColumn": 20 + } + } + } + ], + "message": { + "text": "In POSIX sh, type -t is undefined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 61, + "startColumn": 20 + } + }, + "message": { + "text": "In POSIX sh, type -t is undefined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC3045]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC3045]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 62, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "In POSIX sh, export -f is undefined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 62, + "startColumn": 17 + } + }, + "message": { + "text": "In POSIX sh, export -f is undefined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC3045]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 71, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./init/sh.in" + }, + "region": { + "startLine": 71, + "startColumn": 9 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2016]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 22, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Expressions don't expand in single quotes, use double quotes for that." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 22, + "startColumn": 9 + } + }, + "message": { + "text": "Expressions don't expand in single quotes, use double quotes for that." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2016]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 34, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 34, + "startColumn": 9 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 39, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 39, + "startColumn": 9 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2162]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 61, + "startColumn": 1 + } + } + } + ], + "message": { + "text": "read without -r will mangle backslashes." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 61, + "startColumn": 1 + } + }, + "message": { + "text": "read without -r will mangle backslashes." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2162]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 63, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 63, + "startColumn": 6 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 63, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 63, + "startColumn": 7 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 73, + "startColumn": 5 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 73, + "startColumn": 5 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 73, + "startColumn": 8 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 73, + "startColumn": 8 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 84, + "startColumn": 2 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 84, + "startColumn": 2 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 84, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 84, + "startColumn": 7 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 89, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 89, + "startColumn": 31 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 94, + "startColumn": 10 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 94, + "startColumn": 10 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 100, + "startColumn": 15 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 100, + "startColumn": 15 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 100, + "startColumn": 23 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 100, + "startColumn": 23 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 100, + "startColumn": 29 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 100, + "startColumn": 29 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 102, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 102, + "startColumn": 9 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 102, + "startColumn": 10 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 102, + "startColumn": 10 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 107, + "startColumn": 10 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 107, + "startColumn": 10 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 107, + "startColumn": 11 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 107, + "startColumn": 11 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 109, + "startColumn": 15 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 109, + "startColumn": 15 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 110, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 110, + "startColumn": 17 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 118, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 118, + "startColumn": 31 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 120, + "startColumn": 18 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 120, + "startColumn": 18 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 124, + "startColumn": 18 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 124, + "startColumn": 18 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 127, + "startColumn": 12 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 127, + "startColumn": 12 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 127, + "startColumn": 13 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 127, + "startColumn": 13 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 129, + "startColumn": 15 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 129, + "startColumn": 15 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 130, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 130, + "startColumn": 17 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 137, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 137, + "startColumn": 31 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 139, + "startColumn": 18 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 139, + "startColumn": 18 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 143, + "startColumn": 18 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 143, + "startColumn": 18 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 147, + "startColumn": 19 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 147, + "startColumn": 19 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 147, + "startColumn": 28 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 147, + "startColumn": 28 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 147, + "startColumn": 47 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 147, + "startColumn": 47 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 148, + "startColumn": 11 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 148, + "startColumn": 11 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 148, + "startColumn": 12 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 148, + "startColumn": 12 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 153, + "startColumn": 10 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 153, + "startColumn": 10 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 153, + "startColumn": 11 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 153, + "startColumn": 11 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 155, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 155, + "startColumn": 17 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2268]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 164, + "startColumn": 12 + } + } + } + ], + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 164, + "startColumn": 12 + } + }, + "message": { + "text": "Avoid x-prefix in comparisons as it no longer serves a purpose." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2268]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 164, + "startColumn": 13 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 164, + "startColumn": 13 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 166, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 166, + "startColumn": 17 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 175, + "startColumn": 19 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 175, + "startColumn": 19 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 175, + "startColumn": 28 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 175, + "startColumn": 28 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 175, + "startColumn": 47 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 175, + "startColumn": 47 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 184, + "startColumn": 11 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 184, + "startColumn": 11 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 184, + "startColumn": 14 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 184, + "startColumn": 14 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2164]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 190, + "startColumn": 1 + } + } + } + ], + "message": { + "text": "Use 'cd ... || exit' or 'cd ... || return' in case cd fails." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 190, + "startColumn": 1 + } + }, + "message": { + "text": "Use 'cd ... || exit' or 'cd ... || return' in case cd fails." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2164]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 190, + "startColumn": 4 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 190, + "startColumn": 4 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2046]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 199, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Quote this to prevent word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 199, + "startColumn": 7 + } + }, + "message": { + "text": "Quote this to prevent word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2046]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2006]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 199, + "startColumn": 7 + } + } + } + ], + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 199, + "startColumn": 7 + } + }, + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2006]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 199, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/add.modules.in" + }, + "region": { + "startLine": 199, + "startColumn": 17 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/commit-msg" + }, + "region": { + "startLine": 31, + "startColumn": 12 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/commit-msg" + }, + "region": { + "startLine": 31, + "startColumn": 12 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2181]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/commit-msg" + }, + "region": { + "startLine": 49, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/commit-msg" + }, + "region": { + "startLine": 49, + "startColumn": 6 + } + }, + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2181]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/commit-msg" + }, + "region": { + "startLine": 52, + "startColumn": 39 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/commit-msg" + }, + "region": { + "startLine": 52, + "startColumn": 39 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2166]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 83, + "startColumn": 15 + } + } + } + ], + "message": { + "text": "Prefer [ p ] || [ q ] as [ p -o q ] is not well defined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 83, + "startColumn": 15 + } + }, + "message": { + "text": "Prefer [ p ] || [ q ] as [ p -o q ] is not well defined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2166]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2166]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 83, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Prefer [ p ] || [ q ] as [ p -o q ] is not well defined." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 83, + "startColumn": 31 + } + }, + "message": { + "text": "Prefer [ p ] || [ q ] as [ p -o q ] is not well defined." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2166]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: error[SC2068]", + "level": "error", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 89, + "startColumn": 12 + } + } + } + ], + "message": { + "text": "Double quote array expansions to avoid re-splitting elements." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 89, + "startColumn": 12 + } + }, + "message": { + "text": "Double quote array expansions to avoid re-splitting elements." + } + }, + "nestingLevel": 0, + "kinds": [ + "error[SC2068]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 99, + "startColumn": 56 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 99, + "startColumn": 56 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 101, + "startColumn": 59 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 101, + "startColumn": 59 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2034]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 127, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "module appears unused. Verify use (or export if used externally)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 127, + "startColumn": 17 + } + }, + "message": { + "text": "module appears unused. Verify use (or export if used externally)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2034]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 132, + "startColumn": 12 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/envml" + }, + "region": { + "startLine": 132, + "startColumn": 12 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2046]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 75, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Quote this to prevent word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 75, + "startColumn": 37 + } + }, + "message": { + "text": "Quote this to prevent word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2046]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2006]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 75, + "startColumn": 37 + } + } + } + ], + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 75, + "startColumn": 37 + } + }, + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2006]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2012]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 75, + "startColumn": 38 + } + } + } + ], + "message": { + "text": "Use find instead of ls to better handle non-alphanumeric filenames." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 75, + "startColumn": 38 + } + }, + "message": { + "text": "Use find instead of ls to better handle non-alphanumeric filenames." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2012]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2046]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 77, + "startColumn": 38 + } + } + } + ], + "message": { + "text": "Quote this to prevent word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 77, + "startColumn": 38 + } + }, + "message": { + "text": "Quote this to prevent word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2046]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2006]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 77, + "startColumn": 38 + } + } + } + ], + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 77, + "startColumn": 38 + } + }, + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2006]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2012]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 77, + "startColumn": 39 + } + } + } + ], + "message": { + "text": "Use find instead of ls to better handle non-alphanumeric filenames." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 77, + "startColumn": 39 + } + }, + "message": { + "text": "Use find instead of ls to better handle non-alphanumeric filenames." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2012]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2046]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 88, + "startColumn": 30 + } + } + } + ], + "message": { + "text": "Quote this to prevent word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 88, + "startColumn": 30 + } + }, + "message": { + "text": "Quote this to prevent word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2046]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2006]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 88, + "startColumn": 30 + } + } + } + ], + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 88, + "startColumn": 30 + } + }, + "message": { + "text": "Use $(...) notation instead of legacy backticked `...`." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2006]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2012]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 88, + "startColumn": 31 + } + } + } + ], + "message": { + "text": "Use find instead of ls to better handle non-alphanumeric filenames." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 88, + "startColumn": 31 + } + }, + "message": { + "text": "Use find instead of ls to better handle non-alphanumeric filenames." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2012]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 99, + "startColumn": 23 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 99, + "startColumn": 23 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 101, + "startColumn": 30 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 101, + "startColumn": 30 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 104, + "startColumn": 30 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 104, + "startColumn": 30 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 105, + "startColumn": 30 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mkroot" + }, + "region": { + "startLine": 105, + "startColumn": 30 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2181]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 35, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 35, + "startColumn": 6 + } + }, + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2181]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2209]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 38, + "startColumn": 4 + } + } + } + ], + "message": { + "text": "Use var=$(command) to assign output (or quote to assign string)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 38, + "startColumn": 4 + } + }, + "message": { + "text": "Use var=$(command) to assign output (or quote to assign string)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2209]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2209]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 42, + "startColumn": 1 + } + } + } + ], + "message": { + "text": "Use var=$(command) to assign output (or quote to assign string)." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 42, + "startColumn": 1 + } + }, + "message": { + "text": "Use var=$(command) to assign output (or quote to assign string)." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2209]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: error[SC2068]", + "level": "error", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 63, + "startColumn": 13 + } + } + } + ], + "message": { + "text": "Double quote array expansions to avoid re-splitting elements." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 63, + "startColumn": 13 + } + }, + "message": { + "text": "Double quote array expansions to avoid re-splitting elements." + } + }, + "nestingLevel": 0, + "kinds": [ + "error[SC2068]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: error[SC2068]", + "level": "error", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 63, + "startColumn": 34 + } + } + } + ], + "message": { + "text": "Double quote array expansions to avoid re-splitting elements." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 63, + "startColumn": 34 + } + }, + "message": { + "text": "Double quote array expansions to avoid re-splitting elements." + } + }, + "nestingLevel": 0, + "kinds": [ + "error[SC2068]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2206]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 70, + "startColumn": 32 + } + } + } + ], + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 70, + "startColumn": 32 + } + }, + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2206]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2206]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 70, + "startColumn": 43 + } + } + } + ], + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 70, + "startColumn": 43 + } + }, + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2206]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2206]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 72, + "startColumn": 32 + } + } + } + ], + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 72, + "startColumn": 32 + } + }, + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2206]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2206]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 72, + "startColumn": 43 + } + } + } + ], + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 72, + "startColumn": 43 + } + }, + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2206]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 79, + "startColumn": 15 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 79, + "startColumn": 15 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2076]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 83, + "startColumn": 45 + } + } + } + ], + "message": { + "text": "Remove quotes from right-hand side of =~ to match as a regex rather than literally." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 83, + "startColumn": 45 + } + }, + "message": { + "text": "Remove quotes from right-hand side of =~ to match as a regex rather than literally." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2076]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: warning[SC2206]", + "level": "warning", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 84, + "startColumn": 26 + } + } + } + ], + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/mt" + }, + "region": { + "startLine": 84, + "startColumn": 26 + } + }, + "message": { + "text": "Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a." + } + }, + "nestingLevel": 0, + "kinds": [ + "warning[SC2206]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 31, + "startColumn": 12 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 31, + "startColumn": 12 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2181]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 45, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 45, + "startColumn": 6 + } + }, + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2181]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2181]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 47, + "startColumn": 9 + } + } + } + ], + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 47, + "startColumn": 9 + } + }, + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2181]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2181]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 56, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 56, + "startColumn": 6 + } + }, + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2181]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 61, + "startColumn": 33 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 61, + "startColumn": 33 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 62, + "startColumn": 10 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 62, + "startColumn": 10 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 65, + "startColumn": 17 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 65, + "startColumn": 17 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2086]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 65, + "startColumn": 36 + } + } + } + ], + "message": { + "text": "Double quote to prevent globbing and word splitting." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 65, + "startColumn": 36 + } + }, + "message": { + "text": "Double quote to prevent globbing and word splitting." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2086]" + ] + } + ] + } + ] + } + ] + }, + { + "ruleId": "SHELLCHECK_WARNING: note[SC2181]", + "level": "note", + "locations": [ + { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 80, + "startColumn": 6 + } + } + } + ], + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "id": 0, + "physicalLocation": { + "artifactLocation": { + "uri": "./script/pre-commit" + }, + "region": { + "startLine": 80, + "startColumn": 6 + } + }, + "message": { + "text": "Check exit code directly with e.g. 'if mycmd;', not indirectly with $?." + } + }, + "nestingLevel": 0, + "kinds": [ + "note[SC2181]" + ] + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/tests/csgrep/CMakeLists.txt b/tests/csgrep/CMakeLists.txt index 5efc9ad5..404041ca 100644 --- a/tests/csgrep/CMakeLists.txt +++ b/tests/csgrep/CMakeLists.txt @@ -139,3 +139,4 @@ test_csgrep("92-csgrep-tool-predicate" ) test_csgrep("93-csgrep-tool-predicate" ) test_csgrep("94-gcc-json" ) test_csgrep("95-gcc-sarif" ) +test_csgrep("96-sarif-levels" )