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.

closed as off-topic by Robert Longson, rene, Jenayah, Pikachu the Parenthesis Wizard, Glorfindel Jun 11 at 19:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question's topic is only applicable to one specific site in the Stack Exchange Network. Questions on Meta Stack Exchange should relate to features or policies that commonly apply to the network or the software that drives it, within the guidelines defined in the help center. You should ask this question on the meta site where your concern originated." – Robert Longson, rene, Jenayah, Pikachu the Parenthesis Wizard, Glorfindel
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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. – Shadow The Curly Braced Wizard Feb 24 '14 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. – Dan Dascalescu Feb 24 '14 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. – Shadow The Curly Braced Wizard Feb 24 '14 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. – Dan Dascalescu Feb 24 '14 at 16:14
  • 3
    Specific problems that require tools to solve them are rather different from bald requests for recommendations, @Shadow. – Shog9 Feb 24 '14 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? – Dan Dascalescu Feb 25 '14 at 12:42

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.

  • 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 Feb 24 '14 at 20:13

Not the answer you're looking for? Browse other questions tagged .