False positives in Javascript

We are seeing a number of false positives in both Java and Javascript (UI5) repositories as below. Request you to please suggest if we need to update anything at a tool level or CoDePiPeS level to improve it, not show any false positives.

Many false positives such as the below one:

•Considers the whole file as a function, though we have multiple functions
•The parameter is not at a function level, this is sap.ui.define dependencies


Any update on my last query ?

Best Regards,


It’s likely you didn’t get answers to this because it’s about multiple subjects (FPs in both Java and JavaScript) without a lot of detail.

Please consider re-focusing this thread to a single false positive in a single language with code examples showing where you believe issues are wrongly raised. Then open additional threads for each additional rule raising false positives.