Skip to content

Commit

Permalink
Remove clang format (rime#905)
Browse files Browse the repository at this point in the history
* ci: delete clang format lint step

* build: remove clang format target

* chore: remove clang format config

* remove clang from git-blame-ignore-revs
  • Loading branch information
Bambooin authored and LEOYoon-Tsaw committed May 28, 2024
1 parent ce4f761 commit 27562f0
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 28 deletions.
2 changes: 0 additions & 2 deletions .clang-format

This file was deleted.

2 changes: 0 additions & 2 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# apply clang format
ce94f9c4403b9c33d5e251fc7f1e15c44725d881

6 changes: 0 additions & 6 deletions .github/workflows/commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ jobs:
with:
submodules: true

- name: Install clang-format
run: brew install clang-format

- name: Lint
run: make clang-format-lint

- name: Configure build environment
run: |
echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/pull-request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ jobs:
with:
submodules: true

- name: Install clang-format
run: brew install clang-format

- name: Lint
run: make clang-format-lint

- name: Configure build environment
run: |
echo git_ref_name="$(git describe --always)" >> $GITHUB_ENV
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ jobs:
fetch-depth: 0
submodules: true

- name: Install clang-format
run: brew install clang-format

- name: Lint
run: make clang-format-lint

- name: Build Squirrel
run: ./action-build.sh archive

Expand Down
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ copy-opencc-data:

deps: librime data

clang-format-lint:
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; }

clang-format-apply:
find . -name '*.m' -o -name '*.h' -maxdepth 1 | xargs clang-format --verbose -i

ifdef ARCHS
BUILD_SETTINGS += ARCHS="$(ARCHS)"
BUILD_SETTINGS += ONLY_ACTIVE_ARCH=NO
Expand Down

0 comments on commit 27562f0

Please sign in to comment.