GithubHelp home page GithubHelp logo

Comments (10)

pigulla avatar pigulla commented on June 18, 2024

This also occurs if checkReturnTypes is set to false. Shouldn't that disable the rule completely?

from jscs-jsdoc.

qfox avatar qfox commented on June 18, 2024

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.

qfox avatar qfox commented on June 18, 2024

@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.

pigulla avatar pigulla commented on June 18, 2024

I was using 1.7.3 - thanks for looking into this.

from jscs-jsdoc.

qfox avatar qfox commented on June 18, 2024

But what about error? I'm using jscs 1.7.3 with jscs-jsdoc 0.0.15.

from jscs-jsdoc.

pigulla avatar pigulla commented on June 18, 2024

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.

qfox avatar qfox commented on June 18, 2024

@pigulla What's environment you have? I'm testing on debian, maybe reason of crashing in OS?

from jscs-jsdoc.

pigulla avatar pigulla commented on June 18, 2024

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.

qfox avatar qfox commented on June 18, 2024

@pigulla Thanks again. I've got this!

from jscs-jsdoc.

qfox avatar qfox commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.