Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1c9843

Browse files
committed
update {cs/cpp}/empty-block so they have the same alert message
1 parent 594fbc6 commit b1c9843

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/src/Best Practices/Likely Errors/EmptyBlock.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ where
110110
emptyBlock(s, eb) and
111111
not emptyBlockContainsNonchild(eb) and
112112
not lineComment(eb)
113-
select eb, "Empty block without comment"
113+
select eb, "Empty block without comment."

csharp/ql/src/Likely Bugs/Statements/EmptyBlock.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ where
4242
(loopStmtWithEmptyBlock(s) or conditionalWithEmptyBlock(s)) and
4343
not exists(CommentBlock c | c.getParent() = s) and
4444
not exists(ForStmt fs | fs.getBody() = s and exists(fs.getAnUpdate()))
45-
select s, "Empty block."
45+
select s, "Empty block without comment."

0 commit comments

Comments
 (0)