Do you attribute all of the code you ever learned from?
It may be because I’m a crappy programmer, but I often have SO or a search-discovered web page with someone else’s code while writing or debugging my own. Not for copy/paste, but to see how someone else used a function or solved a difficult problem that I’m stuck on.
I’ve never considered that to be a license violation. Is it?