Open ubmarco opened 1 year ago
formatting relies on IndentationRule CodeNarc rule results -> https://codenarc.org/codenarc-rules-formatting.html#indentation-rule
Unfortunately is does not catch all indentation issues, but npm-groovy-lint uses CodeNarc v3.10, maybe in 3.20 it will be better, we'll see once after npm-groovy-lint will be upgraded :/
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
If you think this issue should stay open, please remove the O: stale 🤖
label or comment on the issue.
I have this simple Jenkinsfile where properties are not properly indented. The formatter does nothing on the properties section:
The code in
def printParams() {
andstage('Check jenkins') {
is properly indented, however. Generally it seems like the formatter does not really deal well with brackets. Those are almost never touched.