diff --git a/dependencies/package-lock.json b/dependencies/package-lock.json index 7612cbe2..10db7565 100644 --- a/dependencies/package-lock.json +++ b/dependencies/package-lock.json @@ -34,7 +34,7 @@ "markdownlint-cli": "^0.42.0", "next": "^15.0.3", "next-pwa": "^5.6.0", - "npm-groovy-lint": "^15.0.2", + "npm-groovy-lint": "^15.0.0", "postcss-less": "^6.0.0", "prettier": "^3.3.3", "prettyjson": "^1.2.5", @@ -17287,9 +17287,10 @@ } }, "node_modules/npm-groovy-lint": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/npm-groovy-lint/-/npm-groovy-lint-15.0.2.tgz", - "integrity": "sha512-1HvEdy0eKIHOx/TIBgehQGEA+UObCUFsmHJ45LRxCkiMUTMMYEDXlTPV6u78UMNCsFqcGzeMUPfi4tXAxss2Tg==", + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/npm-groovy-lint/-/npm-groovy-lint-15.0.0.tgz", + "integrity": "sha512-MSVHrSK2bVQnQUSIiyXp8Am33E6gt3QUBXm8Z+AA4dToLqpU0+46VCiIcOCTSiKmz9Rd7DoGgFrd5eBEO4qBsg==", + "license": "MIT", "dependencies": { "ansi-colors": "^4.1.1", "axios": "^1.6.2", @@ -17302,7 +17303,7 @@ "fs-extra": "^11.0.0", "glob": "^11.0.0", "import-fresh": "^3.2.1", - "java-caller": "^4.1.1", + "java-caller": "^4.0.0", "js-yaml": "^4.1.0", "node-sarif-builder": "^3.0.0", "optionator": "^0.9.0", diff --git a/dependencies/package.json b/dependencies/package.json index c1a67ed0..dcd621ac 100644 --- a/dependencies/package.json +++ b/dependencies/package.json @@ -29,7 +29,7 @@ "markdownlint-cli": "^0.42.0", "next": "^15.0.3", "next-pwa": "^5.6.0", - "npm-groovy-lint": "^15.0.2", + "npm-groovy-lint": "^15.0.0", "postcss-less": "^6.0.0", "prettier": "^3.3.3", "prettyjson": "^1.2.5", diff --git a/test/linters/groovy/groovy_good_02.groovy b/test/linters/groovy/groovy_good_02.groovy new file mode 100644 index 00000000..944b7b4b --- /dev/null +++ b/test/linters/groovy/groovy_good_02.groovy @@ -0,0 +1,12 @@ +import groovy.text.* +import org.jenkinsci.plugins.pipeline.modeldefinition.Utils + +@Library('somelib') +import com.mycorp.pipeline.somelib.Helper + +int useSomeLib(Helper helper) { + helper.prepare() + return helper.count() +} + +echo useSomeLib(new Helper('some text'))