rspec/rules/S2761/plsql/rule.adoc
Fred Tingaud 84f1ddd588
Modify rule S2761: LaYC multiple unary operators
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
2023-06-16 16:00:06 +02:00

30 lines
700 B
Plaintext

== Why is this an issue?
The repetition of a prefix operator (``+``, ``++-++``, or ``++NOT++``) is usually a typo. The second operator invalidates the first one:
[source,sql]
----
IF NOT ( NOT foo = 5 ) THEN -- Noncompliant: equivalent to "foo = 5"
value := ++1; -- Noncompliant: equivalent to "+1"
END IF;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
=== on 1 Feb 2019, 22:47:11 Alexandre Gigleux wrote:
https://www.periscopedata.com/blog/sql-symbol-cheatsheet
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]