San Francisco's housing approval process, a source of complaints from developers, is the longest among any California city and violates a heap of state housing laws based on an investigation into the dearth of residential development in one of the nation's priciest markets.