'Filtering render functions from CodeClimate method-lines check

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.



Solution 1:[1]

Check this document. You can disable the Enforce Diff Coverage and Enforce Totoal Coverage checks in codeclimate so that these reports are not run for your commits.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 yogaprasanth