forgejo/modules/util
Yaroslav Halchenko 2b2fd2728c Add codespell support and fix a good number of typos with its help (#3270)
More about codespell: https://github.com/codespell-project/codespell .

I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.

```
❯ grep lint-spell Makefile
	@echo " - lint-spell                       lint spelling"
	@echo " - lint-spell-fix                   lint spelling and fix issues"
lint: lint-frontend lint-backend lint-spell
lint-fix: lint-frontend-fix lint-backend-fix lint-spell-fix
.PHONY: lint-spell
lint-spell: lint-codespell
.PHONY: lint-spell-fix
lint-spell-fix: lint-codespell-fix
❯ git grep lint- -- .forgejo/
.forgejo/workflows/testing.yml:      - run: make --always-make -j$(nproc) lint-backend checks-backend # ensure the "go-licenses" make target runs
.forgejo/workflows/testing.yml:      - run: make lint-frontend
```
so how would you like me to invoke `lint-codespell` on CI? (without that would be IMHO very suboptimal and let typos sneak in)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3270
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Yaroslav Halchenko <debian@onerussian.com>
Co-committed-by: Yaroslav Halchenko <debian@onerussian.com>
2024-05-09 13:49:37 +00:00
..
filebuffer Add io.Closer guidelines (#29387) 2024-02-26 22:30:27 +01:00
rotatingfilewriter Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
color.go [PORT] gitea##30237: Fix and rewrite contrast color calculation, fix project-related bugs 2024-04-15 16:11:34 +02:00
color_test.go [PORT] gitea##30237: Fix and rewrite contrast color calculation, fix project-related bugs 2024-04-15 16:11:34 +02:00
error.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
file_unix.go
file_unix_test.go
file_windows.go
io.go
io_test.go
keypair.go [GITEA] Drop sha256-simd in favor of stdlib 2024-02-05 16:09:40 +01:00
keypair_test.go [GITEA] Drop sha256-simd in favor of stdlib 2024-02-05 16:09:40 +01:00
legacy.go [DEADCODE] Add deadcode linter 2024-02-05 14:45:09 +01:00
legacy_test.go [DEADCODE] Add deadcode linter 2024-02-05 14:45:09 +01:00
pack.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
pack_test.go
paginate.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
paginate_test.go
path.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
path_test.go
remove.go
sanitize.go
sanitize_test.go
sec_to_time.go
sec_to_time_test.go
shellquote.go
shellquote_test.go
slice.go Performance improvements for pull request list page (#29900) 2024-03-26 19:04:26 +01:00
slice_test.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
string.go Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
string_test.go
timer.go
timer_test.go
truncate.go
truncate_test.go
url.go Add RemoteAddress to mirrors (#26952) 2023-09-16 16:03:02 +00:00
util.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
util_test.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00