rspec/rules/S6035/java/rule.adoc
Nils Werner 37e48b527c
Modify rule S6035: Add Python as covered language (#541)
* Modify rule S6035: Add Python as covered language

* Modify rule S6035: Fix description for python and php
2021-10-29 08:27:24 +00:00

29 lines
423 B
Plaintext

include::../description_with_reference_to_s5998.adoc[]
== Noncompliant Code Example
----
Pattern.compile("a|b|c"); // Noncompliant
----
== Compliant Solution
----
Pattern.compile("[abc]");
// or
Pattern.compile("[a-c]");
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::highlighting.adoc[]
endif::env-github,rspecator-view[]