
## Review A dedicated reviewer checked the rule description successfully for: - [ ] logical errors and incorrect information - [ ] information gaps and missing content - [ ] text style and tone - [ ] PR summary and labels follow [the guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
24 lines
462 B
Plaintext
24 lines
462 B
Plaintext
include::../description.adoc[]
|
|
|
|
[source,java,diff-id=1,diff-type=noncompliant]
|
|
----
|
|
"[0-9]" // Noncompliant - same as "\\d"
|
|
"[^0-9]" // Noncompliant - same as "\\D"
|
|
"[A-Za-z0-9_]" // Noncompliant - same as "\\w"
|
|
"[\\w\\W]" // Noncompliant - same as "."
|
|
"a{0,}" // Noncompliant - same as "a*"
|
|
----
|
|
|
|
include::../fix.adoc[]
|
|
|
|
[source,java,diff-id=1,diff-type=compliant]
|
|
----
|
|
"\\d"
|
|
"\\D"
|
|
"\\w"
|
|
"."
|
|
"a*"
|
|
----
|
|
|
|
include::../implementation.adoc[]
|