James commands confession to one another, not to a priest
For full confession Trent alleged James 5:16, 1 John 1:9 and the lepers whom Jesus told to show themselves to the priests. But James says: “Confess your faults one to another, and pray one for another”: confession is mutual, like prayer. John speaks of confessing our sins to God, who “is faithful and just to forgive us our sins”, like David: “I will confess my transgressions unto the LORD; and thou forgavest the iniquity of my sin” (Ps 32:5).
The lepers went to the priest so that, according to the law, he might see whether the leprosy was healed (Lev 14:2,3); in Luke 17 they were cleansed on the way, before arriving. In our judgment, none of these places commands that all mortal sins be declared to a priest in order to be absolved. It is the same answer Calvin gave.