SonarJS
SonarJS copied to clipboard
Resolve false postive in S5693 for multer storage engine init
The express multer middleware module has several member exports in addition to the main export. This change fixes the logic in S5693 so that it doesn't check for the content length limit parameter being passed to those members, since it's not applicable.
Googled a bit and have seen several folks in the community stumped by this false positive, e.g. https://stackoverflow.com/questions/76305839/sonar-security-warning-for-multer-express-js