Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
|
1ca78906a9 | |
|
9d68a62da4 |
|
@ -41,4 +41,7 @@ jobs:
|
||||||
run: pip install cpplint
|
run: pip install cpplint
|
||||||
|
|
||||||
- name: Run Cpplint
|
- name: Run Cpplint
|
||||||
run: cpplint --recursive ./test-addon
|
run: |
|
||||||
|
node -e "require('.').cpcpplint()"
|
||||||
|
cpplint --recursive ./test-addon
|
||||||
|
cpplint --recursive ./include
|
||||||
|
|
|
@ -5,6 +5,7 @@ This is a part of [Node3D](https://github.com/node-3d) project.
|
||||||
[](https://badge.fury.io/js/addon-tools-raub)
|
[](https://badge.fury.io/js/addon-tools-raub)
|
||||||
[](https://github.com/node-3d/addon-tools-raub/actions/workflows/eslint.yml)
|
[](https://github.com/node-3d/addon-tools-raub/actions/workflows/eslint.yml)
|
||||||
[](https://github.com/node-3d/addon-tools-raub/actions/workflows/test.yml)
|
[](https://github.com/node-3d/addon-tools-raub/actions/workflows/test.yml)
|
||||||
|
[](https://github.com/node-3d/addon-tools-raub/actions/workflows/cpplint.yml)
|
||||||
|
|
||||||
```
|
```
|
||||||
npm i -s addon-tools-raub
|
npm i -s addon-tools-raub
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "addon-tools-raub",
|
"name": "addon-tools-raub",
|
||||||
"version": "7.3.1",
|
"version": "7.4.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "addon-tools-raub",
|
"name": "addon-tools-raub",
|
||||||
"version": "7.3.1",
|
"version": "7.4.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.8.3",
|
"@types/node": "^20.8.3",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"author": "Luis Blanco <luisblanco1337@gmail.com>",
|
"author": "Luis Blanco <luisblanco1337@gmail.com>",
|
||||||
"name": "addon-tools-raub",
|
"name": "addon-tools-raub",
|
||||||
"version": "7.3.1",
|
"version": "7.4.0",
|
||||||
"description": "Helpers for Node.js addons and dependency packages",
|
"description": "Helpers for Node.js addons and dependency packages",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|
|
@ -1,17 +1,18 @@
|
||||||
set noparent
|
set noparent
|
||||||
linelength=110
|
linelength=110
|
||||||
filter=-legal/copyright
|
|
||||||
filter=-build/include_order
|
|
||||||
filter=-build/include
|
|
||||||
filter=-build/header_guard
|
filter=-build/header_guard
|
||||||
filter=-build/namespaces
|
filter=-build/include
|
||||||
|
filter=-build/include_order
|
||||||
filter=-build/include_what_you_use
|
filter=-build/include_what_you_use
|
||||||
|
filter=-build/namespaces
|
||||||
|
filter=-legal/copyright
|
||||||
|
filter=-readability/todo
|
||||||
|
filter=-runtime/indentation_namespace
|
||||||
filter=-whitespace/blank_line
|
filter=-whitespace/blank_line
|
||||||
|
filter=-whitespace/braces
|
||||||
filter=-whitespace/comments
|
filter=-whitespace/comments
|
||||||
filter=-whitespace/tab
|
|
||||||
filter=-whitespace/end_of_line
|
filter=-whitespace/end_of_line
|
||||||
filter=-whitespace/indent
|
filter=-whitespace/indent
|
||||||
filter=-whitespace/operators
|
filter=-whitespace/operators
|
||||||
filter=-whitespace/parens
|
filter=-whitespace/parens
|
||||||
filter=-readability/todo
|
filter=-whitespace/tab
|
||||||
filter=-runtime/indentation_namespace
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
const { copy, exists } = require('./files');
|
||||||
|
|
||||||
|
|
||||||
|
const cpcpplint = async () => {
|
||||||
|
const cpplintDest = `${process.cwd()}/CPPLINT.cfg`.replace(/\\/g, '/');
|
||||||
|
const cpplintSrc = `${__dirname}/CPPLINT.cfg`.replace(/\\/g, '/');
|
||||||
|
|
||||||
|
if (!await exists(cpplintSrc) ) {
|
||||||
|
console.error('Error. File "CPPLINT.cfg" not found.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (await exists(cpplintDest) ) {
|
||||||
|
console.warn('Warning. Dest "CPPLINT.cfg" exists and will be overwritten.');
|
||||||
|
}
|
||||||
|
|
||||||
|
await copy(cpplintSrc, cpplintDest);
|
||||||
|
|
||||||
|
console.log(`"CPPLINT.cfg" was copied to "${cpplintDest}".`);
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = { cpcpplint };
|
|
@ -5,6 +5,7 @@ module.exports = Object.assign(
|
||||||
{},
|
{},
|
||||||
require('./action-pack'),
|
require('./action-pack'),
|
||||||
require('./cpbin'),
|
require('./cpbin'),
|
||||||
|
require('./cpcpplint'),
|
||||||
require('./download'),
|
require('./download'),
|
||||||
require('./files'),
|
require('./files'),
|
||||||
require('./install'),
|
require('./install'),
|
||||||
|
|
Loading…
Reference in New Issue