simonrenoult / code-complexity

Measure the churn/complexity ratio. Higher values mean hotspots where refactorings should happen.
MIT License
281 stars 28 forks source link

Accuracy for Sass files #9

Closed pdewouters closed 3 years ago

pdewouters commented 4 years ago

Apologies for creating an issue, I couldn't find any contact details. Thanks for writing this tool,I was wondering if it can give accurate results for Sass/SCSS files? How is the complexity calculated in a language agnostic manner? Thanks

I get this message BTW: warning: inexact rename detection was skipped due to too many files. warning: you may want to set your diff.renameLimit variable to at least 755 and retry the command.

simonrenoult commented 3 years ago

Hi,

Thanks for chiming in and sorry for the late answer.

Providing more accurate complexity for SASS is currently quite complicated since it requires a better approach to complexity calculation than the current one. I'm looking into it but it won't land any time soon, sorry.

About your second issue, could you create a dedicated issue and explain how to reproduce this behavior?

pdewouters commented 3 years ago

thanks, will do