Hi,
Is there a summary of all changes needed for formatting rules ?
I want to create a native template for IntelliJ IDEA users (to avoid to install a eclipse
plugin importer).
In my mind there are:
- Indentation of java files.
- Indentation of xml files.
- Other files.
- Trim lines.
- Licenses.
Any missing item ?
- Templates ?
Thx,
Lucas
----- Original Message -----
From: "Peter Palaga" <ppalaga(a)redhat.com>
To: "John Mazzitelli" <mazz(a)redhat.com>, hawkular-dev(a)lists.jboss.org
Sent: Friday, January 16, 2015 7:39:05 PM
Subject: Re: [Hawkular-dev] eclipse config files available
Hi John,
thanks for the prefs.
I pushed a small fix to the template containing the license header
https://github.com/hawkular/hawkular-build-tools/commit/861c38e5a2c284a76...
Besides that, I suppose @author ${user} [1] is not the prefered option
for the most of us because ${user} resolves to the user name on the
current machine.
I found this [2] handy plugin that makes the values from Git config
available in code template variables. So, I propose that we make this
plugin recommended and that we change the template to something like
* @author ${git_user_name:git_config(user.name)}
${git_user_email:git_config(user.email)}
WDYT?
Thanks,
Peter
[1]
https://github.com/hawkular/hawkular-build-tools/blob/master/ide-configs/...
[2]
https://github.com/harmsk/eclipse-git-template-variables
On 01/16/2015 06:38 PM, John Mazzitelli wrote:
> I committed some Eclipse config files in hawkular-build-tools (under
ide-configs/eclipse) - see
https://github.com/hawkular/hawkular-build-tools/tree/master/ide-configs/...
>
> You import these into Eclipse to get formatting rules. These should
be closely aligned to the checkstyle rules, but if they aren't 100%,
feel free to commit fixes to them.
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/hawkular-dev
>
_______________________________________________
hawkular-dev mailing list
hawkular-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev