npm-groovy-lint
Advanced tools
Comparing version 7.1.0 to 7.2.0
# Changelog | ||
## [7.1.1] 2020-08-11 | ||
- Upgrade [java-caller](https://www.npmjs.com/package/java-caller) to v2.0.0 | ||
## [7.1.0] 2020-08-10 | ||
@@ -4,0 +8,0 @@ |
@@ -29,4 +29,3 @@ // Call CodeNarc by server or java | ||
codeNarcServer: { | ||
minimumJavaVersion: 1.8, | ||
maximumJavaVersion: 14.99, | ||
minimumJavaVersion: 8, | ||
rootPath: __dirname, | ||
@@ -37,4 +36,3 @@ mainClass: "com.nvuillam.CodeNarcServer", | ||
codeNarcJava: { | ||
minimumJavaVersion: 1.8, | ||
maximumJavaVersion: 14.99, | ||
minimumJavaVersion: 8, | ||
rootPath: __dirname, | ||
@@ -41,0 +39,0 @@ mainClass: "org.codenarc.CodeNarc", |
@@ -11,3 +11,3 @@ #! /usr/bin/env node | ||
describe("Miscellaneous", function() { | ||
describe("Miscellaneous", function () { | ||
beforeEach(beforeEachTestCase); | ||
@@ -297,9 +297,18 @@ | ||
it("(API:Server) should kill java override running server", async () => { | ||
const linter = await new NpmGroovyLint([process.execPath, "", "--killserver", "--no-insight", "--verbose"], { | ||
verbose: true | ||
}).run(); | ||
assert(linter.status === 0, `Linter status is 0 (${linter.status} returned)`); | ||
assert(linter.outputString.includes("CodeNarcServer terminated"), "CodeNarcServer has been terminated"); | ||
checkCodeNarcCallsCounter(1); | ||
let javaPath; | ||
try { | ||
javaPath = which.sync("java"); | ||
} catch (e) { | ||
console.log("Java not found: ignore test method"); | ||
} | ||
if (javaPath) { | ||
const linter = await new NpmGroovyLint([process.execPath, "", "--killserver", "--no-insight", "--verbose"], { | ||
verbose: true | ||
}).run(); | ||
assert(linter.status === 0, `Linter status is 0 (${linter.status} returned)`); | ||
assert(linter.outputString.includes("CodeNarcServer terminated"), "CodeNarcServer has been terminated"); | ||
checkCodeNarcCallsCounter(1); | ||
} | ||
}); | ||
@@ -306,0 +315,0 @@ }); |
{ | ||
"name": "npm-groovy-lint", | ||
"version": "7.1.0", | ||
"version": "7.2.0", | ||
"description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files", | ||
@@ -59,3 +59,3 @@ "main": "index.js", | ||
"ip": "^1.1.5", | ||
"java-caller": "^1.0.0", | ||
"java-caller": "^2.0.0", | ||
"optionator": "^0.8.3", | ||
@@ -62,0 +62,0 @@ "semver": "^7.1.3", |
@@ -365,5 +365,6 @@ <!-- markdownlint-disable MD033 --> | ||
This package uses : | ||
### Other packages used | ||
- [CodeNarc](https://github.com/CodeNarc/CodeNarc): groovy lint | ||
- [java-caller](https://www.npmjs.com/package/java-caller): Easy call Java commands from Node | ||
- [slf4j](http://www.slf4j.org): logging for CodeNarc | ||
@@ -374,2 +375,4 @@ - [log4j](https://logging.apache.org/log4j/2.x/): logging for CodeNarc | ||
### Contributors | ||
[<img alt="nvuillam" src="https://avatars1.githubusercontent.com/u/17500430?v=4&s=50 width=50">](https://github.com/nvuillam) |[<img alt="Dave Gallant" src="https://avatars2.githubusercontent.com/u/4519234?v=4&s=50 width=50">](https://github.com/davegallant) |[<img alt="docwhat" src="https://avatars1.githubusercontent.com/u/40799?v=4&s=50 width=50">](https://github.com/docwhat) |[<img alt="CatSue" src="https://avatars3.githubusercontent.com/u/26134618?v=4&s=50 width=50">](https://github.com/CatSue) | | ||
@@ -381,2 +384,6 @@ :---:|:---:|:---:|:---:| | ||
### [7.1.1] 2020-08-11 | ||
- Upgrade [java-caller](https://www.npmjs.com/package/java-caller) to v2.0.0 | ||
### [7.1.0] 2020-08-10 | ||
@@ -383,0 +390,0 @@ |
16568703
7977
412
+ Addedbuffer-crc32@0.2.13(transitive)
+ Addedchownr@1.1.4(transitive)
+ Addedcommand-exists-promise@2.0.2(transitive)
+ Addedfd-slicer@1.1.0(transitive)
+ Addedfs-extra@10.1.0(transitive)
+ Addedfs-minipass@1.2.7(transitive)
+ Addedjava-caller@2.7.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminipass@2.9.0(transitive)
+ Addedminizlib@1.3.3(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednjre@0.3.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedpend@1.2.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedtar@4.4.19(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedyallist@3.1.1(transitive)
+ Addedyauzl@2.10.0(transitive)
- Removedat-least-node@1.0.0(transitive)
- Removedfs-extra@9.1.0(transitive)
- Removedjava-caller@1.1.0(transitive)
Updatedjava-caller@^2.0.0