mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
C#: Autoformat.
This commit is contained in:
@@ -52,6 +52,7 @@ class DefaultToStringType extends ValueOrRefType {
|
||||
|
||||
query predicate problems(Expr e, string s, DefaultToStringType t, string name) {
|
||||
invokesToString(e, t) and
|
||||
s = "Default 'ToString()': $@ inherits 'ToString()' from 'Object', and so is not suitable for printing." and
|
||||
s =
|
||||
"Default 'ToString()': $@ inherits 'ToString()' from 'Object', and so is not suitable for printing." and
|
||||
name = t.getName()
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@ import csharp
|
||||
predicate emptyStmt(Stmt s) {
|
||||
s instanceof EmptyStmt
|
||||
or
|
||||
s = any(BlockStmt bs |
|
||||
s =
|
||||
any(BlockStmt bs |
|
||||
bs.getNumberOfStmts() = 0
|
||||
or
|
||||
bs.getNumberOfStmts() = 1 and
|
||||
|
||||
Reference in New Issue
Block a user