mirror of
https://github.com/github/codeql.git
synced 2026-02-12 13:11:20 +01:00
19 lines
488 B
Plaintext
19 lines
488 B
Plaintext
/**
|
|
* @name Useless parameter
|
|
* @description Parameters that are not used add unnecessary complexity to an interface.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @precision high
|
|
* @id java/unused-parameter
|
|
* @tags quality
|
|
* maintainability
|
|
* useless-code
|
|
* external/cwe/cwe-561
|
|
*/
|
|
|
|
import semmle.code.java.deadcode.DeadCode
|
|
|
|
from RootdefCallable c
|
|
where not c.whitelisted()
|
|
select c.unusedParameter() as p, "The parameter '" + p + "' is never used."
|