From cadc21fe23d9e415d30f75805edf145ddd97403d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 9 Jun 2019 15:40:28 +0200 Subject: [PATCH] README: add lgtm.com badges --- Makefile | 4 +++- README.md | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fe2c0e..2c31e31 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,9 @@ format: cshatag clang-format -i *.c README.md: cshatag.1 Makefile - @echo "[![Build Status](https://travis-ci.org/rfjakob/cshatag.svg?branch=master)](https://travis-ci.org/rfjakob/cshatag)" > README.md + @echo '[![Build Status](https://travis-ci.org/rfjakob/cshatag.svg?branch=master)](https://travis-ci.org/rfjakob/cshatag)' > README.md + @echo '[![Total alerts](https://img.shields.io/lgtm/alerts/g/rfjakob/cshatag.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rfjakob/cshatag/alerts/)' >> README.md + @echo '[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/rfjakob/cshatag.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rfjakob/cshatag/context:cpp)' >> README.md @echo >> README.md @echo '```' >> README.md MANWIDTH=80 man ./cshatag.1 >> README.md diff --git a/README.md b/README.md index 42c6a48..e0fd66c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ [![Build Status](https://travis-ci.org/rfjakob/cshatag.svg?branch=master)](https://travis-ci.org/rfjakob/cshatag) +[![Total alerts](https://img.shields.io/lgtm/alerts/g/rfjakob/cshatag.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rfjakob/cshatag/alerts/) +[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/rfjakob/cshatag.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rfjakob/cshatag/context:cpp) ``` CSHATAG(1) User Manuals CSHATAG(1)