As an apprentice, you can't be held responsible for any code violation if you were told to do it that way. Keep a journal, so when the day comes when you have to support your contention that you were told to do it that way, then you can back it up. Make the journal believable, with non-looseleaf pages, and be sure to mention whenever you balked at the mis-direction. There might come a time when you can nail this guy without sounding like a whistle blower, perhaps in an after work chat with the owner and in the context of learning progress. Having your little "Code Study" journal in your hip pocket might serve you well. Maybe, if your journeyman just knows that you are taking notes, he might be a little more careful about what he tells you to do. Just find a way to let him see you jotting down some "practical application of code issues" in your notebook..he'll ask what you are up to, and you will tell him that you need to write things down so that when you have to do it all on your own, you can refer to your notes in case you forgot how you used to do it. He'll get the message, and he won't think you are just documenting a "rat sheet" on him.