We're adding CodeClimate to a project and running into a lot of method-lines
errors for the render
functions in our React components,
example:-
Function
render
has 78 lines of code (exceeds 40 allowed). Consider refactoring.
We would like to filter out all our render
functions from the method-lines
check. We could increase the line threshold or disable the check altogether, but we still want the check for other functions, so that's not desirable.
There is node filtering for duplication checks, but I can't find anything similar for method-lines
.