1 | ;
|
2 |
|
3 | /**
|
4 | * @param { import("../lib/css-analyzer") } analyzer
|
5 | */
|
6 | function rule(analyzer) {
|
7 | analyzer.setMetric("parsingErrors");
|
8 |
|
9 | analyzer.on("error", (err) => {
|
10 | analyzer.incrMetric("parsingErrors");
|
11 | analyzer.addOffender("parsingErrors", err.message);
|
12 | });
|
13 | }
|
14 |
|
15 | rule.description = "CSS parsing errors";
|
16 | module.exports = rule;
|