-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
csharp: Control Structures should use curly braces {}
According to Microsoft, and Sonar C#, all Control structures (do, for, foreach, while, if) should use curly braces. While not technically incorrect, the omission of curly braces can be misleading, and may lead to the introduction of errors during maintenance. See CERT, EXP19-C Use braces for the body of an if, for, or while statement https://www.securecoding.cert.org/confluence/x/1QGMAg See CERT, EXP52-J Use braces for the body of an if, for, or while statement https://www.securecoding.cert.org/confluence/x/3wHEAw Signed-off-by: Robin Getz <[email protected]>
- Loading branch information
Showing
7 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.