Getting married in a year, partners sibling wants to get a loan under partners name

The partners sibling has bad credit, and wants to put my partners name for the loan applicationfor a vehicle. The loan term will be active for several years after we're married at which point we're looking to get a mortgage.

How will this affect us and I assume this is a bad idea?