Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove superfluous trailing arguments in code #242

Open
2 tasks
jvigliotta opened this issue Dec 6, 2024 · 0 comments
Open
2 tasks

Remove superfluous trailing arguments in code #242

jvigliotta opened this issue Dec 6, 2024 · 0 comments
Labels

Comments

@jvigliotta
Copy link
Collaborator

Description

Function calls in JavaScript may pass an arbitrary number of arguments to the invoked function. If the invoked function declares fewer parameters than arguments were passed, the remaining arguments can only be accessed through the arguments object. Hence, if a function is passed too many arguments but does not use the arguments object, the remaining arguments are useless. Such calls often indicate incomplete refactorings, or may point to a misunderstanding of the functionality of the invoked function.

Items to Fix as reported by Security Scan:

Additional context

@jvigliotta jvigliotta added this to the MC2512 Backlog milestone Dec 6, 2024
@jvigliotta jvigliotta removed security Is security related security_scan labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant