Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 7aa0d8b

Browse files
committed
Enable GHC warnings in tests
1 parent 440b182 commit 7aa0d8b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

semantic.cabal

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ common dependencies
7373
common executable-flags
7474
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -A4m -n2m"
7575

76+
common ghc-warnings
77+
ghc-options: -Wall -Wmissing-export-lists -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -Wno-name-shadowing
78+
7679
library
77-
import: haskell, dependencies
80+
import: haskell, dependencies, ghc-warnings
7881
hs-source-dirs: src
7982
exposed-modules:
8083
-- Analyses & term annotations
@@ -321,7 +324,6 @@ library
321324
, tree-sitter-typescript ^>= 0.1.0.0
322325
, tree-sitter-tsx ^>= 0.1.0.0
323326
, tree-sitter-java ^>= 0.1.0.0
324-
ghc-options: -Wall -Wmissing-export-lists -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing
325327
if flag(release)
326328
cpp-options: -DCOMPUTE_GIT_SHA
327329
else
@@ -337,10 +339,9 @@ executable semantic
337339
, semantic
338340

339341
test-suite test
340-
import: haskell, dependencies, executable-flags
342+
import: haskell, dependencies, executable-flags, ghc-warnings
341343
type: exitcode-stdio-1.0
342344
hs-source-dirs: test
343-
ghc-options: -Wunused-imports
344345
main-is: Spec.hs
345346
other-modules: Analysis.Go.Spec
346347
, Analysis.PHP.Spec

0 commit comments

Comments
 (0)