mozilla/amo-validator — pull request #222 by steven-gardiner (2014-04-05 23:02:31+00:00)
Title: check for complex inline scripts

I recently had an addon rejected by amo in part because of the use of long inline scripts. This is pretty easy to check for so that the validator can warn authors before they submit their addons and wait a week. The code below checks for complex inline script tags (more accurately, script tags that are over 1000 characters long) and gives a warning. I made up the number 1000.