rspec/rules/S2960/swift/rule.adoc

17 lines
365 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Surrounding your operators with whitespace in operator declarations will help maintainers derive meaning from what might otherwise look like a meaningless jumble of punctuation.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
func <*>(a: MyClass, b: MyClass) -> Boolean { // Noncompliant
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
func <*> (a: MyClass, b: MyClass) -> Boolean {
----