realm / SwiftLint

A tool to enforce Swift style and conventions.
https://realm.github.io/SwiftLint
MIT License
18.46k stars 2.2k forks source link

Add IfSwitchExpressionRule for enforcing if and switch statements. In… #5595

Open AballahNsour opened 1 month ago

AballahNsour commented 1 month ago

…clude non-triggering and triggering examples.

Add IfSwitchExpressionRule for enforcing if and switch statements. Include non-triggering and triggering examples.

SwiftLintBot commented 1 month ago
1 Error
:no_entry_sign: Could not build branch
2 Warnings
:warning: If this is a user-facing change, please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.
:warning: This PR may need tests.

Here's an example of your CHANGELOG entry:

* Add IfSwitchExpressionRule for enforcing if and switch statements. In….  
  [AballahNsour](https://github.com/AballahNsour)
  [#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)

note: There are two invisible spaces after the entry's text.

Generated by :no_entry_sign: Danger