File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
plugins/hls-stan-plugin/test Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ tests =
3434 assertBool " " $ T. isPrefixOf expectedPrefix (reduceDiag ^. L. message)
3535 reduceDiag ^. L. source @?= Just " stan"
3636 return ()
37+ , testCase " ignores diagnostics from .stan.toml" $
38+ runStanSession " " $ do
39+ doc <- openDoc " dir/configTest.hs" " haskell"
40+ diags <- waitForDiagnosticsFromSource doc " stan"
41+ liftIO $ length diags @?= 0
42+ return ()
3743 ]
3844
3945testDir :: 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