Skip to content

Commit

Permalink
feat(chore)!: shellcheck による lint を廃止
Browse files Browse the repository at this point in the history
  • Loading branch information
haru52 committed May 17, 2024
1 parent fd10746 commit f6fde4b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 38 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ jobs:
uses: reviewdog/action-yamllint@v1
with:
reporter: github-pr-review
- name: ShellCheck
uses: reviewdog/action-shellcheck@v1
with:
reporter: github-pr-review
pattern: |
*.sh
commit-msg
pre-commit
- name: actionlint
uses: reviewdog/action-actionlint@v1
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ jobs:
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_strict: true
- name: "Lint: shell script"
uses: ludeeus/action-shellcheck@2.0.0
with:
ignore_paths: .husky/_ node_modules
- name: "Lint: GitHub Actions workflow"
# yamllint disable rule:line-length
run: |
Expand Down
4 changes: 0 additions & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/usr/bin/env sh
# shellcheck disable=SC1091
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "$1"
4 changes: 0 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/usr/bin/env sh
# shellcheck disable=SC1091
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged

# .textlintignore で foo.md を無視するように指定していたとしても、`textlint foo.md` を実行すると
Expand Down
2 changes: 0 additions & 2 deletions .lintstagedrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
- prettier --check
"*.{md,markdown}": markdownlint
"*.{yml,yaml}": yamllint --strict
"*.sh": shellcheck
".husky/*": shellcheck
".github/workflows/*.{yml,yaml}": actionlint
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"ms-vscode.makefile-tools",
"RomanPeshkov.vscode-text-tables",
"shuworks.vscode-table-formatter",
"taichi.vscode-textlint",
"timonwong.shellcheck"
"taichi.vscode-textlint"
]
}
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
.PHONY: dev-install lint lint-npm lint-yml lint-sh lint-action update-gi
.PHONY: dev-install lint lint-npm lint-yml lint-action update-gi

dev-install:
git submodule update --init --recursive
npm ci

lint: lint-npm lint-yml lint-sh lint-action
lint: lint-npm lint-yml lint-action

lint-npm:
npm run lint

lint-yml:
yamllint --strict .

lint-sh:
shellcheck .husky/commit-msg .husky/pre-commit

lint-action:
actionlint

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
| Lint:Markdown | [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) |
| Lint:テキスト(散文) | [textlint](https://textlint.github.io/) |
| Lint:YAML | [yamllint](https://yamllint.readthedocs.io/) |
| Lint:シェルスクリプト | [ShellCheck](https://github.com/koalaman/shellcheck) |
| Lint:JSON、その他 | [Prettier](https://prettier.io/) |
| Lint:GitHub Actions ワークフロー | [actionlint](https://github.com/rhysd/actionlint) |
| Lint:GitHub PR タイトル | [semantic-pull-request](https://github.com/marketplace/actions/semantic-pull-request) |
Expand Down
15 changes: 7 additions & 8 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

## 動作要件

| ツール | バージョン |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Node.js | [.tool-versions](https://github.com/haru52/base_template_ja/blob/main/.tool-versions) |
| npm | [package.json](https://github.com/haru52/base_template_ja/blob/main/package.json) における `engines.npm` の値 |
| [gibo](https://github.com/simonwhitaker/gibo) | ^3.0.11 |
| [yamllint](https://yamllint.readthedocs.io/) | ^1.35.1 |
| [ShellCheck](https://github.com/koalaman/shellcheck) | ^0.10.0 |
| [actionlint](https://github.com/rhysd/actionlint) | [.tool-versions](https://github.com/haru52/base_template_ja/blob/main/.tool-versions) |
| ツール | バージョン |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Node.js | [.tool-versions](https://github.com/haru52/base_template_ja/blob/main/.tool-versions) |
| npm | [package.json](https://github.com/haru52/base_template_ja/blob/main/package.json) における `engines.npm` の値 |
| [gibo](https://github.com/simonwhitaker/gibo) | ^3.0.11 |
| [yamllint](https://yamllint.readthedocs.io/) | ^1.35.1 |
| [actionlint](https://github.com/rhysd/actionlint) | [.tool-versions](https://github.com/haru52/base_template_ja/blob/main/.tool-versions) |

## 規約

Expand Down

0 comments on commit f6fde4b

Please sign in to comment.