Skip to content

Commit 0c46e5c

Browse files
committed
update description of js/suspicious-method-name-declaration
1 parent c0b7538 commit 0c46e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Declarations/SuspiciousMethodNameDeclaration.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Suspicious method name declaration
3-
* @description A method having the name "function", "new", or "constructor"
4-
* is usually caused by a programmer being confused about the TypeScript syntax.
3+
* @description Declaring a class or interface method with a special name may cause a normal
4+
* named method to be declared when a special type was expected.
55
* @kind problem
66
* @problem.severity warning
77
* @id js/suspicious-method-name-declaration

0 commit comments

Comments
 (0)