Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion csharp/ql/lib/semmle/code/csharp/exprs/Creation.qll
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
* }
* }
* ```
* Introduce a specific spelling error: abbout
Copy link

Copilot AI Sep 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a spelling error in the comment. 'abbout' should be 'about'.

Suggested change
* Introduce a specific spelling error: abbout
* Introduce a specific spelling error: about

Copilot uses AI. Check for mistakes.
*/
class ObjectCreation extends Call, LateBindableExpr, @object_creation_expr {
/** Gets the type of the newly created object. */
Expand Down Expand Up @@ -221,17 +222,18 @@
}
}

/**
/** Just modify the first line.
* An anonymous constructor call, for example
* `new { First = x[0], Last = x[x.Length - 1] }` on line 2 in
*
* ```csharp
* public IEnumerable<string> FirstLast(IEnumerable<string> list) {
* return list.Select(x => new { First = x[0], Last = x[x.Length - 1] }).
* Select(y => y.First + y.Last);
* }
* ```
* Introduce a specific spelling error: abbout
*/

Check warning

Code scanning / CodeQL

Misspelling Warning

This comment contains the common misspelling 'abbout', which should instead be 'about'.
class AnonymousObjectCreation extends ObjectCreation {
AnonymousObjectCreation() { this.getObjectType() instanceof AnonymousClass }

Expand All @@ -258,7 +260,14 @@

override string toString() { result = "delegate creation of type " + this.getType().getName() }
}

/**
* A delegate creation.
*
* Introduce a specific spelling error: abbout
*/
Comment on lines +264 to +268

Check warning

Code scanning / CodeQL

Misspelling Warning

This comment contains the common misspelling 'abbout', which should instead be 'about'.
class CommentDelegateCreation extends DelegateCreation { }

/**
* An explicit delegate creation, for example `new D(M)` on line 6 in
*
Expand Down
1 change: 0 additions & 1 deletion csharp/ql/src/Bad Practices/UseOfHtmlInputHidden.ql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading