scrutinizer-ci / scrutinizer

Legacy repository - archives past feature requests/bug reports
https://scrutinizer-ci.com/docs
140 stars 36 forks source link

The number of components being 0 for cohesion score is weird #110

Open stof opened 10 years ago

stof commented 10 years ago

In https://scrutinizer-ci.com/g/Behat/Mink/inspections/fdc596a6-e061-49a1-a393-2e70f642b00f/code-structure/class/Behat%5CMink%5CSelector%5CXpath%5CManipulator the cohesion score for the class displays Components: 0. This is a bit weird, given that there is 1 method in the class. Either it is a bug in the algorithm, or it is a special case which needs an explanation in the UI to understand it IMO

schmittjoh commented 10 years ago

This is a utility class (it uses has no data). Those methods are not counted (as there is no feasible way to distinguish between different concerns for them).

We might need to add more docs for them though.