2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2020-06-30 12:47:33 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,javascript]
|
2020-06-30 12:47:33 +02:00
|
|
|
----
|
2023-10-11 19:48:17 +02:00
|
|
|
/**
|
|
|
|
* @deprecated Use newFunction instead.
|
|
|
|
*/
|
|
|
|
function oldFunction() {
|
|
|
|
console.log("This is the old function.");
|
2020-06-30 12:47:33 +02:00
|
|
|
}
|
|
|
|
|
2023-10-11 19:48:17 +02:00
|
|
|
function newFunction() {
|
|
|
|
console.log("This is the new function.");
|
|
|
|
}
|
|
|
|
oldFunction(); // Noncompliant: "oldFunction is deprecated"
|
2020-06-30 12:47:33 +02:00
|
|
|
----
|
|
|
|
|
2021-09-20 15:38:42 +02:00
|
|
|
|
2023-10-11 19:48:17 +02:00
|
|
|
include::../see.adoc[]
|