Skip to content

Commit 264659f

Browse files
committed
fix: remove formatting
1 parent fa2109e commit 264659f

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/lint-clang.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint Clang
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
merge_group:
11+
types:
12+
- checks_requested
13+
14+
jobs:
15+
lint:
16+
if: false # temporarily disable clang linting
17+
name: Run clang lint
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
25+
- name: Set up Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '20'
29+
30+
- name: Install dependencies
31+
run: yarn install --frozen-lockfile
32+
33+
- name: Run clang lint
34+
run: yarn lint-clang

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
"test": "jest --passWithNoTests",
3737
"typecheck": "tsc",
3838
"lint": "eslint \"**/*.{js,ts,tsx}\"",
39+
"lint-clang:ios": "find ios/ \\( -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" \\) | grep -v -e Pods -e build | xargs clang-format -i -n --Werror",
40+
"lint-clang:ios:fix": "find ios/ \\( -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.mm\" \\) | grep -v -e Pods -e build | xargs clang-format -i",
41+
"lint-clang:android": "find android/ \\( -iname \"*.h\" -o -iname \"*.cpp\" \\) | grep -v -e build | xargs clang-format -i -n --Werror",
42+
"lint-clang:android:fix": "find android/ \\( -iname \"*.h\" -o -iname \"*.cpp\" \\) | grep -v -e build | xargs clang-format -i",
43+
"lint-clang": "yarn lint-clang:ios && yarn lint-clang:android",
44+
"lint-clang:fix": "yarn lint-clang:ios:fix && yarn lint-clang:android:fix",
3945
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
4046
"prepare": "bob build",
4147
"release": "release-it",

0 commit comments

Comments
 (0)