summaryrefslogtreecommitdiffstats
path: root/docs/content/development
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-02-09 04:59:39 +0100
committerGitHub <noreply@github.com>2024-02-09 03:59:39 +0000
commit9c39f8515fa88d644736c6773d7a05d070a02e82 (patch)
tree025404a49c6b66ce145380f1a7e28b6dc80f8c46 /docs/content/development
parenta24e1da7e9e38fc5f5c84c083d122c0cc3da4b74 (diff)
downloadgitea-9c39f8515fa88d644736c6773d7a05d070a02e82.tar.gz
gitea-9c39f8515fa88d644736c6773d7a05d070a02e82.zip
Rework spellchecking, add `lint-spell` (#29106)
- Use maintained fork https://github.com/golangci/misspell - Rename `mispell-check` to `lint-spell`, add `lint-spell-fix` - Run `lint-spell` in separate actions step - Lint more files, fix discovered issues - Remove inaccurate and outdated info in docs (we do not need GOPATH for tools anymore) Maybe later we can add more spellchecking tools, but I have not found any good ones yet.
Diffstat (limited to 'docs/content/development')
-rw-r--r--docs/content/development/hacking-on-gitea.en-us.md4
-rw-r--r--docs/content/development/hacking-on-gitea.zh-cn.md4
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/content/development/hacking-on-gitea.en-us.md b/docs/content/development/hacking-on-gitea.en-us.md
index 4b132c49d9..df8a9047d6 100644
--- a/docs/content/development/hacking-on-gitea.en-us.md
+++ b/docs/content/development/hacking-on-gitea.en-us.md
@@ -243,10 +243,10 @@ documentation using:
make generate-swagger
```
-You should validate your generated Swagger file and spell-check it with:
+You should validate your generated Swagger file:
```bash
-make swagger-validate misspell-check
+make swagger-validate
```
You should commit the changed swagger JSON file. The continuous integration
diff --git a/docs/content/development/hacking-on-gitea.zh-cn.md b/docs/content/development/hacking-on-gitea.zh-cn.md
index 364bbf1ffe..2dba3c92b6 100644
--- a/docs/content/development/hacking-on-gitea.zh-cn.md
+++ b/docs/content/development/hacking-on-gitea.zh-cn.md
@@ -228,10 +228,10 @@ Gitea Logo的 PNG 和 SVG 版本是使用 `TAGS="gitea" make generate-images`
make generate-swagger
```
-您应该验证生成的 Swagger 文件并使用以下命令对其进行拼写检查:
+您应该验证生成的 Swagger 文件:
```bash
-make swagger-validate misspell-check
+make swagger-validate
```
您应该提交更改后的 swagger JSON 文件。持续集成服务器将使用以下方法检查是否已完成: