When is Rescheck or Manual J required by a building department?

When is Rescheck or Manual J required by a building department?