Shellcheck warned for elements within a range ([]) to be repetitive, but that also warned for wishfully repeated element such as variables. The fix is to account for dereferenced elements, such as variables, and not warn in those.
[ { "endline": 2523, "file": "./src/ShellCheck/Analytics.hs", "function": "checkCharRangeGlob", "module": "ShellCheck.Analytics", "startline": 2523 } ]
[ { "endline": 2525, "file": "./src/ShellCheck/Analytics.hs", "function": "checkCharRangeGlob", "module": "ShellCheck.Analytics", "startline": 2525 }, { "endline": 2550, "file": "./src/ShellCheck/Analytics.hs", "function": "checkCharRangeGlob", "module": "ShellCheck.Analytics", "startline": 2544 }, { "endline": 740, "file": "./src/ShellCheck/AnalyzerLib.hs", "function": "getReferencedVariables", "module": "ShellCheck.AnalyzerLib", "startline": 740 }, { "endline": 779, "file": "./src/ShellCheck/AnalyzerLib.hs", "function": "getReferencedVariables", "module": "ShellCheck.AnalyzerLib", "startline": 778 } ]