mirror of
https://github.com/github/codeql.git
synced 2026-01-18 08:54:56 +01:00
17 lines
428 B
Plaintext
17 lines
428 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 maintainability
|
|
* @precision medium
|
|
*/
|
|
|
|
import javascript
|
|
import UnusedParameter
|
|
|
|
from Parameter p
|
|
where isAnAccidentallyUnusedParameter(p)
|
|
select p, "Unused parameter " + p.getAVariable().getName() + "."
|