I’ve recent run into a situation where a code-block was duplicated by design. And now, our integration pipeline is failing because the new commits trigger a quality-gate fail due to this duplication.
We write code which is used to interact with network devices and one of the vendors recently spit their running OS on those devices. They now have a separate life-cycle. Part of our code was duplicated to represent this split, so we can evolve both code-bases independently.
It would be nice to be able to flag that duplication as “won’t fix”.
We could remove the duplication, but it was an internal design-decision to duplicate it. But this decision is now blocking the integration pipeline so we will remove the duplication again. Even though it’s not quite what we want. But at least this way the pipeline will pass.
It would be nice to be able to flag duplications as “won’t fix” for some of these corner cases.