summaryrefslogtreecommitdiff
path: root/utils/notes-util/Main.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-02-02 16:39:20 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-08 05:28:42 -0500
commitbc5cbce61b57f57cadf5c25fa3e60cf34c3b98ea (patch)
tree36350006a6f06895c8b6e74cd785ed18d5584d58 /utils/notes-util/Main.hs
parent1a9438594d6d5280dfe43e4e597dd0380963268d (diff)
downloadhaskell-bc5cbce61b57f57cadf5c25fa3e60cf34c3b98ea.tar.gz
Add notes linter to testsuite
Diffstat (limited to 'utils/notes-util/Main.hs')
-rw-r--r--utils/notes-util/Main.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/notes-util/Main.hs b/utils/notes-util/Main.hs
index d685001d1c..ceaf4f9b04 100644
--- a/utils/notes-util/Main.hs
+++ b/utils/notes-util/Main.hs
@@ -44,8 +44,11 @@ main = do
files <- lines <$> readFile respFile
return (parseMode mode, files)
[mode] -> do
+ let excludeList =
+ [ "testsuite/tests/linters/notes.stdout"
+ , "utils/notes-util/test" ]
files <- lines <$> readProcess "git" ["ls-tree", "--name-only", "-r", "HEAD"] ""
- return (parseMode mode, files)
+ return (parseMode mode, filter (`notElem` excludeList) files)
_ -> usage
case mode of