microsoft / sarif-sdk

.NET code and supporting files for working with the 'Static Analysis Results Interchange Format' (SARIF, see https://github.com/oasis-tcs/sarif-spec)
Other
191 stars 88 forks source link

Microsoft.CodeAnalysis.Sarif.Query.QueryParseException: Expected compare operator but found <End> #2733

Open wentong-wow opened 8 months ago

wentong-wow commented 8 months ago

we try to use sarif-multitool cli to query sarif result with expression like below:

sarif-multitool query NewBaseline.sarif --expression "BaselineState == 'absent'"

However, we always get exception: Microsoft.CodeAnalysis.Sarif.Query.QueryParseException: Expected compare operator but found <End>.

Does anyone can tell me what's wrong on this expression?

sarif-multitool version: 4.3.7