MicrosoftEdge/static-code-scan

Wrong version-Detection for js-library

Closed this issue · 4 comments

I use jquery 1.12.0. It's the latest version on the 1.*-tree. But the scanner doesn't detect the version correct and mark it as an error.

Screenshot

I'm using 2.2.0 and also getting an error.

Here's the static-code-scan result.

  jslibs                                                                        │    ×
────────────────────────────────────────────────────────────────────────────────┴──────────
  [
    {
      "name": "jQuery",
      "needsUpdate": true,
      "minVersion": "1.6.4",
      "version": "2.2.0",
      "url": "//ajax.aspnetcdn.com/ajax/jQuery/jquery-2.2.0.min.js",
      "lineNumber": 9
    }
  ]

I can't find the string "1.6.4" anywhere in my code so... wondering where that's coming from.

It should be fixed by #109, I meant to reference this ticket in the PR.

Since new releases have happened, I'll just reference this ticket with a new PR.

This project is deprecated and no longer maintained. Please check sonar if you need a similar tool but more flexible and modern.