Closed Fastjur closed 8 years ago
Nice work! :+1: Not all my comments have to be addressed, but please have a look at using some actual objects here and there, as it should make the test less verbose, and more open to extension of the warning generator.
What is your general thought on the testability of the LargeCommitWarning
? And do you find it a sensible warning?
Addressing your previous questions:
What is your general thought on the testability of the LargeCommitWarning
?
Testability was OK, had some trouble setting up the diffModel though, mainly due to my own incompetence. It was not hard to setup the actual test cases though.
And do you find it a sensible warning?
This really depends on the situation, it is, however, convention to keep your commits small, as this improves readability and the general structure of the repo will be less messy. So yes, I do think this is a sensible warning
Testability was OK, had some trouble setting up the diffModel though, mainly due to my own incompetence. It was not hard to setup the actual test cases though.
The DiffModel
is indeed hard to set up. I think this also comes because its structure relies quite heavily on the use of generics, in order to use mostly the same structure for DiffBlameModels
(which are DiffModels
with authorship information added per line).
This really depends on the situation, it is, however, convention to keep your commits small, as this improves readability and the general structure of the repo will be less messy. So yes, I do think this is a sensible warning.
Yes, there will be a lot of false positives. Thats also one reason why the max size is configurable. I am however not sure what the currently configured threshold is 👼
Yes, there will be a lot of false positives. Thats also one reason why the max size is configurable. I am however not sure what the currently configured threshold is :angel:
False positives are actually okay. Haven't had them occur yet, and committing something with 500+ lines should feel a bit off anyway. The current threshold is 10 files and 500 lines by the way, seems reasonable to me.
@Fastjur could you perhaps bring this branch up to date with master?
@JWGmeligMeyling Yep sorry, it is up to date now.
Thanks! 👍
Issue #362