-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a formatter ? #100
Comments
A possible fallback is to use Groovy Editor : groovy/groovy-eclipse#437 But there is a drawback : groovy/groovy-eclipse#1495 ... Ideally this kind of formatter feature should be directly integrated in JenkinsEditor (and should not reuse Java properties for space/tab indentation) |
Hello @sbernard31 , thank you for the information. The groovy editor is a standalone plugin which is not connected to the jenkins editor. The jenkins editor is complete standalone - it would not be easy to integrate an external editor part inside jenkins editor, also I would not want to have here any dependency to another product (where I do not know if it would be further developed, would have some drawbacks, hosting/download problems etc.) So it is no option to integrate the groovy-eclipse parts for the jenkins editor (of course you can use the groovy-editor to edit jenkins files as well!) When it is only about formatting a declarative jenkins file, there could be possibilities to implement a formatting here, becauses parsing is already (a little bit ) implemented and could be done (explicit for declarative jenkins files). Unfortunately I have much time pressure at the moment and no free time for plugin development. As mentioned before, for declarative Jenkins file formatting I think it could be done and if this helps you, I could try to implement it, but I cannot say when I have enough free time to implement - sorry. |
Makes sense.
It's still an option but it seems a bit overkill. My project contains only declarative jenkins files.
I understand, I feel this could be a very useful feature. That's the first thing I try to do just after installing If you implement this feature let me know and thanks for your work on |
Any type of indentation formatting would be appreciated! Thanks. |
@sbernard31 , @wicketr : |
Is there a formatter or any other way to have a consistent formatting (at least for indentation) ?
I didn't find anything about that.
The text was updated successfully, but these errors were encountered: