mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
/**
|
|
* @name Classes with a default constructor
|
|
* @description Finds classes that do not declare an explicit constructor
|
|
* @tags class
|
|
* constructor
|
|
* default constructor
|
|
* ECMAScript 6
|
|
* ECMAScript 2015
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from ClassDefinition c
|
|
where c.getConstructor().isSynthetic()
|
|
select c |