Re: [DISCUSS] Change maven code style

2022-10-19 Thread Mark Derricutt
On 20/10/2022 at 10:52:41 AM, Olivier Lamy wrote: > definitely +1 for palantir. > Having been trusted with clang-format on a few things - tried out spotless/pantir on a small project. +1 on that - it’s nice, tho - I wish it could be 2 space indents, going back to 4 spaces I suspect will be dis

Re: [DISCUSS] Change maven code style

2022-10-19 Thread Olivier Lamy
On Wed, 19 Oct 2022 at 17:05, Guillaume Nodet wrote: > > After having given that more thought, I think it would make sense to simply > reuse an existing formatter. It seems people are keen to align with a more > traditional code style, so I see two possibilities: > * palantir java format [1], a

Re: [DISCUSS] Change maven code style

2022-10-19 Thread Guillaume Nodet
After having given that more thought, I think it would make sense to simply reuse an existing formatter. It seems people are keen to align with a more traditional code style, so I see two possibilities: * palantir java format [1], a 120 column, 4 spaces indent formatter, well supported in Intell

Re: [DISCUSS] Change maven code style

2022-10-17 Thread Gary Gregory
For my own 2c, all the extra spacing drives me bananas. Gary On Mon, Oct 17, 2022, 09:26 Björn Raupach wrote: > As someone who has just started opening some PRs for Maven, I would > appreciate a more common Java Code Style. > > Not saying the style is bad, it is just confusing. Especially the C

Re: [DISCUSS] Change maven code style

2022-10-17 Thread Björn Raupach
As someone who has just started opening some PRs for Maven, I would appreciate a more common Java Code Style. Not saying the style is bad, it is just confusing. Especially the C++ like braces on a new line and the additional space between brackets. Not sure this will help gaining more committ

Re: [DISCUSS] Change maven code style

2022-10-16 Thread Olivier Lamy
Great job! while we are here and changing format to something more compact. I wonder if we could remove those extra (useless?) spaces such: providers.add( requireNonNull( service, "service instance cannot be null" ) ); On Sat, 15 Oct 2022 at 17:50, Guillaume Nodet wrote: > > Le ven. 14 oct. 20

Re: [DISCUSS] Change maven code style

2022-10-16 Thread Guillaume Nodet
Le dim. 16 oct. 2022 à 10:11, Hervé Boutemy a écrit : > key prerequisite is to make sure we don't screw history with the big > reformat > commits: I absolutely need to keep git blame provide useful feedback. > Right, good point. > it seems git blame --ignore-revs in Git 2.23 does what we need:

Re: [DISCUSS] Change maven code style

2022-10-16 Thread Hervé Boutemy
key prerequisite is to make sure we don't screw history with the big reformat commits: I absolutely need to keep git blame provide useful feedback. it seems git blame --ignore-revs in Git 2.23 does what we need: https://michaelheap.com/git-ignore-rev/ Does anybody have experience with this and i

Re: [DISCUSS] Change maven code style

2022-10-15 Thread Elliotte Rusty Harold
The only way this makes sense if it's fully automatic: all code is formatted on merge, period, without extra commits or human thought. Anything less is a big -1 from me. On Wed, Oct 12, 2022 at 4:24 PM Guillaume Nodet wrote: > > Related to the discussion about automatically formatting and sorting

Re: [DISCUSS] Change maven code style

