Project badges now available on LGTM

June 08, 2018

Category

Reading time

Following the recent introduction of Project scores and grades, and thanks to Shields.io, we've made it possible for you to add badges with LGTM information to your project pages.

If you navigate to the Integrations tab for a particular project on LGTM, you'll notice we've introduced a section that will generate both Markdown and HTML snippets to embed badges for you, so all you have to do is copy and paste.

Screenshot of snippet generation

There are two kinds of badges available: an alert count, and a project grade for each language that we analyze for your project. Given that we calculate grades on a per-language basis, there will be one badge for each language you want to display information for.

If you're using other badges from Shields.io, or a similar service, these ones look great alongside them! Here's what it looks like on a GitHub project:

Screenshot of badges in GitHub README

Because we're using Shields.io, these badges are entirely customizable. You can, if you wish, change their style, colors and label. Instructions are available on their website.

If you have further questions or comments, feel free to open a discussion on discuss.lgtm.com.

Note: Post originally published on LGTM.com on June 08, 2018

Join us in securing the software that runs the world!

Enter your email address below to stay up-to-date with Semmle news, security announcements and product updates.

Loading...