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.

89 lines
2.8 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 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. # Add repo-wide false positives here in the form of `word = "word"`.
  22. # Check the manual for details.
  23. [default.extend-words]
  24. HPE = "HPE"
  25. # British spelling of `XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER` property name.
  26. BEHAVIOUR = "BEHAVIOUR"
  27. # Misspelled `Fortran_BUILDING_INSTRINSIC_MODULES` property name kept for compatibility: `INSTRINSIC` should be `INTRINSIC`.
  28. INSTRINSIC = "INSTRINSIC"
  29. # This is a file extension for `cobertura-merge`
  30. ser = "ser"
  31. # The Ninja option name
  32. restat = "restat"
  33. # SpectreMitigation
  34. Spectre = "Spectre"
  35. # Identifier used in source code (`GlobalTargetInfo`)
  36. gti = "gti"
  37. [files]
  38. ignore-hidden = false
  39. ignore-dot = false
  40. extend-exclude = [
  41. "CONTRIBUTORS.rst"
  42. # Exclude third-party sources.
  43. , "Source/CursesDialog/form/"
  44. , "Source/kwsys/"
  45. , "Source/bindexplib.cxx"
  46. , "Source/cmcldeps.cxx"
  47. , "Source/QtDialog/*.ui"
  48. , "Utilities/cm*"
  49. , "Utilities/ClangTidyModule"
  50. , "Utilities/KWIML"
  51. # FIXME: Fix spelling typos in tests. Exclude for now.
  52. , "Tests"
  53. ]
  54. # BEGIN Type-specific settings
  55. [type.cmake.extend-identifiers]
  56. COMMANDs = "COMMANDs"
  57. xCOMMANDx = "xCOMMANDx"
  58. TYPEs = "TYPEs"
  59. [type.cmake.extend-words]
  60. # Some compiler's options trigger false-positives
  61. Fo = "Fo"
  62. ot = "ot"
  63. # Part of compiler executable name, e.g., `arm-unknown-nto-qnx6`, but also could be in a literal string.
  64. nto = "nto"
  65. [type.cpp.extend-identifiers]
  66. APPENDed = "APPENDed"
  67. [type.json.extend-identifiers]
  68. # Some compiler options from `Templates/MSBuild/FlagTables/*.json` trigger too many false-positives.
  69. Fo = "Fo"
  70. fo = "fo"
  71. Ot = "Ot"
  72. SEH = "SEH"
  73. [type.py.extend-identifiers]
  74. typ = "typ"
  75. [type.rst]
  76. extend-ignore-re = [
  77. # NOTE Allow to mark block of text to exclude from spellchecking as RST comments
  78. "(?s)\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)off.*?\\n\\.\\.\\s+(NOQA|noqa):? spellcheck(: *|=| +)on"
  79. ]
  80. # END Type-specific settings