Skip to content

Commit 27562f0

Browse files
BambooinLEOYoon-Tsaw
authored andcommitted
Remove clang format (#905)
* ci: delete clang format lint step * build: remove clang format target * chore: remove clang format config * remove clang from git-blame-ignore-revs
1 parent ce4f761 commit 27562f0

6 files changed

+0
-28
lines changed

.clang-format

-2
This file was deleted.

.git-blame-ignore-revs

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# apply clang format
2-
ce94f9c4403b9c33d5e251fc7f1e15c44725d881
31

.github/workflows/commit-ci.yml

-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ jobs:
1212
with:
1313
submodules: true
1414

15-
- name: Install clang-format
16-
run: brew install clang-format
17-
18-
- name: Lint
19-
run: make clang-format-lint
20-
2115
- name: Configure build environment
2216
run: |
2317
echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV

.github/workflows/pull-request-ci.yml

-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ jobs:
99
with:
1010
submodules: true
1111

12-
- name: Install clang-format
13-
run: brew install clang-format
14-
15-
- name: Lint
16-
run: make clang-format-lint
17-
1812
- name: Configure build environment
1913
run: |
2014
echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV

.github/workflows/release-ci.yml

-6
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ jobs:
1919
fetch-depth: 0
2020
submodules: true
2121

22-
- name: Install clang-format
23-
run: brew install clang-format
24-
25-
- name: Lint
26-
run: make clang-format-lint
27-
2822
- name: Build Squirrel
2923
run: ./action-build.sh archive
3024

Makefile

-6
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ copy-opencc-data:
8484

8585
deps: librime data
8686

87-
clang-format-lint:
88-
find . -name '*.m' -o -name '*.h' -maxdepth 1 | xargs clang-format -Werror --dry-run || { echo Please lint your code by '"'"make clang-format-apply"'"'.; false; }
89-
90-
clang-format-apply:
91-
find . -name '*.m' -o -name '*.h' -maxdepth 1 | xargs clang-format --verbose -i
92-
9387
ifdef ARCHS
9488
BUILD_SETTINGS += ARCHS="$(ARCHS)"
9589
BUILD_SETTINGS += ONLY_ACTIVE_ARCH=NO

0 commit comments

Comments
 (0)