A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://codenarc.github.io/CodeNarc/codenarc-rules-braces.html below:

CodeNarc - Braces Rules

Braces Rules (“rulesets/braces.xml”) ElseBlockBraces Rule

Checks that else blocks use braces, even for a single statement.

By default, braces are not required for an else if it is followed immediately by an if. Set the bracesRequiredForElseIf property to true to require braces is that situation as well.

Property Description Default Value bracesRequiredForElseIf Set to true to require braces for an else block followed immediately by an if statement. false ForStatementBraces Rule

Checks that for statements use braces, even for a single statement.

IfStatementBraces Rule

Checks that if statements use braces, even for a single statement.

WhileStatementBraces Rule

Checks that while statements use braces, even for a single statement.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4