Closed ali-habibzadeh closed 4 years ago
This may be a bug. The min-class-cohesion
is not something I personally use as it is not perfected yet.
Implementation can be found at https://github.com/Glavin001/tslint-clean-code/blob/master/src/minClassCohesionRule.ts and tests at https://github.com/Glavin001/tslint-clean-code/blob/master/src/tests/MinClassCohesionRuleTests.ts
Pull Requests welcome! Adding a failing test to https://github.com/Glavin001/tslint-clean-code/blob/master/src/tests/MinClassCohesionRuleTests.ts would be a great place to start.
Ok. Will reopen this. After our current project, I will try to make a PR for this. @balvienie Adding you in so we both remember.
Is it expected for the class below to be picked up for too little cohesion?
[tslint] The cohesion of this class is too low. Consider splitting this class into multiple cohesive classes: Multiplier (min-class-cohesion)
What splitting is suggested here?