Skip to content

Commit

Permalink
Add cpplint
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Oct 10, 2023
1 parent c2b2884 commit fe4edae
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 26 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/cpplint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Cpplint
defaults:
run:
shell: bash

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
eslint:
name: Cpplint
runs-on: ubuntu-20.04

steps:

- name: Fetch Repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: 'npm'

- name: Install Modules
run: npm ci

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Cpplint
run: pip install cpplint

- name: Run Cpplint
run: |
node -e "require('addon-tools-raub').cpcpplint()"
cpplint --recursive ./src/cpp
19 changes: 13 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Luis Blanco <[email protected]>",
"name": "webgl-raub",
"version": "4.0.1",
"version": "4.0.2",
"description": "WebGL for Node.js",
"license": "MIT",
"main": "index.js",
Expand Down Expand Up @@ -44,13 +44,14 @@
"url": "https://github.com/node-3d/webgl-raub.git"
},
"dependencies": {
"addon-tools-raub": "^7.3.0",
"addon-tools-raub": "^7.4.0",
"deps-opengl-raub": "^5.1.1",
"segfault-raub": "^2.1.2"
},
"devDependencies": {
"eslint-plugin-node": "^11.1.0",
"@types/node": "^20.8.3",
"eslint": "^8.51.0",
"eslint-plugin-node": "^11.1.0",
"node-addon-api": "^7.0.0",
"typescript": "^5.2.2"
}
Expand Down
17 changes: 0 additions & 17 deletions src/CPPLINT.cfg

This file was deleted.

0 comments on commit fe4edae

Please sign in to comment.