From 0c46e5c1a8dfd42eac20477a091eae8afd816690 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Wed, 2 Oct 2019 15:01:25 +0200 Subject: [PATCH] update description of js/suspicious-method-name-declaration --- .../ql/src/Declarations/SuspiciousMethodNameDeclaration.ql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/ql/src/Declarations/SuspiciousMethodNameDeclaration.ql b/javascript/ql/src/Declarations/SuspiciousMethodNameDeclaration.ql index a15566a40ac..7831344f5ec 100644 --- a/javascript/ql/src/Declarations/SuspiciousMethodNameDeclaration.ql +++ b/javascript/ql/src/Declarations/SuspiciousMethodNameDeclaration.ql @@ -1,7 +1,7 @@ /** * @name Suspicious method name declaration - * @description A method having the name "function", "new", or "constructor" - * is usually caused by a programmer being confused about the TypeScript syntax. + * @description Declaring a class or interface method with a special name may cause a normal + * named method to be declared when a special type was expected. * @kind problem * @problem.severity warning * @id js/suspicious-method-name-declaration