The WA government is warned it risks being found in contempt of court for continuing to house juvenile detainees in an adult prison, with a senior Perth judge describing what’s happening as ‘barbaric”, “cruel” and “a form of child abuse”.