rspec/rules/S2761/plsql/rule.adoc

30 lines
700 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
The repetition of a prefix operator (``+``, ``++-++``, or ``++NOT++``) is usually a typo. The second operator invalidates the first one:
2020-06-30 12:48:07 +02:00
2022-02-04 17:28:24 +01:00
[source,sql]
2020-06-30 12:48:07 +02:00
----
IF NOT ( NOT foo = 5 ) THEN -- Noncompliant: equivalent to "foo = 5"
value := ++1; -- Noncompliant: equivalent to "+1"
2020-06-30 12:48:07 +02:00
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[]