2022-10-15 Thread Guillaume Nodet
Le ven. 14 oct. 2022 à 22:14, Jochen Wiedmann a écrit : > Hi, Guillaume, > > rather than suggesting (and, what's worse: discussing) code change > details: Is there, by any change, an existing code style, that we > might adopt? In particular.could we reuse tools, like an Eclipse > fornatter, and t

Re: [DISCUSS] Change maven code style

2022-10-14 Thread Jochen Wiedmann
Hi, Guillaume, rather than suggesting (and, what's worse: discussing) code change details: Is there, by any change, an existing code style, that we might adopt? In particular.could we reuse tools, like an Eclipse fornatter, and the like? Apart from that, I'd be more than happy about the changes,

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Enrico Olivelli
+1 thanks for bringing up this topic Enrico Il giorno gio 13 ott 2022 alle ore 06:42 Guillaume Nodet ha scritto: > > Le mer. 12 oct. 2022 à 22:02, Łukasz Dywicki a écrit : > > > Maybe its time to think of getting something like spotless [1] applied > > to all maven sources? > > > > I think I st

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Guillaume Nodet
Le mer. 12 oct. 2022 à 22:02, Łukasz Dywicki a écrit : > Maybe its time to think of getting something like spotless [1] applied > to all maven sources? > I think I started the other discussion exactly for that purpose. It's not specifically about spotless, but that one is just one tool, i was u

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Olivier Lamy
Agree on changing. +1 for spotless. I already used it and it's very convenient! And this will help to fix PRs which will be screwed. I didn't check in detail the format changes. But can we remove those extra useless spaces as well such: if ( !Files.exists( mojoConfigFile.toPath( ) ) ) On Thu,

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Łukasz Dywicki
Maybe its time to think of getting something like spotless [1] applied to all maven sources? I've seen it used in openhab [2] to rule multiple things and it works well with large codebases with multiple contributors. While it looks like there might be a middle ground between all IDEs, such g

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Arnaud Héritier
+1. If useful we can also add an editorconfig file to automatically configure IDEs but it’s a bit redundant with checkstyle Le mer. 12 oct. 2022 à 18:24, Guillaume Nodet a écrit : > Related to the discussion about automatically formatting and sorting > imports, I think it would be nice, given

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Gary Gregory
Non-binding +1 from me. Gary On Wed, Oct 12, 2022, 12:23 Guillaume Nodet wrote: > Related to the discussion about automatically formatting and sorting > imports, I think it would be nice, given the big reformat commits if those > PRs are to be merged, to eventually discuss some changes to those

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Slawomir Jaranowski
+1 for moving braces to the end line, it is difficult especially with lambda expression śr., 12 paź 2022 o 18:52 Tamás Cservenák napisał(a): > +1 for this formatting change. > > T > > On Wed, Oct 12, 2022, 18:23 Guillaume Nodet wrote: > > > Related to the discussion about automatically format

Re: [DISCUSS] Change maven code style

2022-10-12 Thread Tamás Cservenák
+1 for this formatting change. T On Wed, Oct 12, 2022, 18:23 Guillaume Nodet wrote: > Related to the discussion about automatically formatting and sorting > imports, I think it would be nice, given the big reformat commits if those > PRs are to be merged, to eventually discuss some changes to

[DISCUSS] Change maven code style

2022-10-12 Thread Guillaume Nodet
Related to the discussion about automatically formatting and sorting imports, I think it would be nice, given the big reformat commits if those PRs are to be merged, to eventually discuss some changes to those code style. In particular, I found out that the code is very sparse and my screen is mor

Re: Maven Code Style and imports layouts

2021-11-27 Thread Hervé BOUTEMY
ards, > > > > Hervé > > > > Le vendredi 17 septembre 2021, 23:19:25 CET Slawomir Jaranowski a écrit : > > > Hi, > > > > > > We have described many rules about code style on Maven Code Style And > > > > Code > > > > > C

Re: Maven Code Style and imports layouts

2021-11-13 Thread Romain Manni-Bucau
bjects, I'll merge in 1 week > > Regards, > > Hervé > > Le vendredi 17 septembre 2021, 23:19:25 CET Slawomir Jaranowski a écrit : > > Hi, > > > > We have described many rules about code style on Maven Code Style And > Code > > Conventions [1]. > &g

Re: Maven Code Style and imports layouts

2021-11-13 Thread Hervé BOUTEMY
; Hi, > > We have described many rules about code style on Maven Code Style And Code > Conventions [1]. > > One item missing for me is how java imports should be ordered and groped. > I can setup it in IDE and it is very useful to use code formatting with > tools. > I thi

Re: Maven Code Style and imports layouts

2021-10-26 Thread Slawomir Jaranowski
iles, or only looks in changed files. > > > In the first step, preparing documentation is most important - may be > > > enough. > > > > > > I've created issue for it [1] > > > > > > Please vote for a proposition or give another one. > >

Re: Maven Code Style and imports layouts

2021-10-18 Thread Xeno Amess
may be > > > enough. > > > > > > I've created issue for it [1] > > > > > > Please vote for a proposition or give another one. > > > > > > > > > [1] https://issues.apache.org/jira/browse/MNGSITE-465 > > > >

Re: Maven Code Style and imports layouts

2021-10-17 Thread Benjamin Marwell
ttps://issues.apache.org/jira/browse/MNGSITE-465 > > > > > > > > sob., 18 wrz 2021 o 20:38 Elliotte Rusty Harold > > napisał(a): > > > >> simpler is better, though perhaps the fundamental rule should be don't > >> reporter what's alread

Re: Maven Code Style and imports layouts

2021-10-17 Thread Slawomir Jaranowski
; reporter what's already there. That is, avoid needless churn. >> >> My preferred style is: >> >> static imports >> blank line >> all other imports alphabetically >> >> >> On Fri, Sep 17, 2021 at 9:19 PM Slawomir Jaranowski >> wrote: >>

Re: Maven Code Style and imports layouts

2021-09-23 Thread Slawomir Jaranowski
gt; reporter what's already there. That is, avoid needless churn. > > My preferred style is: > > static imports > blank line > all other imports alphabetically > > > On Fri, Sep 17, 2021 at 9:19 PM Slawomir Jaranowski > wrote: > > > > Hi, >

Re: Maven Code Style and imports layouts

2021-09-18 Thread Elliotte Rusty Harold
Hi, > > We have described many rules about code style on Maven Code Style And Code > Conventions [1]. > > One item missing for me is how java imports should be ordered and groped. > I can setup it in IDE and it is very useful to use code formatting with > tools. > I think th

Maven Code Style and imports layouts

2021-09-17 Thread Slawomir Jaranowski
Hi, We have described many rules about code style on Maven Code Style And Code Conventions [1]. One item missing for me is how java imports should be ordered and groped. I can setup it in IDE and it is very useful to use code formatting with tools. I think that all propositions in this case will

Re: Checkstyle config for Maven code style

2011-05-14 Thread Simone Tripodi
one, > I have answered to you @commons-dev ml. > Sorry for late response, I was on a usually long French lunch :-) > > 2011/5/14 Simone Tripodi : >> Salut Hervé, >> thanks for your kind reply!!! What we need is just a maven_checks.xml >> sample for Maven code style, we

Re: Checkstyle config for Maven code style

2011-05-14 Thread Olivier Lamy
Hello Simone, I have answered to you @commons-dev ml. Sorry for late response, I was on a usually long French lunch :-) 2011/5/14 Simone Tripodi : > Salut Hervé, > thanks for your kind reply!!! What we need is just a maven_checks.xml > sample for Maven code style, we already set up IDEs

