Building inspection with automated code compliance checking