rspec/rules/S2960/swift/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

41 lines
755 B
Plaintext

== Why is this an issue?
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
[source,swift]
----
func <*>(a: MyClass, b: MyClass) -> Boolean { // Noncompliant
----
=== Compliant solution
[source,swift]
----
func <*> (a: MyClass, b: MyClass) -> Boolean {
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Add whitespace around "x".
'''
== Comments And Links
(visible only on this page)
=== on 21 May 2015, 11:53:00 Ann Campbell wrote:
\[~elena.vilchik] further tweak to title. Okay?
endif::env-github,rspecator-view[]