[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-08-25 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17184832#comment-17184832
 ] 

Michael Vorburger commented on FINERACT-821:


[~aleks] similar to FINERACT-733, let's close this for 1.4.0 instead of keeping 
it open for 1.5.0; MUCH work happened here, and this should show up on 1.4.0 
Release Notes.

[~Manthan] if you had planned any more more re. this, please create separate 
new JIRA issues, and link them as Related to this one.

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.5.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-07-22 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17163081#comment-17163081
 ] 

Michael Vorburger commented on FINERACT-821:


> Manthan Surkar what, if anything, is actually left to do on this issue now?

* 
https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml
 looks pretty good now?
* https://github.com/apache/fineract/pull/1019
* https://github.com/apache/fineract/pull/985

FINERACT-971 has follow-up for new additional checks.

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-07-22 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17163076#comment-17163076
 ] 

Michael Vorburger commented on FINERACT-821:


[~Manthan] what, if anything, is actually left to do on this issue now?

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-06-15 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17135611#comment-17135611
 ] 

Michael Vorburger commented on FINERACT-821:


Yeah now that we have completed FINERACT-1006 I think letting Spotless handle 
1. & 2. above is the right way - go for it!

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-06-14 Thread Manthan Surkar (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17135317#comment-17135317
 ] 

Manthan Surkar commented on FINERACT-821:
-

[~vorburger][~awasum] We need to think on two checkstyles currently:
Indentation and line length-
1. Line Length - I would say let spotless handle it, the reason is it does it 
pretty well. Checkstyle acts dumb for this particularly checkstyles it expects 
strings/names to also follow (Which we can remove by regex but there are many 
corner cases and hard to handle). Spotless wrap the lines where it is best 
possible ignores things we cannot wrap. That is what is expected ;) 
2. Indentation - I am trying to make spotless and checkstyles match, but 
unfortunately they want different indentations on some particulars instances. 
Now we have an option to let checkstyle handle it or spotless, spotless wins 
again because who wants to indent the lines themselves? 

I have tested that spotless with current config does handle both this checks 
correctly, what are your opinions? 

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-05-11 Thread Awasum Yannick (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17104749#comment-17104749
 ] 

Awasum Yannick commented on FINERACT-821:
-

[~Collins]. Pick something else from the backlog to work on. [~Manthan] is 
claiming this one for this GSoC work. Next time [~Manthan] , dont wait for 
someone to show interest on an issue before you self assign to yourself. Pick 
one or 2 issues at a time to work on and give room for others. You can go 
through the issue tracker and pick the issues you are interested in...so that 
people dont get confused. One person should own and work on a single issue in 
most cases.

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-05-11 Thread Wandji Collins (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17104437#comment-17104437
 ] 

Wandji Collins commented on FINERACT-821:
-

Link to the PR https://github.com/apache/fineract/pull/883

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-05-11 Thread Wandji Collins (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17104176#comment-17104176
 ] 

Wandji Collins commented on FINERACT-821:
-

Sure [~Manthan] will be glad to help.

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Manthan Surkar
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-05-08 Thread Manthan Surkar (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17102583#comment-17102583
 ] 

Manthan Surkar commented on FINERACT-821:
-

I am doing a self-assign to this(part of my GSoC), however, [~Collins] I will 
be really glad if you help me along the way ;) 
-Thanks 

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-05-05 Thread Wandji Collins (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17099822#comment-17099822
 ] 

Wandji Collins commented on FINERACT-821:
-

I'm currently working on this.

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-04-12 Thread Awasum Yannick (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17081680#comment-17081680
 ] 

Awasum Yannick commented on FINERACT-821:
-

[~xurror], Are you still working on this? If not, you may want to liberate it 
lets know which issues are still available. I see you are focused on completely 
your PRs so they can be merged and may not have time for this.

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Yemdjih Kaze Nasser
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-03-31 Thread Yemdjih Kaze Nasser (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17071560#comment-17071560
 ] 

Yemdjih Kaze Nasser commented on FINERACT-821:
--

I'll pick from where you left.


> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-01-26 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17023961#comment-17023961
 ] 

Michael Vorburger commented on FINERACT-821:


I'm Stopping Progress and unassign this issue from myself to signal that I'm 
hoping other contributors step up to enable enforcing more rules.

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Michael Vorburger
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-01-23 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17021838#comment-17021838
 ] 

Michael Vorburger commented on FINERACT-821:


[https://lists.apache.org/thread.html/r40d39423999b55a4ac2fa96aba0a16b91f80ac9f8e4ecb4c372c61c8%40%3Cdev.fineract.apache.org%3E]
 (also on [https://markmail.org/message/hk42ip7feruoaooo]) summarizes the 
current status (we're now enforcing whitespace related rules for CR instead of 
CR/LF, forbid trailing spaces and use of spaces instead of tabs!) and the next 
steps expected from contributors (enable moar rules, by fixing existing 
violations, and then un-commenting in 
[https://github.com/apache/fineract/blob/develop/fineract-provider/config/checkstyle/checkstyle.xml],
 gradually).

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Michael Vorburger
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-01-12 Thread Yemdjih Kaze Nasser (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17013860#comment-17013860
 ] 

Yemdjih Kaze Nasser commented on FINERACT-821:
--

Sure, I'm up for this

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Michael Vorburger
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-01-12 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17013819#comment-17013819
 ] 

Michael Vorburger commented on FINERACT-821:


I guess the only way to realistically really make progress on something like 
this for a large existing codebase like Fineract is to do this gradually... I 
propose that we make a start with first cleaning up all whitespace issues, so 
for all Java files: 1. convert all Java files from DOS to UNIX line ending, 2. 
replace Tabs with 4 Spaces, 3. remove all trailing spaces; [pull/688 
|https://github.com/apache/fineract/pull/688] does that.

We can then enforce that via Checkstyle. The initial Checkstyle XML 
configuration file I'll contribute will have many rules, but most of them still 
commented out, and only the whitespace related ones activated. The idea would 
be that we (myself or, hopefully, other contributors!) over time then gradually 
enable more of those rules, after fixing existing violations: 
[pull/689|https://github.com/apache/fineract/pull/689]

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Assignee: Michael Vorburger
>Priority: Major
> Fix For: 1.4.0
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (FINERACT-821) Enable and enforce (!) Checkstyle in Fineract

2020-01-10 Thread Michael Vorburger (Jira)


[ 
https://issues.apache.org/jira/browse/FINERACT-821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17013304#comment-17013304
 ] 

Michael Vorburger commented on FINERACT-821:


[https://github.com/apache/fineract/compare/develop...vorburger:checkstyle1] 
makes a start with this...

> Enable and enforce (!) Checkstyle in Fineract
> -
>
> Key: FINERACT-821
> URL: https://issues.apache.org/jira/browse/FINERACT-821
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Michael Vorburger
>Priority: Major
>
> as suggested in FINERACT-712, we really should enable Checkstyle in Fineract.
> My past experience in such matters, confirmed by FINERACT-702, is that these 
> things only ever work and have a lasting effect if you bulk fix all 
> violations and switch on enforcement. If you only report, it's mostly useless.
> As for specific Checkstyle rules, I have spent a fair amount of time in a 
> past life on a project (which I'm currently no longer actively invoved in) to 
> refine a what I believe to be "good" Checkstyle rule set, we could reuse this 
> for Fineract (it's EPL licensed, so copy/pasting it is perfectly fine), see 
> https://github.com/opendaylight/odlparent/blob/master/checkstyle/src/main/resources/odl_checks.xml



--
This message was sent by Atlassian Jira
(v8.3.4#803005)