Re: Checkstyle config for Maven code style

2011-05-14 Thread Simone Tripodi
Salut Hervé, thanks for your kind reply!!! What we need is just a maven_checks.xml sample for Maven code style, we already set up IDEs, pom and reformatted code, now we need to setup the proper config! Can you point me please to a checkstyle config? Many thanks in advance! Bonne fin de semaine

Re: Checkstyle config for Maven code style

2011-05-14 Thread Hervé BOUTEMY
Hi Simone, IDE configurations are available at [1]. Checkstyle as a pom configuration is config/maven_checks.xml: see plugin documentation [2] or Maven parent pom content [3]. Regards, Hervé [1] http://maven.apache.org/developers/conventions/code.html [2] http://maven.apache.org/plugins/maven-

Checkstyle config for Maven code style

2011-05-14 Thread Simone Tripodi
Hi all Maven devs, in Apache Commons OGNL (incubation) we're planning to adopt Maven conventions for code, can you point me please to a checkstyle configuration for code style convention described on [1]? Many thanks in advance, have a nice weekend! Simo [1] http://maven.apache.org/developers/conv

Re: maven code style - eclipse

2007-03-14 Thread Kenney Westerhof
Dan Tran wrote: What do you mean by "check it with checkstyle first"?? I mean that checkstyle should be the ultimate source of our code formats, and I want code formatted with the eclipse codestyle to be checked by checkstyle to see if it's perfect. Any how, I would rather getting it from o

Re: maven code style - eclipse

2007-03-13 Thread Dan Tran
What do you mean by "check it with checkstyle first"?? Any how, I would rather getting it from official place ( http://maven.apache.org/developers/maven-eclipse-codestyle.xml ) in the long term. I will checkout the one at the eclipse plugin's svn -D On 3/13/07, Kenney Westerhof <[EMAIL PROTEC

Re: maven code style - eclipse

2007-03-13 Thread Kenney Westerhof
Dan Tran wrote: http://maven.apache.org/developers/maven-eclipse-codestyle.xml seems to be out of date ( the throws, extend, etc do not split ) Do we have another official one? I use https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-eclipse-plugin/src/optional/eclipse-config/maven-

maven code style - eclipse

2007-03-12 Thread Dan Tran
http://maven.apache.org/developers/maven-eclipse-codestyle.xml seems to be out of date ( the throws, extend, etc do not split ) Do we have another official one? Thanks -D

maven code style

2005-01-01 Thread Brett Porter
Hi, I've prepared an intelliJ configuration for the code style that seems to match the majority of the Maven codebase, and one most developers seem happy to use going forward. Drop it into ~/.IntelliJIDEA/config/codestyles and restart, then select it from settings. Does anyone have any comments