Open clange opened 10 years ago
On 15 July 2014 19:33, Christoph Lange notifications@github.com wrote:
- getQualityProblems looks the same for all metrics (and is currently copied). Can't we centralise it into some common superclass instead of only having a Metric super-interface?
- Some metrics have a before method, others don't. If this same work were done in a constructor, it would be easier to do this in a constructor because then it would be done automatically when initialising the metric.
— Reply to this email directly or view it on GitHub https://github.com/diachron/quality/issues/48.
getQualityProblems
looks the same for all metrics (and is currently copied). Can't we centralise it into some common superclass instead of only having aMetric
super-interface?before
method, others don't. If this same work were done in a constructor, it would be easier to do this in a constructor because then it would be done automatically when initialising the metric.