This has been discussed before (not a lecture, just a note it comes up every once and a while). I always point out that we are not "code enforcement", and most (and the above confirms) don't have the expertise to "call out" most code issues.
Keep in mind, NO ONE is required to keep their, 1, 5, 10, or 100 year old home up to current code! Not even if the city building inspector "stops in for a beer!". What lenders and a few appraisers get worked up about are what are called "Life Safety" code issues. That is where the above point out some lenders require comment. And that fine if your qualified. I have Class A ICC (international commercial code) qualification, and all I can say is "there is what appears to be a smoke/CO detector installed" (I don't even want to "climb on a chair" and try to read those time white plastic letters). Every once in a while a lender asks "please comment on whether the water heater is "double strapped". I'm in Colorado, It's not a rule here, and I tell them "I don't even know what that looks like!!" (is that wearing two guns, or sex thing??)
I still hold my General Contractors licenses in the area County and several cities; I don't even want to give the impression I am offering an opinion regarding code due to liability (well unless you want to pay me for it!)
Thanks Bob in CO