Skip to content

Commit

Permalink
fix: downgrade npm-groovy-lint to 15.0.0
Browse files Browse the repository at this point in the history
Fix #6371

npm-groovy-lint > 15.0.0 is impacted by:

- nvuillam/npm-groovy-lint#428
- nvuillam/npm-groovy-lint#422
  • Loading branch information
ferrarimarco committed Nov 27, 2024
1 parent 7b18a58 commit f64eb5e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
11 changes: 6 additions & 5 deletions dependencies/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dependencies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions test/linters/groovy/groovy_good_02.groovy
Original file line number Diff line number Diff line change
@@ -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'))

0 comments on commit f64eb5e

Please sign in to comment.