HMR
HMR

Reputation: 39320

gjslint not reporting any error on file without jsdoc whatsoever

I read somewhere that with jsdoc in your JavaScript and the google closure tool gjslint you can strongly type your javascript. It's not really strongly typed but the tool will report on uncommented variables and or parameters.

Here is the test file:

var keywordLists = {
  hello: function($obj) {
    this.something = 22;
  }
};

After gjslint reporting on whitespace errors it passes the file; the following command:

c:\Python27\Scripts\gjslint.exe --strict --jsdoc js\test.js

gives output:

1 files checked, no errors found.

I would like use this as sort of compile time check but all it does is give me headaches about wrong whitespaces. I'd like it to ignore the white spacing and check for jsdoc and calls to functions having valid/strong typed parameters.

I'm using this on windows 7-64 with pythod 2.3.7 (python 3 didn't work at all on Windows because it won't install without tons of errors and then can't even print a gjslint --help afterwords).

Does anyone know what I am doing wrong here?

Upvotes: 0

Views: 454

Answers (0)

Related Questions