Skip to content

Commit

Permalink
chore: ingore words for crate-ci/typos
Browse files Browse the repository at this point in the history
  • Loading branch information
BytePender committed Dec 6, 2024
1 parent 4525bc6 commit 2cc3523
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 25 deletions.
14 changes: 1 addition & 13 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,4 @@ header:
- '**/*.go'
- '**/*.s'

comment: on-failure

checking:
spelling:
ignore-words:
- Invokable
- invokable
- InvokableLambda
- InvokableRun
- outter
- Opion
- TOpion
- renderring
comment: on-failure
8 changes: 0 additions & 8 deletions .spelling

This file was deleted.

12 changes: 12 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# Typo check: https://github.com/crate-ci/typos
[default]
# 添加需要忽略的单词
exclude-words = [
"Invokable",
"invokable",
"InvokableLambda",
"InvokableRun",
"outter",
"Opion",
"TOpion",
"renderring",
]

[files]
extend-exclude = ["go.mod", "go.sum", "check_branch_name.sh"]
1 change: 0 additions & 1 deletion components/document/parser/ext_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ func NewExtParser(ctx context.Context, conf *ExtParserConfig) (*ExtParser, error
// GetParsers returns a copy of the registered parsers.
// It is safe to modify the returned parsers.
func (p *ExtParser) GetParsers() map[string]Parser {

res := make(map[string]Parser, len(p.parsers))
for k, v := range p.parsers {
res[k] = v
Expand Down
1 change: 0 additions & 1 deletion components/document/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ func TestParser(t *testing.T) {
assert.Equal(t, 1, len(docs))
assert.Equal(t, "hello world", docs[0].Content)
assert.Equal(t, "text", docs[0].MetaData["type"])

})

t.Run("test get parsers", func(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion internal/gmap/gmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ package gmap
//
// 💡 AKA: Merge, Union, Combine
func Concat[K comparable, V any](ms ...map[K]V) map[K]V {

// FastPath: no map or only one map given.
if len(ms) == 0 {
return make(map[K]V)
Expand Down
1 change: 0 additions & 1 deletion utils/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
// eg. NewInstance[int] returns 0.
// eg. NewInstance[*int] returns *0 (will be ptr of 0, not nil!).
func NewInstance[T any]() T {

typ := TypeOf[T]()

switch typ.Kind() {
Expand Down

0 comments on commit 2cc3523

Please sign in to comment.