mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
22 lines
554 B
Plaintext
22 lines
554 B
Plaintext
/**
|
|
* @name Alert suppression
|
|
* @description Generates information about alert suppressions.
|
|
* @kind alert-suppression
|
|
* @id java/alert-suppression
|
|
*/
|
|
|
|
private import codeql.util.suppression.AlertSuppression as AS
|
|
private import semmle.code.java.Javadoc
|
|
|
|
class SingleLineComment extends Javadoc {
|
|
SingleLineComment() {
|
|
isEolComment(this)
|
|
or
|
|
isNormalComment(this) and exists(int line | this.hasLocationInfo(_, line, _, line, _))
|
|
}
|
|
|
|
string getText() { result = this.getChild(0).getText() }
|
|
}
|
|
|
|
import AS::Make<Top, SingleLineComment>
|