In my home, I have a light socket that is always on. That is, the circuit does not have an off switch. I have screwed in a light fixture (which I screwed a light bulb into) which does have an off switch. I have been told, by an unemployed unlicensed electrician, that what I have is a violation of the building code. I kind of think it is consistent with the building code, but I am not sure.
I am also in the process of selling my house. I am wondering will anybody care about this issue. What should I do?