rspec/rules/S2479/plsql/rule.adoc

39 lines
959 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
New lines and control characters can be injected in the source code by bad manipulations. Control characters aren't visible to maintainers, so whether or not they are actually wanted should be double-checked. Note that this rule can optionally also report violations on literals containing the tabulation character.
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,sql]
2020-06-30 12:48:07 +02:00
----
SET SERVEROUTPUT ON
BEGIN
/* Non-Compliant */ DBMS_OUTPUT.PUT_LINE('Hello
world!');
DBMS_OUTPUT.PUT_LINE('Hello'); -- Compliant, this is preferred
DBMS_OUTPUT.PUT_LINE('world!');
END;
/
----
== Exceptions
By default no issue will be raised on tabulation characters. This exception can be disabled.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]