@@ -87,25 +87,25 @@ suggestionsTests =
87
87
changeDoc doc [change']
88
88
testHlintDiagnostics doc
89
89
90
- , knownBrokenForGhcVersions [ GHC88 , GHC86 ] " hlint doesn't take in account cpp flag as ghc -D argument" $
91
- testCase " hlint diagnostics works with CPP via ghc -XCPP argument (#554) " $ runHlintSession " cpp" $ do
90
+ , knownBrokenForHlintOnGhcLib " hlint doesn't take in account cpp flag as ghc -D argument" $
91
+ testCase " [#554] hlint diagnostics works with CPP via ghc -XCPP argument" $ runHlintSession " cpp" $ do
92
92
doc <- openDoc " CppCond.hs" " haskell"
93
93
testHlintDiagnostics doc
94
94
95
- , knownBrokenForGhcVersions [ GHC88 , GHC86 ] " hlint doesn't take in account cpp flag as ghc -D argument" $
96
- testCase " hlint diagnostics works with CPP via language pragma (#554) " $ runHlintSession " " $ do
95
+ , knownBrokenForHlintOnGhcLib " hlint doesn't take in account cpp flag as ghc -D argument" $
96
+ testCase " [#554] hlint diagnostics works with CPP via language pragma" $ runHlintSession " " $ do
97
97
doc <- openDoc " CppCond.hs" " haskell"
98
98
testHlintDiagnostics doc
99
99
100
- , testCase " hlint diagnostics works with CPP via -XCPP argument and flag via #include header (#554) " $ runHlintSession " cpp" $ do
100
+ , testCase " [#554] hlint diagnostics works with CPP via -XCPP argument and flag via #include header" $ runHlintSession " cpp" $ do
101
101
doc <- openDoc " CppHeader.hs" " haskell"
102
102
testHlintDiagnostics doc
103
103
104
- , testCase " apply-refact works with -XLambdaCase argument (#590) " $ runHlintSession " lambdacase" $ do
104
+ , testCase " [#590] apply-refact works with -XLambdaCase argument" $ runHlintSession " lambdacase" $ do
105
105
testRefactor " LambdaCase.hs" " Redundant bracket"
106
106
expectedLambdaCase
107
107
108
- , testCase " apply-refact works with -XTypeApplications argument (#1242) " $ runHlintSession " typeapps" $ do
108
+ , testCase " [#1242] apply-refact works with -XTypeApplications argument" $ runHlintSession " typeapps" $ do
109
109
testRefactor " TypeApplication.hs" " Redundant bracket"
110
110
expectedTypeApp
111
111
@@ -131,7 +131,7 @@ suggestionsTests =
131
131
doc <- openDoc " IgnoreAnn.hs" " haskell"
132
132
expectNoMoreDiagnostics 3 doc " hlint"
133
133
134
- , knownBrokenForGhcVersions [ GHC810 , GHC90 ] " hlint plugin doesn't honour HLINT annotations (#838) " $
134
+ , knownBrokenForHlintOnRawGhc " [#838] hlint plugin doesn't honour HLINT annotations" $
135
135
testCase " hlint diagnostics ignore hints honouring HLINT annotations" $ runHlintSession " " $ do
136
136
doc <- openDoc " IgnoreAnnHlint.hs" " haskell"
137
137
expectNoMoreDiagnostics 3 doc " hlint"
@@ -163,7 +163,8 @@ suggestionsTests =
163
163
length diags @?= 1 -- "Eta Reduce" and "Redundant Id"
164
164
unusedExt ^. L. code @?= Just (InR " refact:Unused LANGUAGE pragma" )
165
165
166
- , testCase " hlint should not activate extensions like PatternSynonyms" $ runHlintSession " " $ do
166
+ , knownBrokenForHlintOnGhcLib " [#1279] hlint uses a fixed set of extensions" $
167
+ testCase " hlint should not activate extensions like PatternSynonyms" $ runHlintSession " " $ do
167
168
doc <- openDoc " PatternKeyword.hs" " haskell"
168
169
169
170
waitForAllProgressDone
@@ -301,3 +302,9 @@ hlintConfigWithFlags flags =
301
302
where
302
303
unObject (Object obj) = obj
303
304
unObject _ = undefined
305
+
306
+ knownBrokenForHlintOnGhcLib :: String -> TestTree -> TestTree
307
+ knownBrokenForHlintOnGhcLib = knownBrokenForGhcVersions [GHC88 , GHC86 ]
308
+
309
+ knownBrokenForHlintOnRawGhc :: String -> TestTree -> TestTree
310
+ knownBrokenForHlintOnRawGhc = knownBrokenForGhcVersions [GHC810 , GHC90 ]
0 commit comments