I came across an answer from a question in the bounty section and upvoted the answer, because it makes more sense and looks helpful than the other ones, but this answer had a complete MIT license text in it. It is looked unnecessary to me.
The answer looked like this:
I made a comment and kindly asked the OP to remove the license text from the answer, but I got this reply:
At this point I realized OP wasn't going to fix it and to prevent this from happening again, I edited the answer and removed the licencing text. I also told OP to refrain from posting the license text from his future questions and got this reply:
I am getting accused of "breaking the law" and not "respecting his rights". Now, OP removed the code from the answer and linked to a GitHub page. At least, the license text is now gone.
Should we ignore the license texts in posts?
What should I have done?
I do think the OP should provide the part of the code relevant to the question, link to the complete code to the GitHub page then mention that the code is under a MIT license instead of posting a complete MIT license text. I wonder what every answer would be like if they include the license texts