File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
tests/FSharpLint.Client.Tests Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,21 @@ let ``Daemon can lint a file with success``() =
116
116
| Content result -> Assert.Fail( " Should be a lint result" )
117
117
| LintResult warnings ->
118
118
Assert.IsNotEmpty warnings
119
+
120
+ warnings
121
+ |> List.iter( fun warning ->
122
+ Assert.IsNotEmpty warning.RuleName
123
+ Assert.IsTrue ( warning.RuleIdentifier.StartsWith( " FL" ))
124
+ Assert.IsNotEmpty warning.ErrorText
125
+ Assert.IsNotEmpty warning.FilePath
126
+
127
+ Assert.IsNotEmpty warning.Details.Message
128
+ Assert.Positive warning.Details.Range.StartLine
129
+ Assert.Positive warning.Details.Range.StartColumn
130
+ Assert.Positive warning.Details.Range.EndLine
131
+ Assert.Positive warning.Details.Range.EndColumn
132
+ Assert.IsTrue <| Option.isSome warning.Details.SuggestedFix)
133
+
119
134
Assert.AreEqual( LanguagePrimitives.EnumToValue FSharpLintResponseCode.OkLint, versionResponse.Code)
120
135
121
136
[<Test; Ignore( " not sure how to make file parsing fail" ) >]
You can’t perform that action at this time.
0 commit comments