3

Here is the question:

How can I check JavaScript code for syntax errors ONLY from the command line?

Several days ago I cast a reopen vote.

I've edited the question to the best of my ability so that it fits in the SO scope. Suggestions welcome.

6
  • 4
    Sorry but looks like it still falls under "recommend or find a tool, library or favorite off-site resource". While it might be helpful, those are simply off topic for Stack Overflow.
    – user152859
    Commented Feb 24, 2014 at 16:05
  • 1
    @ShadowWizard: I'm not looking for any more tool recommendations than is the question How to check if perl script doesn't have any compilation errors?. It's exactly the same kind of problem. Commented Feb 24, 2014 at 16:07
  • 1
    Well, there's no trivial way so it means you have to write your own command line application - or find existing application. Perl appears to come with its own command line tools.
    – user152859
    Commented Feb 24, 2014 at 16:10
  • 1
    I was hoping that maybe there's some command line option combination for an existing tool and I'm just missing something, because a lot of language compilers and interpreters have an option to check for syntax errors. Commented Feb 24, 2014 at 16:14
  • 3
    Specific problems that require tools to solve them are rather different from bald requests for recommendations, @Shadow.
    – Shog9 StaffMod
    Commented Feb 24, 2014 at 18:21
  • Just noticed (randomly, because someone commented on it) that the question is no longer on hold. Is there no notification about the process of asking for reopening? Commented Feb 25, 2014 at 12:42

1 Answer 1

3

I think the question is fine; I initially thought it was a duplicate, but searching has turned up only partial matches (folks looking to disable specific warnings) - so if it hasn't already been answered, I don't see any reason to close it.

And yeah, I also tire of the preachiness of (default rules) JSLint at times.

1
  • 2
    It's "tool recommendations" that are discouraged, @Ros - not "recommendations and questions about tools". Because the latter, strictly interpreted, would make off-topic just about every question on the site...
    – Shog9 StaffMod
    Commented Feb 24, 2014 at 20:13

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.