Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #32 from twasink/master

Upgrade embedded JSHint to 2.4.4
  • Loading branch information...
commit 82739501a9bbd41600df2c250fb41ad7e23d55c6 2 parents f75ba89 + e0331cc
@philmander authored
View
10 pom.xml
@@ -79,7 +79,7 @@
</dependencies>
<build>
- <finalName>${artifactId}-${project.version}</finalName>
+ <finalName>${project.artifactId}-${project.version}</finalName>
<plugins>
<plugin>
@@ -97,7 +97,7 @@
<artifactId>maven-shade-plugin</artifactId>
<version>1.4</version>
<configuration>
- <finalName>${build.finalName}-deps</finalName>
+ <finalName>${project.build.finalName}-deps</finalName>
<filters>
<filter>
<!--
@@ -127,7 +127,7 @@
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<configuration>
- <finalName>${build.finalName}-deps</finalName>
+ <finalName>${project.build.finalName}-deps</finalName>
<descriptors>
<descriptor>src/main/assembly/descriptor.xml</descriptor>
</descriptors>
@@ -154,8 +154,8 @@
<configuration>
<tasks>
<echo>Moving jars to release dir</echo>
- <copy file="target/${build.finalName}-deps.jar" todir="${basedir}/release"/>
- <copy file="target/${build.finalName}-deps-bin.zip" todir="${basedir}/release"/>
+ <copy file="target/${project.build.finalName}-deps.jar" todir="${basedir}/release"/>
+ <copy file="target/${project.build.finalName}-deps-bin.zip" todir="${basedir}/release"/>
</tasks>
</configuration>
</execution>
View
2  src/main/java/com/philmander/jshint/JsHintRunner.java
@@ -145,6 +145,8 @@ public JsHintReport lint(String[] files, Map<Object, Object> options, Map<Object
// start rhino
Context ctx = Context.enter();
ctx.setLanguageVersion(Context.VERSION_1_7);
+ // workaround for the 64k limit of rhino with enabled optimizations: set the Optimization Level to -1. See https://github.com/jshint/jshint/issues/1333
+ ctx.setOptimizationLevel(-1);
ScriptableObject global = ctx.initStandardObjects();
String[] names = { "print" };
View
60,714 src/main/resources/com/philmander/jshint/jshint.js
60,523 additions, 191 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.