Files
codeql/csharp/ql/src/Diagnostics/CompilerMessage.ql
2019-05-24 14:56:58 +01:00

17 lines
459 B
Plaintext

/**
* @name Compilation message
* @description A message emitted by the compiler, including warnings and errors.
* @kind problem
* @problem.severity recommendation
* @precision high
* @id cs/compilation-message
* @tags internal non-attributable
*/
import csharp
import semmle.code.csharp.commons.Diagnostics
from Diagnostic diagnostic
select diagnostic,
diagnostic.getSeverityText() + " " + diagnostic.getTag() + " " + diagnostic.getFullMessage()