Add exclude name regex to "Functions should not have too many parameters"

We are using Angular for our project and it uses constructor based dependency injection. This can lead to the constructor having a lot of parameters as it injects the necessary tokens for a given component / service.

The issue is that the “Functions should not have too many parameters” rule in JavaScript / TypeScript is great in every other context then this. We don’t want to raise the limit as normal functions & methods should not have too many parameters.

The feature request is some kind of regex based function/method exclusion to be included in the rule. This would allow us to exclude “constructor” from these checks, which will still affect normal class constructors but is far more ideal then having to raise the limit for this rule.


Would you be able to share a sample project that illustrates the problem? That would help to make the good choice for the solution to implement.