Catherine,

Yes, make sense for me. Maybe also if you could find some Rubby checkstyle 
rules, as there is substantial amount of Rubby in there as well.
Regarding checkstyle plugin to Jenkins, I don’t know about that. As far as I 
know, checkstyle need to be enforce at the maven level, to be enforced at build 
time.
We should have a way to fail the build on error as just warn the user of 
checkstyle violation but not fail the build (for interim state when project are 
migrating to become “checkstyle” compliant.

Gary, thanks for the wiki pointer. This is good.

Regards,
Alexis
> On Jul 13, 2017, at 8:28 AM, Lefevre, Catherine <[email protected]> wrote:
> 
> Alexis, Gary,
> 
> We should also consider the following reference since ONAP is not only Java 
> code base.
> 
>  *   Google Python Style Guideline: 
> https://google.github.io/styleguide/pyguide.html 
> <https://google.github.io/styleguide/pyguide.html>
> Here is another one concerning Check style Coverage.
> 
>  *   Google's Java Style Check style Coverage: 
> http://checkstyle.sourceforge.net/google_style.html 
> <http://checkstyle.sourceforge.net/google_style.html>
> These have been added as a comment to the ONAP wiki page
> https://wiki.onap.org/display/DW/Java+code+style 
> <https://wiki.onap.org/display/DW/Java+code+style>
> 
> Best regards
> Catherine
> 
> From: [email protected] 
> <mailto:[email protected]> 
> [mailto:[email protected] 
> <mailto:[email protected]>] On Behalf Of Lefevre, Catherine
> Sent: Thursday, July 13, 2017 2:18 PM
> To: Gary Wu <[email protected] <mailto:[email protected]>>; Alexis de 
> Talhouët <[email protected] <mailto:[email protected]>>; 
> [email protected] <mailto:[email protected]>
> Subject: Re: [onap-discuss] [integration] Refactor CLAMP to inherit from 
> oparent
> 
> Good morning Alexis, Gary,
> 
> I confirm that we can use CLAMP to do a pilot.
> Will you also contact LF to integrate the Checkstyle plug-in to Jenkins as 
> discussed during the Integration meeting?
> 
> Many thanks & regards
> Catherine
> 
> From: [email protected] 
> <mailto:[email protected]><mailto:[email protected]
>  <mailto:[email protected]>> 
> [mailto:[email protected] 
> <mailto:[email protected]>] On Behalf Of Gary Wu
> Sent: Wednesday, July 12, 2017 7:31 PM
> To: Alexis de Talhouët <[email protected] 
> <mailto:[email protected]><mailto:[email protected] 
> <mailto:[email protected]>>>
> Cc: [email protected] 
> <mailto:[email protected]><mailto:[email protected] 
> <mailto:[email protected]>>
> Subject: Re: [onap-discuss] [integration] Refactor CLAMP to inherit from 
> oparent
> 
> Looks like the Java code style was already documented by Gildas here:
> 
> 1.     Developer 
> Wiki<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_Developer-2BWiki-3Fsrc-3Dbreadcrumbs-2Dexpanded&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=66ObImPAUA0o2f1hTGknnnv5ScXvX8EnREJCPHHBY5M&m=sZve6ovGP3QNz9Fb83x8a6AH6iuvZlx0AYCJSR46RcU&s=tQXxdbvC0p5VCQody6GiUzT2TKwgHvlqIqkuwjKbelY&e=>
>  > Getting 
> Involved<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_Getting-2BInvolved-3Fsrc-3Dbreadcrumbs-2Dexpanded&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=66ObImPAUA0o2f1hTGknnnv5ScXvX8EnREJCPHHBY5M&m=sZve6ovGP3QNz9Fb83x8a6AH6iuvZlx0AYCJSR46RcU&s=mP6EAdoDsTZFzO8BTgXz9BUOgAqPE0LKdomBqQor3cM&e=>
>  > Developer Best 
> Practices<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_Developer-2BBest-2BPractices-3Fsrc-3Dbreadcrumbs-2Dparent&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=66ObImPAUA0o2f1hTGknnnv5ScXvX8EnREJCPHHBY5M&m=sZve6ovGP3QNz9Fb83x8a6AH6iuvZlx0AYCJSR46RcU&s=gafwynFsHuSwTyYCpXl9A1TDUefYkXhbqsqCe9uOlHg&e=>
>  > Java code style
> https://wiki.onap.org/display/DW/Java+code+style<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_Java-2Bcode-2Bstyle&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=66ObImPAUA0o2f1hTGknnnv5ScXvX8EnREJCPHHBY5M&m=sZve6ovGP3QNz9Fb83x8a6AH6iuvZlx0AYCJSR46RcU&s=7qWaAq1MdmNk3zQBaxmdzi5H_8B-oaQnGT594fcuA3Q&e=>
> 
> Thanks,
> Gary
> 
> From: Alexis de Talhouët [mailto:[email protected]]
> Sent: Wednesday, July 12, 2017 3:32 AM
> To: Gary Wu <[email protected]<mailto:[email protected]>>
> Cc: Gildas Lanilis 
> <[email protected]<mailto:[email protected]>>; LEFEVRE, 
> CATHERINE <[email protected]<mailto:[email protected]>>; 
> [email protected]<mailto:[email protected]>
> Subject: Re: [onap-discuss] [integration] Refactor CLAMP to inherit from 
> oparent
> 
> Ok, good. Thanks for the pointers. Google Java Style what is use as well in 
> ODL, so I can say I'm already familiar with them :)
> One we have a wiki for that, I strongly believe advertising this widly 
> (through this mailing list) can be a good start to get devs onboard and/or 
> familiar with the check styles rules that would be enforced.
> 
> Thanks,
> Alexis
> 
> Le mardi 11 juillet 2017, Gary Wu 
> <[email protected]<mailto:[email protected]>> a écrit :
> Currently we’re using what was defined for OPEN-O:  
> https://wiki.open-o.org/display/GI/OPEN-O+Java+code+style<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.open-2Do.org_display_GI_OPEN-2DO-2BJava-2Bcode-2Bstyle&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=66ObImPAUA0o2f1hTGknnnv5ScXvX8EnREJCPHHBY5M&m=sZve6ovGP3QNz9Fb83x8a6AH6iuvZlx0AYCJSR46RcU&s=NrgqXtgwAtTFP6pIW2z7W9b2I3Yoi1aWHmD-QZr2YFQ&e=>,
>  namely:
> 
> Google Java Style with some modifications:
> 4.2 Block indentation: +4 spaces
> 4.4 Column limit: 120
> 
> Gildas, any ideas where we should put this in the ONAP wiki?
> 
> Thanks,
> Gary
> 
> From: Alexis de Talhouët 
> [mailto:[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>]
> Sent: Tuesday, July 11, 2017 2:11 PM
> To: Gary Wu 
> <[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>>
> Cc: LEFEVRE, CATHERINE 
> <[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>>; 
> [email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>
> Subject: Re: [onap-discuss] [integration] Refactor CLAMP to inherit from 
> oparent
> 
> 
> On Jul 11, 2017, at 2:27 PM, Gary Wu 
> <[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>> 
> wrote:
> 
> Hi Catherine,
> 
> In today’s Integration meeting, we discussed having CLAMP pilot trials around 
> coding styles.  In OPEN-O we centrally defined coding styles in the oparent 
> project/repo, and it would be great if we can do likewise for ONAP so we can 
> avoid duplicate or conflicting definitions across projects.  Do you think we 
> can have CLAMP do a pilot run on inheriting from oparent as well?
> 
> Is there an place where the code style rules have been explained? I believe a 
> wiki page to explain what are the agreed rules could help, similar to what 
> ODL has here: 
> https://wiki.opendaylight.org/view/BestPractices/Coding_Guidelines#General_Code_Style<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.opendaylight.org_view_BestPractices_Coding-5FGuidelines-23General-5FCode-5FStyle&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=66ObImPAUA0o2f1hTGknnnv5ScXvX8EnREJCPHHBY5M&m=sZve6ovGP3QNz9Fb83x8a6AH6iuvZlx0AYCJSR46RcU&s=jClgbS9I2MBlF3aZ3PCMufqDq9MCePb54KYqvpr22u4&e=>
> 
> At any rate, thanks for putting this up! It’s going to be a long journey to 
> enforce checkstyle considering the amount of LoC in ONAP.
> 
> Thanks,
> Alexis
> 
> 
> To recap the goals of oparent:  centrally define shared parent POM 
> definitions such as nexus (distributionManagement) location, coding styles, 
> license checks, coding style checks, sonar setup, etc.
> 
> To inherit from oparent:  modify the project’s POM to ensure that all POM 
> files ultimately inherit from
> 
>    <parent>
>        <groupId>org.onap.oparent</groupId>
>        <artifactId>oparent</artifactId>
>        <version>1.0.0-SNAPSHOT</version>
>    </parent>
> 
> And also remove any local definitions within the project POMs around 
> distributionManagement, coding styles, etc., so that those properties are 
> derived from oparent instead.
> 
> Please let us know if you run into anything that would require changes or 
> enhancements to the oparent POMs.
> 
> Thanks,
> Gary
> 
> 
> _______________________________________________
> onap-discuss mailing list
> [email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>
> https://lists.onap.org/mailman/listinfo/onap-discuss<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.onap.org_mailman_listinfo_onap-2Ddiscuss&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=66ObImPAUA0o2f1hTGknnnv5ScXvX8EnREJCPHHBY5M&m=sZve6ovGP3QNz9Fb83x8a6AH6iuvZlx0AYCJSR46RcU&s=gy1JVtzwYCSVB2ip5Cg8F12_ifdLzWwUA1ciuKS9ENY&e=>
> 
> <winmail.dat>

_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to