fix-whitespace.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # This file contains the project-specific settings for `fix-whitespace` a tiny
  2. # but useful tool to
  3. #
  4. # * Removes trailing whitespace.
  5. # * Removes trailing lines containing nothing but whitespace.
  6. # * Ensures that the file ends in a newline character.
  7. #
  8. # By default, fix-whitespace checks every directory under the current working
  9. # directory but no files. This program should be placed under a text-based
  10. # project.
  11. #
  12. # For directories,
  13. #
  14. # 1) excluded-dirs is a black-list of directories,
  15. # 2) included-dirs is a white-list of excluded-dirs
  16. #
  17. # For files,
  18. #
  19. # 3) included-files is a white-list of files,
  20. # 4) excluded-files is a black-list of included-files.
  21. #
  22. # The extended glob pattern can be used to specify file/direcotory names.
  23. # For details, see http://hackage.haskell.org/package/filemanip-0.3.6.3/docs/System-FilePath-GlobPattern.html
  24. #
  25. included-dirs:
  26. - src/full/Agda/Compiler/MAlonzo
  27. # Without this line the above path will be excluded.
  28. excluded-dirs:
  29. - "**/MAlonzo" # matches every MAlonzo in any directory including the src/full/Agda/Compiler/MAlonzo
  30. - "**/dist*" # matches every dist* in any directory
  31. - .stack-work
  32. - _darcs
  33. - .git
  34. - std-lib
  35. - test/Succeed/LineEndings
  36. - examples/uptodate
  37. # Every matched filename is included unless it is matched by excluded-files.
  38. included-files:
  39. - "*.agda"
  40. - "*.cabal"
  41. - "*.el"
  42. - "*.hs"
  43. - "*.hs-boot"
  44. - "*.lagda"
  45. - "*.lhs"
  46. - "*.md"
  47. - "*.rst"
  48. - "*.x"
  49. - "*.y"
  50. - "*.yaml"
  51. - "*.yml"
  52. excluded-files:
  53. # Andreas (24 Sep 2014).
  54. # The following files are exempt from the whitespace check,
  55. # as they test behavior of Agda with regard to e.g. tab characters.
  56. - "test/Succeed/Whitespace.agda"
  57. - "test/Succeed/Issue1337.agda"
  58. - "test/Succeed/Issue5545.agda"
  59. - "test/Fail/Issue5740.agda"
  60. - "test/Fail/Tabs.agda"
  61. - "test/Fail/TabsInPragmas.agda"
  62. - "src/full/Agda/Syntax/Parser/Lexer.hs"
  63. - "test/LaTeXAndHTML/succeed/AccidentalSpacesAfterBeginCode.lagda"
  64. - "test/LaTeXAndHTML/succeed/MdDontHighlightCode.html"
  65. - "test/LaTeXAndHTML/succeed/MdDontHighlightCode.lagda.md"