ppwwyyxx / OpenPano

Automatic Panorama Stitching From Scratch
MIT License
1.86k stars 553 forks source link

Add LGTM code quality badges #73

Closed xcorail closed 4 years ago

xcorail commented 6 years ago

Hi there!

I thought you might be interested in adding these LGTM code quality badges to your project, to show how you care about code quality and encourage contributors to do the same. To get an idea of the analyses reflected by these grades, check the alerts discovered by LGTM.

N.B.: I am on the team behind LGTM.com, I'd appreciate your feedback on this initiative, whether you're interested or not, if you find time to drop me a line. Thanks.

ppwwyyxx commented 5 years ago

Thanks for the suggestions. I take a look at the alerts. It does find something useful but I'd rather ignore most of them. For example I prefer to not do the int->size_t casting if I know there won't be any overflow.

I found another issue with another of my projects: https://github.com/tensorpack/tensorpack. It was moved from ppwwyyxx/tensorpack, and it seems like LGTM cannot identify this. It can only shows commits before the move at https://lgtm.com/projects/g/ppwwyyxx/tensorpack .

xcorail commented 5 years ago

Hello @ppwwyyxx

It does find something useful but I'd rather ignore most of them

I found another issue with another of my projects: https://github.com/tensorpack/tensorpack.

Did you try to add it at https://lgtm.com/dashboard?

Cheers, thanks a lot for the feedback

ppwwyyxx commented 5 years ago

Adding https://github.com/tensorpack/tensorpack to the dashboard will only give me "ppwwyyxx/tensorpack", which does not have any of the new commits after the move.

xcorail commented 5 years ago

Hello @ppwwyyxx

[2018-09-15 07:33:08] [build] Complete output from command python setup.py egg_info: [2018-09-15 07:33:08] [build] You need to install libcap development headers to build this module [2018-09-15 07:33:08] [build] [2018-09-15 07:33:08] [build] ---------------------------------------- [2018-09-15 07:33:08] [build] Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-svMEXT/python-prctl/

You need to add libcap installation to your LGTM configuration file. Do you want me to propose a PR to show you how it's done?

ppwwyyxx commented 5 years ago

Oh sorry I didn't notice that. Actually the package python-prctl which depends on libcap is only an optional dependency. The library is fully functional without it. But I guess the package extraction heuristics will take everything it sees. Thanks!

xcorail commented 5 years ago

So, do you want me to propose a PR for fixing the build, or do you want to try it out by yourself?

xcorail commented 5 years ago

Hey @ppwwyyxx

Just wanted to let you know that during 6 weeks, for each LGTM alert fixed, we'll make a donation to WWF. You can also win a free ticket to GitHub Universe, with travel and accommodation. Details here: https://competitions.lgtm.com/ghu-2018