Skip to content

Commit

Permalink
divide cspell and textlint
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <[email protected]>
  • Loading branch information
kpango committed Feb 28, 2024
1 parent 5bd8608 commit 92b8b0a
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 4 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/reviewdog-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,29 @@ jobs:
make textlint/ci/install
- name: Run lint for files && Report to GitHub
run: |
make files/lint | \
make files/cspell | \
reviewdog \
-efm='%f:%l:%c - %m' \
-name="files lint" \
-diff="git diff ${{ github.event.pull_request.base.ref }}" \
-reporter=github-pr-review \
-level=error
make TEXTLINT_EXTRA_OPTIONS="-f=checkstyle" files/lint | \
reviewdog \
-f=checkstyle \
-name="docs lint" \
-diff="git diff ${{ github.event.pull_request.base.ref }}" \
-reporter=github-pr-review \
-level=error
- name: Run lint for documents && Report to GitHub
run: |
make docs/cspell | \
reviewdog \
-efm='%f:%l:%c - %m' \
-name="files lint" \
-diff="git diff ${{ github.event.pull_request.base.ref }}" \
-reporter=github-pr-review \
-level=error
make TEXTLINT_EXTRA_OPTIONS="-f=checkstyle" docs/lint | \
reviewdog \
-f=checkstyle \
Expand Down
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,8 @@ faiss/install: /usr/local/lib/libfaiss.so
lint: \
docs/lint \
files/lint \
docs/cspell \
files/cspell \
vet
$(call go-lint)

Expand All @@ -611,14 +613,24 @@ docs/lint:\
textlint/install
textlint docs/**/*.md $(TEXTLINT_EXTRA_OPTIONS)


.PHONY: files/lint
## run lint for document
files/lint: \
files \
textlint/install \
cspell/install
textlint $(ROOTDIR)/.gitfiles $(TEXTLINT_EXTRA_OPTION)

.PHONY: docs/cspell
## run cspell for document
docs/cspell:\
cspell/install
cspell docs/**/*.md --show-suggestions $(CSPELL_EXTRA_OPTIONS)

.PHONY: files/cspell
## run cspell for document
files/cspell: \
files \
cspell/install
cspell-cli $(ROOTDIR)/.gitfiles --show-suggestions $(CSPELL_EXTRA_OPTIONS)

.PHONY: changelog/update
Expand Down
2 changes: 1 addition & 1 deletion Makefile.d/actions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

ACTIONS_LIST := $(eval ACTIONS_LIST := $(shell grep -r -h -o -P "(?<=- uses: ).*?(?=@)" $(ROOTDIR)/.github/ | sort | uniq))$(ACTIONS_LIST)
ACTIONS_LIST := $(eval ACTIONS_LIST := $(shell grep --include=\*.{yml,yaml} -rohE 'uses: .+' .github/ | awk '!/\.github/ && !seen[$$0]++ {sub(/@.*/, "", $$0); print substr($$0, 7)}'))$(ACTIONS_LIST)

.PHONY: list/actions
## show variation of external actions
Expand Down
1 change: 1 addition & 0 deletions versions/actions/AQUASECURITY_TRIVY_ACTION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.17.0
1 change: 1 addition & 0 deletions versions/actions/CIRRUS_ACTIONS_REBASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8
1 change: 1 addition & 0 deletions versions/actions/DOCKER_LOGIN_ACTION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.0
1 change: 1 addition & 0 deletions versions/actions/DOCKER_SETUP_BUILDX_ACTION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.0
1 change: 1 addition & 0 deletions versions/actions/DOCKER_SETUP_QEMU_ACTION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0.0
1 change: 1 addition & 0 deletions versions/actions/MACHINE_LEARNING_APPS_ACTIONS_CHATOPS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.41

0 comments on commit 92b8b0a

Please sign in to comment.