Sustainability doesn't matter when faced with a quarterly review. You do whatever to get it over the line in time for that and then don't have time to fix the snotball of hacks that is hidden.
I've certainly done this for sprints. I suspect if you examined code quality by when a ticket was started in a sprint, you would find it plummets a few days before the end.
I've certainly done this for sprints. I suspect if you examined code quality by when a ticket was started in a sprint, you would find it plummets a few days before the end.