Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework spellchecking, add lint-spell #29106

Merged
merged 3 commits into from
Feb 9, 2024
Merged

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Feb 9, 2024

  • 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.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 9, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 9, 2024
@silverwind silverwind added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Feb 9, 2024
@silverwind silverwind changed the title Rework spellchecking Rework spellchecking, add lint-spell Feb 9, 2024
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 9, 2024
@techknowlogick techknowlogick added the backport/v1.21 This PR should be backported to Gitea 1.21 label Feb 9, 2024
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 9, 2024
@techknowlogick
Copy link
Member

Setting backport on this due to docs changes

@techknowlogick techknowlogick enabled auto-merge (squash) February 9, 2024 03:32
@techknowlogick techknowlogick merged commit 9c39f85 into go-gitea:main Feb 9, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.22.0 milestone Feb 9, 2024
@GiteaBot
Copy link
Contributor

GiteaBot commented Feb 9, 2024

I was unable to create a backport for 1.21. @silverwind, please send one manually. 🍵

go run ./contrib/backport 29106
...  // fix git conflicts if any
go run ./contrib/backport --continue

@GiteaBot GiteaBot added the backport/manual No power to the bots! Create your backport yourself! label Feb 9, 2024
@silverwind
Copy link
Member Author

I forgot adding lint-spell-fixto lint-fix, will push a followup PR and then backport both together.

@silverwind silverwind deleted the spell branch February 9, 2024 08:59
silverwind added a commit that referenced this pull request Feb 9, 2024
Followup to #29106, fix this
oversight.
silverwind added a commit to silverwind/gitea that referenced this pull request Feb 9, 2024
- 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.
silverwind added a commit to silverwind/gitea that referenced this pull request Feb 9, 2024
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Feb 10, 2024
Followup to go-gitea/gitea#29106, fix this
oversight.

(cherry picked from commit c7a21cb)
KN4CK3R pushed a commit that referenced this pull request Feb 17, 2024
backport #27530 to make pull request lint happy
https://github.com/go-gitea/gitea/actions/runs/7939560756/job/21679856929?pr=29206
since #29106

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
silverwind added a commit to silverwind/gitea that referenced this pull request Feb 20, 2024
- 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.
silverwind added a commit to silverwind/gitea that referenced this pull request Feb 20, 2024
@wxiaoguang wxiaoguang added the backport/done All backports for this PR have been created label Feb 21, 2024
6543 pushed a commit to 6543-forks/gitea that referenced this pull request Feb 26, 2024
- 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.

(cherry picked from commit 9c39f85)

Conflicts:
	.github/workflows/pull-compliance.yml
	Makefile
Copy link

Automatically locked because of our CONTRIBUTING guidelines

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created backport/manual No power to the bots! Create your backport yourself! backport/v1.21 This PR should be backported to Gitea 1.21 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/docs modifies/internal size/M Denotes a PR that changes 30-99 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants