[keycloak-dev] Code style

Stian Thorgersen sthorger at redhat.com
Mon Jan 25 06:02:17 EST 2016


I'll take a look at it, but sounds like exactly what we'll need. We can
just copy those to Keycloak, then do a batch format of the code. In the
future we can consider if a checkstyle is required.

On 25 January 2016 at 11:33, Marek Posolda <mposolda at redhat.com> wrote:

> On 21/01/16 20:28, Stian Thorgersen wrote:
>
> I'm wasn't planing on having a lengthy discussion about code style. It's
> usually just a matter of personal preference and folks do get used to most
> things.
>
> Questions are:
>
> * Should we have a code style?
> * What IDEs are Keycloak devs using (I'm crossing my fingers everyone says
> IntelliJ)
> * Should we enable the checkstyle plugin?
>
> With regards to the actual style my first thought was to base it on
> WildFly code style (we do build on top of it after all). However, they do
> not have one for IntelliJ, which makes it a no go IMO. Further I don't
> particularly want to craft one (and try to get configs for IntelliJ match
> Eclipse, which also passes the checkstyle). So do anyone have suggestions
> of other projects we can borrow from?
>
> I am using the Intellij and have the codestyle file imported from liveoak.
> Among other things, it has "import package.*" prevented (related discussion
> in other thread).
>
> We had netbeans, eclipse and intellij there and I hope there were in sync:
> https://github.com/liveoak-io/liveoak/tree/master/support/ide-configs .
>
> Seeing there was also checkstyle as well:
> https://github.com/liveoak-io/liveoak/blob/master/support/build-config/src/main/resources/liveoak-checkstyle/checkstyle.xml
>
> Marek
>
>
> If we're going to incorporate a code style and re-format the current code
> case now is a very good time.
>
>
> _______________________________________________
> keycloak-dev mailing listkeycloak-dev at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160125/d4a58358/attachment.html 


More information about the keycloak-dev mailing list