npm-groovy-lint
Advanced tools
Comparing version 5.1.1 to 5.2.0-beta.0
@@ -85,3 +85,3 @@ // Call CodeNarc by server or java | ||
(startServerTried === false, | ||
e.code && ["ECONNREFUSED", "ETIMEDOUT"].includes(e.code) && ["unknown", "running"].includes(this.serverStatus)) // running is here in case the Server auto-killed itself at its expiration time | ||
e.code && ["ECONNREFUSED", "ETIMEDOUT"].includes(e.code) && ["unknown", "running"].includes(this.serverStatus)) // running is here in case the Server auto-killed itself at its expiration time | ||
) { | ||
@@ -88,0 +88,0 @@ if ((await this.startCodeNarcServer()) && this.serverStatus === "running") { |
@@ -151,5 +151,3 @@ #! /usr/bin/env node | ||
// If java home is set, but not jdk or jre, add it in PATH | ||
else if (process.env["JAVA_HOME"] && | ||
!process.env["PATH"].includes('jdk') && | ||
!process.env["PATH"].includes('jre')) { | ||
else if (process.env["JAVA_HOME"] && !process.env["PATH"].includes("jdk") && !process.env["PATH"].includes("jre")) { | ||
process.env["PATH"] = process.env["PATH"].includes(process.env["JAVA_HOME"]) | ||
@@ -183,3 +181,3 @@ ? process.env["PATH"] | ||
`Java between ${this.minimumJavaVersion} and ${this.maximumJavaVersion} is required ${ | ||
javaVersion ? "(" + javaVersion + " found)" : "" | ||
javaVersion ? "(" + javaVersion + " found)" : "" | ||
}` | ||
@@ -186,0 +184,0 @@ ); |
@@ -173,3 +173,3 @@ /** | ||
type: "String", | ||
default: "http://" + require("ip").address(), | ||
default: "http://localhost", //"http://" + require("ip").address(), | ||
description: "If use of CodeNarc server, host where is the CodeNarc server (default: localhost)" | ||
@@ -176,0 +176,0 @@ }, |
{ | ||
"name": "npm-groovy-lint", | ||
"version": "5.1.1", | ||
"version": "5.2.0-beta.0", | ||
"description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
16414862
7860
1