jamietre / SharpLinter

Linting tools for Visual Studio & C#
http://blog.outsharked.com/2011/08/sharplinter-command-line-tool-for.html
44 stars 12 forks source link

StackOverflowException on Neosis library #9

Closed katlimruiz closed 3 years ago

katlimruiz commented 11 years ago

I try to run with the following arguments: -rf "D:\XXX\Reports\BS.js" -c sharplinter.conf -j "D:\XXX\automation\lib\JSLint\jslint.js"

Against this file js

  $(function() {
      $("#cmbStatus").focus();

      $("#cmbType").change(function(e) {
          var _selValue = $(e.target).val();
          if (_selValue == 'XXX')
              $('#tr').show();
          else
              $('#tr').hide();
     });
  });

And when inserting the javascript into Neosis library, i get a stackoverflow exception. I even debugged the code, but got to the noesis line and that's it.

return Context.Run(code);

katlimruiz commented 11 years ago

Even compiling on x86

katlimruiz commented 11 years ago

JSHINT runs ok, so I ended up using JSHINT. By the way you dont need to rename jshint.js to jslint.js, you just need to specify it in the command line and thats it.