[forge-issues] [JBoss JIRA] (ROASTER-126) Format options not taken into account

George Gastaldi (Jira) issues at jboss.org
Tue Jan 22 17:29:00 EST 2019


     [ https://issues.jboss.org/browse/ROASTER-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi closed ROASTER-126.
-----------------------------------


> Format options not taken into account
> -------------------------------------
>
>                 Key: ROASTER-126
>                 URL: https://issues.jboss.org/browse/ROASTER-126
>             Project: Roaster
>          Issue Type: Bug
>          Components: Formatter
>    Affects Versions: 2.20.0.Final
>            Reporter: Luca Burgazzoli
>            Assignee: Kai Müller
>            Priority: Minor
>
> I'm doing some small experiments with Forge Roaster and I'm unable to get some formatting options taken into account.
> My code and the result is here: https://gist.github.com/lburgazzoli/115377c3887972696f77db3a71fef85f
> As you can notice, I configured some properties so that the code should wrap at column 120 and it should use spaces instead of tabs but my set-up is ignored and the resulting code is still formatted with some defaults.
> I set the formatting properties with:
> {code:java}
>     properties.put(DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT, "120")
>     properties.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, "space")
>     properties.put(DefaultCodeFormatterConstants.FORMATTER_TAB_SIZE, "4")
> {code}
> The behaviour does not change if I use constants without the shaded package value.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the forge-issues mailing list