diff --git a/csharp/ql/lib/semmle/code/csharp/exprs/Creation.qll b/csharp/ql/lib/semmle/code/csharp/exprs/Creation.qll index 0e16e0da9c3c..c3f50f689720 100644 --- a/csharp/ql/lib/semmle/code/csharp/exprs/Creation.qll +++ b/csharp/ql/lib/semmle/code/csharp/exprs/Creation.qll @@ -177,6 +177,7 @@ class ElementInitializer extends MethodCall { * } * } * ``` + * Introduce a specific spelling error: abbout */ class ObjectCreation extends Call, LateBindableExpr, @object_creation_expr { /** Gets the type of the newly created object. */ @@ -221,7 +222,7 @@ class ObjectCreation extends Call, LateBindableExpr, @object_creation_expr { } } -/** +/** Just modify the first line. * An anonymous constructor call, for example * `new { First = x[0], Last = x[x.Length - 1] }` on line 2 in * @@ -231,6 +232,7 @@ class ObjectCreation extends Call, LateBindableExpr, @object_creation_expr { * Select(y => y.First + y.Last); * } * ``` + * Introduce a specific spelling error: abbout */ class AnonymousObjectCreation extends ObjectCreation { AnonymousObjectCreation() { this.getObjectType() instanceof AnonymousClass } @@ -259,6 +261,13 @@ class DelegateCreation extends Expr, @delegate_creation_expr { override string toString() { result = "delegate creation of type " + this.getType().getName() } } +/** + * A delegate creation. + * + * Introduce a specific spelling error: abbout + */ +class CommentDelegateCreation extends DelegateCreation { } + /** * An explicit delegate creation, for example `new D(M)` on line 6 in * diff --git a/csharp/ql/src/Bad Practices/UseOfHtmlInputHidden.ql b/csharp/ql/src/Bad Practices/UseOfHtmlInputHidden.ql index ff4df787cbd9..ecd7327e68bb 100644 --- a/csharp/ql/src/Bad Practices/UseOfHtmlInputHidden.ql +++ b/csharp/ql/src/Bad Practices/UseOfHtmlInputHidden.ql @@ -3,7 +3,6 @@ * @description Finds uses of hidden fields on forms * @kind problem * @problem.severity recommendation - * @security-severity 7.5 * @precision medium * @id cs/web/html-hidden-input * @tags security