GitHub CodeQL (formerly Semmle LGTM)

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: LGTM (split from 'Code quality checker' thread)

Post by Chris_G »

Thanks Saso,
This is a very interesting tool.
saso wrote: Mon Oct 21, 2019 11:53 am (hopefully you are not angry about it Chris :roll:)
You could have choosen a "good" test workbench.
The number of errors put a shame on me ... :lol:
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: LGTM (split from 'Code quality checker' thread)

Post by saso »

Chris_G wrote: Mon Oct 21, 2019 1:24 pm You could have choosen a "good" test workbench.
The number of errors put a shame on me ... :lol:
What, there are just 8 errors :) don't feel like having to fix all of it, take it just informational and to review errors and warnings is more important then the recommendations... Now that it is set up, this should be creating this reports automatically daily from the latest code, so unless you want to set up some configurations, there is nothing else to do, except reviewing the results from time to time of course :)
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: LGTM (split from 'Code quality checker' thread)

Post by Chris_G »

Thanks. I bookmarked it.
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: LGTM (split from 'Code quality checker' thread)

Post by yorik »

I added the LGTM python quality badge to our readme. I think it will be a great incentive to polish our python code... ;)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: LGTM (split from 'Code quality checker' thread)

Post by Kunda1 »

First PR with some initial LGTM recommended fixes
It's educational :)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: LGTM (split from 'Code quality checker' thread)

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
ezzieyguywuf
Posts: 656
Joined: Tue May 19, 2015 1:11 am

Re: LGTM (split from 'Code quality checker' thread)

Post by ezzieyguywuf »

Kunda1 wrote: Tue Oct 22, 2019 4:43 pm Took care of all the s/== None/is None/ LGTM issues and some other issues in:
https://github.com/FreeCAD/FreeCAD/pull/2645
https://github.com/FreeCAD/FreeCAD/pull/2648
https://github.com/FreeCAD/FreeCAD/pull/2649
*nods* “x is None” should def be used
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: LGTM (split from 'Code quality checker' thread)

Post by saso »

Kunda1 wrote: Tue Oct 22, 2019 4:43 pm Took care of all the s/== None/is None/ LGTM issues and some other issues in:
yay, you have pushed it to code quality A :)
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: LGTM (split from 'Code quality checker' thread)

Post by yorik »

saso wrote: Fri Oct 25, 2019 9:27 pm yay, you have pushed it to code quality A
Excellent!!! :ugeek:
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: LGTM (split from 'Code quality checker' thread)

Post by Kunda1 »

saso wrote: Fri Oct 25, 2019 9:27 pm yay, you have pushed it to code quality A
There are still many more recommendations for us to consider
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply