File tree 3 files changed +25
-0
lines changed
plugins/hls-stan-plugin/test
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ tests =
33
33
assertBool " " $ T. isPrefixOf expectedPrefix (reduceDiag ^. L. message)
34
34
reduceDiag ^. L. source @?= Just " stan"
35
35
return ()
36
+ , testCase " ignores diagnostics from .stan.toml" $
37
+ runStanSession " " $ do
38
+ doc <- openDoc " dir/configTest.hs" " haskell"
39
+ diags <- waitForDiagnosticsFromSource doc " stan"
40
+ liftIO $ length diags @?= 0
41
+ return ()
36
42
]
37
43
38
44
testDir :: FilePath
Original file line number Diff line number Diff line change
1
+ [[check ]]
2
+ type = " Exclude"
3
+ id = " STAN-0206"
4
+ scope = " all"
5
+
6
+ [[check ]]
7
+ type = " Exclude"
8
+ id = " STAN-0103"
9
+ file = " dir/configTest.hs"
10
+
11
+ [[check ]]
12
+ type = " Exclude"
13
+ id = " STAN-0212"
14
+ directory = " dir/"
Original file line number Diff line number Diff line change
1
+ data A = A Int Int
2
+
3
+ a = length [1 .. ]
4
+
5
+ b = undefined
You can’t perform that action at this time.
0 commit comments