This PR restores the previous behavior in Processor._customize_analyses.
Details
Processor._customize_analyses was changed resently to "add" given metrics to default metrics, but the original behavior was "replace" it with the given metrics. This change restores the original behavior.
This change also introduces MetricConfig.replace_languages and AnalysisLevel.replace_metric_configs functions, which creates a new object by copying self with replacing several members.
Overview
This PR restores the previous behavior in
Processor._customize_analyses
.Details
Processor._customize_analyses
was changed resently to "add" given metrics to default metrics, but the original behavior was "replace" it with the given metrics. This change restores the original behavior. This change also introducesMetricConfig.replace_languages
andAnalysisLevel.replace_metric_configs
functions, which creates a new object by copying self with replacing several members.References
Blocked by