Hi Andrea,

I have no vote to cast. But I like the option to include some code
styling check on Travis. We do that in QGIS and it works. Maybe
checkstyle [1] is fine for our JAVA projects.

I can see that you and Ben are the ones managing the CI (thanks!). Are
you planning to include this code style enforcement on Travis? How it
would be? We could use the same script to do a local check on a pre
commit hook.

For personal usage, I've downloaded and installed AOSP code rules from
[2] for IntelliJ Idea and it seems to work.

Thank you for pushing for software quality,

Jorge Gustavo

[1] http://checkstyle.sourceforge.net/

[2]
https://raw.githubusercontent.com/aosp-mirror/platform_development/master/ide/intellij/codestyles/AndroidStyle.xml

On 25-03-2018 10:20, Andrea Aime wrote:
> Hi,
> I have setup a few branches for people to check the mass reformat
> attempt using AOSP style
> (and for GeoTools, also Google style).
> 
> Please take five minutes to review the Google style guide:
> https://google.github.io/styleguide/javaguide.html
> 
> The AOSP format is like the Google one, but indents 4 spaces and has
> continuation indents at 8 spaces (while Google does 2 and 4 respectively).
> 
> And then check the branches (look at files that you edit often and are
> familiar with).
> 
> AOSP convention (has maven tools to format and enforce):
> 
>   * https://github.com/aaime/geotools/tree/aosp_format
>   * https://github.com/aaime/geoserver/tree/aosp_format
>   * https://github.com/aaime/geowebcache/tree/aosp_format
> 
> Google style convention (has maven tools to format and enforce):
> 
>   * https://github.com/aaime/geotools/tree/google_format
> 
> Plain IntelliJ reformat (this one will have no support for build checks,
> will rot over time, unless we invest a lot of time to do a manual
> post-reformat that satisifies CheckStyle too):
> 
>   * https://github.com/aaime/geotools/tree/intellij_format
> 
> I did setup a Doodle for people to express an opinion on the various
> options, please cast your votes (try to vote anything 
> you can stomach, not just your preferred option):
> https://doodle.com/poll/gchp96ka93g5r7ek
> 
> I know formatting is a difficult topic, it has been causing troubles
> with pull request (we're asking people to
> follow rules that are not respected in the existing code) and indeed
> there is a number of files looking like s***t.
> However, I'm doing this for the benefit of the project and don't want to
> be flamed to a crisp two week down the
> line because people did not care to check before.
> 
> If there is not enough participation to the Doodle or there is no
> reasonable agreement I'll simply give up the attempt
> and leave the code as is.
> 
> Cheers
> Andrea
> 
> ==
> 
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
> 
> Ing. Andrea Aime
> @geowolf
> Technical Lead
> 
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
> 
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
> 
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
> 
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio
> stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti,
> copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento
> contrario ai principi dettati dal D.Lgs. 196/2003.
> 
> The information in this message and/or attachments, is intended solely
> for the attention and use of the named addressee(s) and may be
> confidential or proprietary in nature or covered by the provisions of
> privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data
> Protection Code).Any use not in accord with its purpose, any disclosure,
> reproduction, copying, distribution, or either dissemination, either
> whole or partial, is strictly forbidden except previous formal approval
> of the named addressee(s). If you are not the intended recipient, please
> contact immediately the sender by telephone, fax or e-mail and delete
> the information in this message that has been received in error. The
> sender does not give any warranty or accept liability as the content,
> accuracy or completeness of sent messages and accepts no responsibility
>  for changes made after they were sent or for other risks which arise as
> a result of e-mail transmission, viruses, etc.
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> 
> 
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
> 

-- 
Geomaster, Lda
Avenida Barros e Soares, 423
Nogueira
4715-214 Braga
NIF 510906109
Tm +351 910333888
Email j...@geomaster.pt
Site geomaster.pt
GPS 41.53322,-8.41929

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to