From 0614ae1c446e6a4ddaed4cca5a43ce7a2003d890 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 19 Oct 2022 00:52:25 +0800 Subject: [PATCH] Remove unnecessary misspell ignore pattern (#21475) It doesn't make sense to ignore the pattern again and again. --- Makefile | 2 +- modules/paginator/paginator.go | 2 +- modules/paginator/paginator_test.go | 2 +- modules/references/references_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5170436d83..f1b6790dc5 100644 --- a/Makefile +++ b/Makefile @@ -280,7 +280,7 @@ fmt-check: fmt .PHONY: misspell-check misspell-check: - go run $(MISSPELL_PACKAGE) -error -i unknwon $(GO_DIRS) $(WEB_DIRS) + go run $(MISSPELL_PACKAGE) -error $(GO_DIRS) $(WEB_DIRS) .PHONY: vet vet: diff --git a/modules/paginator/paginator.go b/modules/paginator/paginator.go index 873cfe49d4..342ee8929c 100644 --- a/modules/paginator/paginator.go +++ b/modules/paginator/paginator.go @@ -1,5 +1,5 @@ // Copyright 2022 The Gitea Authors. -// Copyright 2015 Unknwon. Licensed under the Apache License, Version 2.0 +// Copyright 2015 https://github.com/unknwon. Licensed under the Apache License, Version 2.0 package paginator diff --git a/modules/paginator/paginator_test.go b/modules/paginator/paginator_test.go index ce7b7275e1..404f76f6c4 100644 --- a/modules/paginator/paginator_test.go +++ b/modules/paginator/paginator_test.go @@ -1,5 +1,5 @@ // Copyright 2022 The Gitea Authors. -// Copyright 2015 Unknwon. Licensed under the Apache License, Version 2.0 +// Copyright 2015 https://github.com/unknwon. Licensed under the Apache License, Version 2.0 package paginator diff --git a/modules/references/references_test.go b/modules/references/references_test.go index adf86a3c6c..507adadb1f 100644 --- a/modules/references/references_test.go +++ b/modules/references/references_test.go @@ -309,7 +309,7 @@ func TestRegExp_mentionPattern(t *testing.T) { pat string exp string }{ - {"@Unknwon", "@Unknwon"}, + {"@User", "@User"}, {"@ANT_123", "@ANT_123"}, {"@xxx-DiN0-z-A..uru..s-xxx", "@xxx-DiN0-z-A..uru..s-xxx"}, {" @lol ", "@lol"},