Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Hi,
We're running code climate on a React project and we have noticed something.
If we have a stateless component that exceeds the allowed number of lines of code, like:
As expected, we get a code smell saying:
Function SomeComponent has X lines of code (exceeds 50 allowed)But, if we change the code to the equivalent:
We don't get any code smell.
The same thing happens in regular es6 (non-React) code.
Why is that? Is it possible to fix this?
Thanks