drill icon indicating copy to clipboard operation
drill copied to clipboard

DRILL-7856 Add lgtm badge to Drill and fix alerts

Open DanielT504 opened this issue 4 years ago • 7 comments

DRILL-7856: Add lgtm badge to Drill and fix alerts

Description

Added lgtm badges to README.

Documentation

n/a

Testing

n/a

DanielT504 avatar Mar 08 '21 22:03 DanielT504

@DanielT504, please note that the aim of the DRILL-7856 is also to fix most of the alerts found by the lgtm service.

Hi, I understand that fixing the alerts is the priority, but given as there are hundreds I am wondering if I can make a separate issue(s) for fixing these alerts, and get this request accepted in the meantime, then target specific alerts afterwards.

DanielT504 avatar Mar 16 '21 23:03 DanielT504

@vvysotskyi Honestly there are a lot of stuff there that I'd be down to fix. @mkusnir has shown interest as well. Would it be alright if we made a few large prs to try and fix all of the alerts?

eevanwong avatar Mar 17 '21 04:03 eevanwong

@vvysotskyi Honestly there are a lot of stuff there that I'd be down to fix. @mkusnir has shown interest as well. Would it be alright if we made a few large prs to try and fix all of the alerts?

@DanielT504, If you and @mkusnir will agree to that, I'm ok with that approach. Let's do this. Can you create a master JIRA and then add sub tasks for the alerts as you go?

cgivre avatar Mar 17 '21 12:03 cgivre

@cgivre Hey I've made the JIRA https://issues.apache.org/jira/projects/DRILL/issues/DRILL-7878?filter=updatedrecently, is there anything should I add to them?

eevanwong avatar Mar 17 '21 15:03 eevanwong

I'm also ok with such an approach. But anyway, we can merge this PR only after those warnings are resolved, though in separate PRs.

vvysotskyi avatar Mar 17 '21 16:03 vvysotskyi

@vvysotskyi yeah for sure. A big thing is that we want to make sure that what we're changing/surpressing isnt too major. So with each alert (or file w/ alerts) I have a small justification of why I surpressed/changed it. It'd be really cluttered if we put them all on 3 big prs. Would you prefer it if we had smaller prs, or just do as many as possible?

eevanwong avatar Mar 17 '21 17:03 eevanwong

I prefer a fewer number of PRs if possible. Sometimes it is required to look through the commits history or commit annotations in the class to find a commit with some changes. Also, it is easier for the reviewer to review similar changes in a single PR, and it will be possible to point out additional places with similar issues.

vvysotskyi avatar Mar 17 '21 20:03 vvysotskyi

LGTM is closing in Dec, 2022. https://github.blog/2022-08-15-the-next-step-for-lgtm-com-github-code-scanning/

cgivre avatar Aug 23 '22 14:08 cgivre