diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..19fe498 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,21 @@ +[default] +# https://github.com/crate-ci/typos/blob/v1.19.0/docs/reference.md +# Be careful to handle extend-ignore-* variants +# - extend-ignore-words-re: macthed symbol +# - extend-ignore-identifiers-re: suggesting symbol +# - extend-ignore-re: matching target string +extend-ignore-words-re = [ + # In my experience, false positive detection in typos occurred for short words. + # + # * My typos are increased as the words get longer + # * Too short often conflict with hash strings especially `ba`: https://github.com/crate-ci/typos/issues/415 + # * Added 2 or 3 character abbreviations as wrong: https://github.com/crate-ci/typos/issues/955 + # + # So I guess skipping all these detections makes reasonable behaviors for now and for the future. + "\\A[a-zA-Z]{1,3}\\z", +] + +[files] +extend-exclude = [ + "go.mod", +]