2023-10-11 19:48:17 +02:00

22 lines
364 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
[source,javascript]
----
/**
* @deprecated Use newFunction instead.
*/
function oldFunction() {
console.log("This is the old function.");
}
function newFunction() {
console.log("This is the new function.");
}
oldFunction(); // Noncompliant: "oldFunction is deprecated"
----
include::../see.adoc[]