I've found that in most cases, the inspectors are pretty decent people wanting to make sure the job is done right. I've also found that when there is a question or violation of code, the problem happens because the person doesn't want to spend the money or time to do it right. I've yet to find a code issue what wasn't there to make the house safer, stronger and better. My attitude is always grateful and accommodating, which has always resulting in the inspectors being helpful in either explaining what needs to be changed, or trusting me to make the changes after he's gone. Granted, I don't deal with a lot of inspectors or deal with permits since most of my work is outside city limits, or in areas where it's not required. I add at least a days work to any job that I have to deal with inspectors and just consider it part of the job I'm getting paid to do.
Eddie