JMan
JMan

Reputation: 2629

JSLint - ignoring folder when building in Visual Studio 2015

I want to implement javascript code and style checking with JSLint. I installed JSLint.NET for Visual Studio.

Now i want to exclude all the javascript files that are included from external libraries like datatables, jquery, .. also my own minified files need to be excluded.

My project configurations are added in the JSLintNet.json file:

{
  "version": "2.2.0",
  "output": "Error",
  "ignore": [
    "\\Scripts\\angular-datatables\\plugins\\tabletools\\",
    "\\Scripts\\angular-datatables\\plugins\\fixedcolumns\\angular-datatables.fixedcolumns.js",
    "\\Scripts\\angular-datatables\\plugins\\fixedcolumns\\angular-datatables.fixedcolumns.min.js"
  ],
  "options": {},
  "globalVariables": [],
  "runOnBuild": true
}

Whatever path i provide here, is it a folder or a file. The code analysis still keeps running. It is important that i can ignore certain files/ folder for JSLint to be practical.

How can i solve the ignoring of folders and files, perhaps even certain extensions.

Upvotes: 1

Views: 595

Answers (1)

Simon Brooke
Simon Brooke

Reputation: 396

I have had this problem and am not certain whether this is the right answer: however, it usually works for me. It seems that JSLint.Net only parses the configuration file on startup; so if you edit JSLintNet.json, quit VisualStudio and restart it.

I'm using Visual Studio 2013, version 12.0.40629.00 with JSLint.Net 2.2.0

Hope this helps.

Upvotes: 3

Related Questions