.typos.toml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # The manual about all configuration options is here:
  2. # https://github.com/crate-ci/typos/blob/master/docs/reference.md
  3. [default]
  4. check-file = true
  5. check-filename = true
  6. extend-ignore-re = [
  7. # NOTE Allow to mark block of text to exclude from spellchecking inside C++ or hash-style comments (CMake,Python,&etc.)
  8. "(?s)(#|//)\\s*(NOQA|noqa):? spellcheck(: *|=| +)off.*?\\n\\s*(#|//)\\s*(NOQA|noqa):? spellcheck(: *|=| +)on"
  9. # NOTE Allow to mark a line to exclude from spellchecking
  10. , "(?Rm)^.*(#|//)\\s*(NOQA|noqa):? spellcheck(: *|=| +)disable-line$"
  11. # NOTE Stop checking from this line to the end of file
  12. # This line is a marker added by Git to the `COMMIT_EDITMSG`.
  13. , "(?sm)^# ------------------------ >8 ------------------------$.*"
  14. ]
  15. locale = "en-us"
  16. # ATTENTION If, for any reason, you want to add the
  17. # `extend-ignore-identifiers-re` to this section,
  18. # please also modify the `.gitlab/ci/typos.bash`
  19. # script accordingly.
  20. #extend-ignore-identifiers-re=["\\b[0-9a-f]{8,12}\\b"]
  21. [default.extend-identifiers]
  22. _tru64 = "_tru64"
  23. __tru64 = "__tru64"
  24. __TRU64__ = "__TRU64__"
  25. Tru64 = "Tru64"
  26. # Add repo-wide false positives here in the form of `word = "word"`.
  27. # Check the manual for details.
  28. [default.extend-words]
  29. HPE = "HPE"
  30. # British spelling of `XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER` property name.
  31. BEHAVIOUR = "BEHAVIOUR"
  32. # Misspelled `Fortran_BUILDING_INSTRINSIC_MODULES` property name kept for compatibility: `INSTRINSIC` should be `INTRINSIC`.
  33. INSTRINSIC = "INSTRINSIC"
  34. # This is a file extension for `cobertura-merge`
  35. ser = "ser"
  36. # The Ninja option name
  37. restat = "restat"
  38. # SpectreMitigation
  39. Spectre = "Spectre"
  40. # Identifier used in source code (`GlobalTargetInfo`)
  41. gti = "gti"
  42. [files]
  43. ignore-hidden = false
  44. ignore-dot = false
  45. extend-exclude = [
  46. "CONTRIBUTORS.rst"
  47. # Exclude third-party sources.
  48. , "Source/CursesDialog/form/"
  49. , "Source/kwsys/"
  50. , "Source/bindexplib.cxx"
  51. , "Source/cmcldeps.cxx"
  52. , "Source/QtDialog/*.ui"
  53. , "Utilities/cm*"
  54. , "Utilities/ClangTidyModule"
  55. , "Utilities/KWIML"
  56. # FIXME: Fix spelling typos in tests. Exclude for now.
  57. , "Tests"
  58. ]
  59. # BEGIN Type-specific settings
  60. [type.cmake.extend-identifiers]
  61. COMMANDs = "COMMANDs"
  62. xCOMMANDx = "xCOMMANDx"
  63. TYPEs = "TYPEs"
  64. [type.cmake.extend-words]
  65. # Some compiler's options trigger false-positives
  66. Fo = "Fo"
  67. ot = "ot"
  68. # Part of compiler executable name, e.g., `arm-unknown-nto-qnx6`, but also could be in a literal string.
  69. nto = "nto"
  70. [type.cpp.extend-identifiers]
  71. APPENDed = "APPENDed"
  72. setp = "setp"
  73. setp_ = "setp_"
  74. [type.json.extend-identifiers]
  75. # Some compiler options from `Templates/MSBuild/FlagTables/*.json` trigger too many false-positives.
  76. Fo = "Fo"
  77. fo = "fo"
  78. Ot = "Ot"
  79. SEH = "SEH"
  80. [type.py.extend-identifiers]
  81. typ = "typ"
  82. [type.sh.extend-identifiers]
  83. xTRUEx = "xTRUEx"
  84. [type.rst]
  85. extend-ignore-re = [
  86. # NOTE Allow to mark block of text to exclude from spellchecking as RST comments
  87. "(?s)\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)off.*?\\n\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)on"
  88. ]
  89. # END Type-specific settings