jeremykohn / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
0 stars 0 forks source link

skipping hash bang for nodejs #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be reasonable in fixjsstyle to detect and avoid reformatting any 
hashbangs found?

This of course only applies to javascript scripts run on the serverside like 
with nodejs, but it would be nice to avoid having to hand edit the hash bang 
lines that get messed up. This is what fixjsstyle does:

<pre>
-#!/usr/bin/env node
+# !/ usr / bin / env node;
</pre>

Original issue reported on code.google.com by d...@dbsgeo.com on 6 Nov 2011 at 7:15

GoogleCodeExporter commented 9 years ago
This duplicate of issue 20. You can use the patch in issue 20 that will ignore 
the first line if it starts with #!.

Original comment by vagra...@google.com on 31 Jul 2013 at 3:26