rspec/rules/S1125/go/rule.adoc

39 lines
486 B
Plaintext
Raw Normal View History

include::../description.adoc[]
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,go]
----
if boolFunc() || false {
// ...
}
flag := x && true
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,go]
----
if boolFunc() {
// ...
}
flag := x
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]