plusplus option not working

57 views
Skip to first unread message

sfrench

unread,
Sep 29, 2011, 11:03:13 AM9/29/11
to Juicer
The plus plus option for Juicer 1.0.10 does not appear to be working.

I am using:

/*global require, define */
/*jslint plusplus: true, sloppy: true, indent: 4, nomen: true */

I get "undexpected use of '++'"

Any ideas?

Christian Johansen

unread,
Sep 30, 2011, 6:16:11 AM9/30/11
to juice...@googlegroups.com
It is JSLint using those, not Juicer per se. Sure you're running the correct file? Those options have to be provided in all files.

Christian
--
MVH
Christian

sfrench

unread,
Sep 30, 2011, 6:38:11 AM9/30/11
to Juicer
I have concatenated the files into one file then running juicer verify
on this file to check this against jslint.

The options are at the top. It seems to pick up the other options just
not plusplus

On Sep 30, 11:16 am, Christian Johansen <christ...@cjohansen.no>
wrote:
> It is JSLint using those, not Juicer per se. Sure you're running the correct
> file? Those options have to be provided in all files.
>
> Christian
>

Christian Johansen

unread,
Sep 30, 2011, 7:26:29 AM9/30/11
to juice...@googlegroups.com
Did you try running JsLint on it by itself, to see if it's a jslint or juicer problem?
--
MVH
Christian

Dave DeGroote

unread,
Sep 30, 2011, 12:01:33 PM9/30/11
to juice...@googlegroups.com
I use plusplus:false to allow ++'s:

/*jslint undef:false, white:false, plusplus:false, onevar:false */

I'm a bit confused though.  That works for me, but the jslint docs say:

http://www.jslint.com/lint.html#options

Tolerate ++ and -- plusplus true if ++ and -- should be allowed. (more)

Did this change, or is the doc wrong?  Or am I missing somthing?

sfrench

unread,
Sep 30, 2011, 3:51:38 PM9/30/11
to Juicer
I could try plusplus as false but will that work? When I use
jslint.com it works when plusplus is true.

On Sep 30, 5:01 pm, Dave DeGroote <dave.degro...@gmail.com> wrote:
> I use plusplus:false to allow ++'s:
>
> /*jslint undef:false, white:false, plusplus:false, onevar:false */
>
> I'm a bit confused though.  That works for me, but the jslint docs say:
>
> http://www.jslint.com/lint.html#options
>
>  Tolerate ++ and -- plusplus true if ++ and -- should be allowed.
> (more)<http://www.jslint.com/lint.html#inc>

Christian Johansen

unread,
Sep 30, 2011, 4:59:16 PM9/30/11
to juice...@googlegroups.com
All I can say is that Juicer doesn't do anything in between here - it just runs JSLint. You could try to delete JSlint from ~/.juicer/ and do `juicer install jslint` to get a more recent version, maybe that'll be more consistent with the web version?
--
MVH
Christian

sfrench

unread,
Sep 30, 2011, 6:38:16 PM9/30/11
to Juicer
I am using 1.0.10 because jruby doesn't support the latest nokogiri
which is needed for a more recent version.

Christian Johansen

unread,
Oct 2, 2011, 4:26:13 PM10/2/11
to juice...@googlegroups.com
So `juicer install` doesn't work for you?
--
MVH
Christian

sfrench

unread,
Oct 3, 2011, 4:14:56 AM10/3/11
to Juicer
I am using juicer install to install jslint. I was just saying that I
am using an older version of juicer.
Dave said he uses plusplus: false to allow it. Surely it should be set
to true to allow it?
I should try it as he said it worked for him.

sfrench

unread,
Oct 3, 2011, 4:13:25 AM10/3/11
to Juicer
I am using juicer install to install jslint. I was just saying that I
am using an older version of juicer.

Dave said he uses plusplus: false to allow it. Surely it should be set
to true to allow it?

I should try it as he said it worked for him.

sfrench

unread,
Oct 3, 2011, 4:15:55 AM10/3/11
to Juicer
I am using juicer install to install jslint. I was just saying that I
am using an older version of juicer.
Dave said he uses plusplus: false to allow it. Surely it should be set
to true to allow it?
I should try it as he said it worked for him.
Reply all
Reply to author
Forward
0 new messages