From 76a5ad9b4e1217075c197acb6ba99f543e007db8 Mon Sep 17 00:00:00 2001 From: Albert Chu Date: Wed, 19 Apr 2023 21:34:29 -0700 Subject: [PATCH] .typos.toml: add false positive typos config Problem: The current typos workflow check only checks a select number of files because there are so many false positives in flux-core. Solution: Add a .typos.toml configuration file to eliminate false positives so we can run the typo check on all of flux-core. The config file either skips files with lots of false positives or lists common false positives we wish to ignore. Fixes #5075 --- .typos.toml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000000..2cb12ae3083d --- /dev/null +++ b/.typos.toml @@ -0,0 +1,27 @@ +# do not check code copied into the project +# do not check sha code, lots of hashing false positives +# do not check testing data +[files] +extend-exclude = [ + "config/*", + "src/common/libev/*", + "src/common/libccan/*", + "src/common/liblsd/*", + "src/common/libtomlc99/*", + "src/bindings/python/flux/utils/parsedatetime/*", + "t/sharness.sh", + "src/common/libutil/sha1.c", + "src/common/libutil/test/sha1.c", + "t/hwloc-data/*", +] + +[default.extend-words] +# in hwloc output +hsi = "hsi" +# commonly used names/variables that aren't typos +fo = "fo" +ba = "ba" +inout = "inout" +trun = "trun" +fullset = "fullset" +mone = "mone"