Skip to content

Commit

Permalink
Remove clang format (#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
  • Loading branch information
Bambooin authored May 24, 2024
1 parent ce4f761 commit 8b60b21
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 26 deletions.
2 changes: 0 additions & 2 deletions .clang-format

This file was deleted.

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 8b60b21

Please sign in to comment.