
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.
39 lines
563 B
Plaintext
39 lines
563 B
Plaintext
== Why is this an issue?
|
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,java]
|
|
----
|
|
"[ab]|a" // The "|a" is redundant because "[ab]" already matches "a"
|
|
".*|a" // .* matches everything, so any other alternative is redundant
|
|
----
|
|
|
|
|
|
=== Compliant solution
|
|
|
|
[source,java]
|
|
----
|
|
"[ab]"
|
|
".*"
|
|
----
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Remove or rework this redundant alternative
|
|
|
|
|
|
=== Highlighting
|
|
|
|
The redundant alternative
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|