You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.2 KiB

  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 a block of text to exclude from spellchecking
  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. ]
  12. locale = "en-us"
  13. # ATTENTION If, for any reason, you want to add the
  14. # `extend-ignore-identifiers-re` to this section,
  15. # please also modify the `.gitlab/ci/typos.bash`
  16. # script accordingly.
  17. #extend-ignore-identifiers-re=["\\b[0-9a-f]{10}\\b"]
  18. # Add repo-wide false positives here in the form of `word = "word"`.
  19. # Check the manual for details.
  20. [default.extend-words]
  21. HPE = "HPE"
  22. # British spelling of `XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER` property name.
  23. BEHAVIOUR = "BEHAVIOUR"
  24. # Misspelled `Fortran_BUILDING_INSTRINSIC_MODULES` property name kept for compatibility: `INSTRINSIC` should be `INTRINSIC`.
  25. INSTRINSIC = "INSTRINSIC"
  26. # This is a file extension for `cobertura-merge`
  27. ser = "ser"
  28. # The Ninja option name
  29. restat = "restat"
  30. # SpectreMitigation
  31. Spectre = "Spectre"
  32. [type.cmake.extend-identifiers]
  33. COMMANDs = "COMMANDs"
  34. xCOMMANDx = "xCOMMANDx"
  35. [type.cmake.extend-words]
  36. # Some compiler's options trigger false-positives
  37. Fo = "Fo"
  38. ot = "ot"
  39. # Part of compiler executable name, e.g., `arm-unknown-nto-qnx6`, but also could be in a literal string.
  40. nto = "nto"
  41. [type.cpp.extend-identifiers]
  42. APPENDed = "APPENDed"
  43. [type.json.extend-identifiers]
  44. # Some compiler options from `Templates/MSBuild/FlagTables/*.json` trigger too many false-positives.
  45. Fo = "Fo"
  46. fo = "fo"
  47. Ot = "Ot"
  48. SEH = "SEH"
  49. [files]
  50. ignore-hidden = false
  51. ignore-dot = false
  52. extend-exclude = [
  53. "CONTRIBUTORS.rst"
  54. # Exclude third-party sources.
  55. , "Source/CursesDialog/form/"
  56. , "Source/kwsys/"
  57. , "Source/bindexplib.cxx"
  58. , "Source/cmcldeps.cxx"
  59. , "Source/QtDialog/*.ui"
  60. , "Utilities/cm*"
  61. , "Utilities/ClangTidyModule"
  62. , "Utilities/KWIML"
  63. # FIXME: Fix spelling typos in tests. Exclude for now.
  64. , "Tests"
  65. ]