org.sonar.l10n.plsqlopen.rules.plsql.UnusedParameter.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zpa-checks Show documentation
Show all versions of zpa-checks Show documentation
Z PL/SQL Analyzer :: Checks
The newest version!
Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.
Noncompliant Code Example
PROCEDURE do_something(a IN NUMBER, b IN NUMBER) IS -- "b" is unused
BEGIN
compute(a);
END;
Compliant Solution
PROCEDURE do_something(a IN NUMBER) IS
BEGIN
compute(a);
END;