Comments (10)
This also occurs if checkReturnTypes
is set to false
. Shouldn't that disable the rule completely?
from jscs-jsdoc.
The problem here is jsdoc parsing and traversing ast tree. Basically it was made very-very hacky and this wasn't refactored as well. So yes, you're right about it.
p.s. Except one thing: It's a plugin based on jscs
so values in parameters means, even false
values. To disable we should use null
(as well as jscs
do).
from jscs-jsdoc.
@pigulla Oops. Can you tell me what version of jscs
you using here? Can't repeat this ;-(
upd: But yeah. It shouldn't occurs on something: false
. It should throw an error on configuration loading. I've created #23 for this
from jscs-jsdoc.
I was using 1.7.3 - thanks for looking into this.
from jscs-jsdoc.
But what about error? I'm using jscs 1.7.3 with jscs-jsdoc 0.0.15.
from jscs-jsdoc.
Try this gist: https://gist.github.com/pigulla/904685704509b6e4462c
When I clone this, do an npm install
and then run node_modules/jscs/bin/jscs test.js
I get the error you can see in my first post. It's really odd that you can't seem to reproduce this.
from jscs-jsdoc.
@pigulla What's environment you have? I'm testing on debian, maybe reason of crashing in OS?
from jscs-jsdoc.
I'm using an older version of Linux Mint:
pigullar@vm-dev ~ $ cat /etc/issue
Linux Mint 16 Petra \n \l
pigullar@vm-dev ~ $ cat /proc/version
Linux version 3.11.0-12-generic (buildd@allspice) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu7) ) #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013
I'll run the gist against an up-to-date Mint later today to see if the problem occurs there as well. (Although it really doesn't look like an OS-dependent issue to me, but stranger things have happened...)
from jscs-jsdoc.
@pigulla Thanks again. I've got this!
from jscs-jsdoc.
Fixed in v0.0.16, anyway we need to add more tests for column calculating. Console error reporter crashes on getting "1[object Object]" string instead of valid number.
from jscs-jsdoc.
Related Issues (20)
- Separate checkTypes rule into checkTypes and checkNativeTypeCase HOT 1
- Add "trailingUnderscoreAccess" option
- requireDescriptionCompleteSentence is not allowed to be false or null HOT 1
- Support disabling rules in jsdoc HOT 10
- Parameter validation wrongly associates closure and doc block HOT 4
- requireDescriptionCompleteSentence: fails to recognize inlined links. HOT 2
- jsdoc incorrectly validates shorthand arrow functions with nested function signatures
- Merge checkParamNames and checkRedundantParams
- AssertionError with missing braces and multi-line description in @returns tag HOT 1
- Why can't support array[].property jsdoc syntax??
- Tags should be case insensitive HOT 2
- enforceExistence rule not work properly for anonymous function. HOT 3
- False positive "Unexpected data in tag constructor" for JSDuck HOT 1
- @listens tag is missing from jsdoc3.json
- Is there a way to switch off jsdoc enforceExistence for anonymous arrow functions? HOT 3
- Function is missing documentation for parameter `undefined` with default parameters HOT 1
- New Rule: enforce order of tags HOT 2
- Question : How to add custom code to check to jscs-jsdoc module? HOT 4
- an error with jsDoc HOT 1
- [Meta] Is this merging into ESLint? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jscs-jsdoc.