rspec/rules/S2960/swift/rule.adoc

25 lines
526 B
Plaintext

Surrounding your operators with whitespace in operator declarations will help maintainers derive meaning from what might otherwise look like a meaningless jumble of punctuation.
== Noncompliant Code Example
----
func <*>(a: MyClass, b: MyClass) -> Boolean { // Noncompliant
----
== Compliant Solution
----
func <*> (a: MyClass, b: MyClass) -> Boolean {
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]