Repo Added 30 Aug 2019 04:20PM UTC
# Builds 204 Last
ItemValidator class to encapsulate validations of Item The Item class is very close to hitting 1000 lines limit which indicates that it probably does too many things. As discussed in https://github.com/doorstop-dev/doorstop/issues/409, which identified some possible targets for refactoring, the validation aspects could be moved to a separate module. This changeset moves all 4 validation-related functions to a separate class: `ItemValidator`. With this change, `Item` is no longer `BaseValidatable` which seems reasonable, because otherwise it would be hard to move these 4 functions out without introducing cyclic dependencies.
1274 of 1389 branches covered (91.72%)
Branch coverage included in aggregate %.
121 of 135 new or added lines in 3 files covered. (89.63%)
3636 of 3764 relevant lines covered (96.6%)
1.93 hits per line