From 75c8da48fa591cfe448fbb23253cc109a5de9333 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Tue, 10 Oct 2023 21:37:23 +0400 Subject: [PATCH] Add cpplint badge --- .gitattributes | 1 + .github/workflows/cpplint.yml | 2 +- README.md | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 0478399..a04cd83 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ src/binding.gyp linguist-vendored +src/include/** linguist-vendored diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 4b9ac37..fe42ea7 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -43,4 +43,4 @@ jobs: - name: Run Cpplint run: | node -e "require('addon-tools-raub').cpcpplint()" - cpplint --recursive ./src + cpplint --recursive ./src/cpp diff --git a/README.md b/README.md index e5b89ef..dddcdcb 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ This is a part of [Node3D](https://github.com/node-3d) project. [![NPM](https://badge.fury.io/js/glfw-raub.svg)](https://badge.fury.io/js/glfw-raub) [![ESLint](https://github.com/node-3d/glfw-raub/actions/workflows/eslint.yml/badge.svg)](https://github.com/node-3d/glfw-raub/actions/workflows/eslint.yml) [![Test](https://github.com/node-3d/glfw-raub/actions/workflows/test.yml/badge.svg)](https://github.com/node-3d/glfw-raub/actions/workflows/test.yml) +[![Cpplint](https://github.com/node-3d/glfw-raub/actions/workflows/cpplint.yml/badge.svg)](https://github.com/node-3d/glfw-raub/actions/workflows/cpplint.yml) -``` +```console npm i -s glfw-raub ```