As an AHJ I was told by some very smart people, that "If you can't read the violation in the NEC, Then you can't write a violation!" Ask the AHJ very nicely, what code section you are in violation of so that you don't make a mistake. In NJ by law, I have to cite a violation by chapter and verse where it is in the NEC. At the very least our state has a "Construction Board of Appeals in each county. You and the inspector have the right to go in front of this board. They will hear both sides of the story and give you an answer. They will either side with you or the AHJ. Good Luck