Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit d1b3f03

Browse files
committed
Add clang-tidy
1 parent 02276b6 commit d1b3f03

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.clang-tidy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
Checks: "*, -clang-diagnostic-*-compat, -cppcoreguidelines-init-variables, -modernize-return-braced-init-list, -misc-unused-parameters, -misc-non-private-member-variables-in-classes, -llvmlibc-*, -llvm-header-guard, -llvm-include-order, -modernize-use-trailing-return-type, -readability-avoid-const-params-in-decls, -readability-convert-member-functions-to-static, -fuchsia-default-arguments-declarations, -fuchsia-default-arguments-calls, -*-uppercase-literal-suffix, -fuchsia-overloaded-operator, -google-build-using-namespace, -google-global-names-in-headers, -google-readability-todo, -*-else-after-return, -*-braces-around-statements"
3+
HeaderFilterRegex: ".*"
4+
FormatStyle: none

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"test": "npm run test:node && npm run test:browser",
1515
"benchmark": "node benchmark/marker-index.benchmark.js",
1616
"prepublishOnly": "npm run build:browser",
17-
"standard": "standard --recursive src test"
17+
"standard": "standard --recursive src test",
18+
"tidy": "clang-tidy src/core/*.cc src/core/*.h src/bindings/*.cc src/bindings/*.h src/bindings/em/*.cc src/bindings/em/*.h",
19+
"tidy:fix": "npm run tidy -- --fix --fix-errors"
1820
},
1921
"repository": {
2022
"type": "git",

0 commit comments

Comments
 (0)