# This rule is taken from https://github.com/stubbornella/csslint/tree/master/src/rules # # # Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved. # TODO: Paste the CSSLint LICENSE here. # # # /* # * Rule: There should be no syntax errors. (Duh.) # */ # /*global CSSLint*/ # CSSLint.addRule({ # # //rule information # id: "errors", # name: "Parsing Errors", # desc: "This rule looks for recoverable syntax errors.", # browsers: "All", # # //initialization # init: function(parser, reporter){ # var rule = this; # # parser.addListener("error", function(event){ # reporter.error(event.message, event.line, event.col, rule); # }); # # } # # });