There is no clear code of conduct in the US that can resist the president appointing a Supreme Court associate justice just before the election. The election has already become almost a referendum of his handling the Covid-19 crisis, exacerbated by the fact that the president himself has been tested Covid-positive.