mirror of
https://github.com/github/codeql.git
synced 2026-05-14 19:29:28 +02:00
20 lines
495 B
Plaintext
20 lines
495 B
Plaintext
/**
|
|
* @name Unused parameter
|
|
* @description Unused parameters make functions hard to read and hard to use, and should be removed.
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @id js/unused-parameter
|
|
* @tags quality
|
|
* reliability
|
|
* correctness
|
|
* readability
|
|
* @precision medium
|
|
*/
|
|
|
|
import javascript
|
|
import UnusedParameter
|
|
|
|
from Parameter p
|
|
where isAnAccidentallyUnusedParameter(p)
|
|
select p, "The parameter '" + p.getVariable().getName() + "' is never used."
|