Closed simondel closed 7 years ago
So the task is: rename ConfigWrite interface and fix each class which implements it, right?
Yes. Question is: in what. Maybe Configurator
?
@simondel what do you think?
May be be ConfigEditor
or ConfigModifier
since:
they just modify the existing config
Well, Configurator
is good too.
So it will be like F2 (vscode rename) on the interface definition, change name and commit, right? :)
You can see the result there: https://github.com/stryker-mutator/stryker/pull/357. What do you think folks? @simondel @nicojs
@simondel what do you think of the naming?
ConfigEditor
Configurator
ConfigModifier
@nicojs I like ConfigEditor
the most. An implementing class will edit the config, but it won't (shouldn't) write it to disk like the StrykerConfigWriter
We have an interface named
ConfigWriter
in the stryker-api that allows plugins to alter the stryker config at runtime (before stryker starts testing). However, these plugins don't actually write any config, they just modify the existing config.This interface (and everything that implements it) should be renamed to reflect this in order to prevent confusion with the
StrykerConfigWriter
in the initializer code. TheStrykerConfigWriter
does not implementConfigWriter
and is responsible for writing config.