shellcheck-2

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.

ghc-version: 9.2.5

hasbugs-version: 1.0.0

license: GPL3

build-framework: stack

Repository
Test Frameworks:
GitHub Artifacts :

Faults @9eb63c97

[
  {
    "endline": 2523,
    "file": "./src/ShellCheck/Analytics.hs",
    "function": "checkCharRangeGlob",
    "module": "ShellCheck.Analytics",
    "startline": 2523
  }
]

Fixes @0d58337c

[
  {
    "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
  }
]