Skip to content

Commit ba7c0ee

Browse files
author
Sergey Chernyshev
committed
Add rule ID reporting for rollups and URLs for rules that have corresponding wiki pages
1 parent 5dd84b2 commit ba7c0ee

33 files changed

+40
-5
lines changed

src/formatters/compact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CSSLint.addFormatter({
4949

5050
CSSLint.Util.forEach(messages, function(message) {
5151
if (message.rollup) {
52-
output += filename + ": " + capitalize(message.type) + " - " + message.message + "\n";
52+
output += filename + ": " + capitalize(message.type) + " - " + message.message + " (" + message.rule.id + ")\n";
5353
} else {
5454
output += filename + ": " + "line " + message.line +
5555
", col " + message.col + ", " + capitalize(message.type) + " - " + message.message + " (" + message.rule.id + ")\n";

src/rules/adjoining-classes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CSSLint.addRule({
88
id: "adjoining-classes",
99
name: "Disallow adjoining classes",
1010
desc: "Don't use adjoining classes.",
11+
url: "https://github.com/CSSLint/csslint/wiki/Disallow-adjoining-classes",
1112
browsers: "IE6",
1213

1314
//initialization

src/rules/box-model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CSSLint.addRule({
77
id: "box-model",
88
name: "Beware of broken box size",
99
desc: "Don't use width or height when using padding or border.",
10+
url: "https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size",
1011
browsers: "All",
1112

1213
//initialization

src/rules/box-sizing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CSSLint.addRule({
88
id: "box-sizing",
99
name: "Disallow use of box-sizing",
1010
desc: "The box-sizing properties isn't supported in IE6 and IE7.",
11+
url: "https://github.com/CSSLint/csslint/wiki/Disallow-box-sizing",
1112
browsers: "IE6, IE7",
1213
tags: ["Compatibility"],
1314

src/rules/bulletproof-font-face.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CSSLint.addRule({
99
id: "bulletproof-font-face",
1010
name: "Use the bulletproof @font-face syntax",
1111
desc: "Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",
12+
url: "https://github.com/CSSLint/csslint/wiki/Bulletproof-font-face",
1213
browsers: "All",
1314

1415
//initialization

src/rules/compatible-vendor-prefixes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CSSLint.addRule({
99
id: "compatible-vendor-prefixes",
1010
name: "Require compatible vendor prefixes",
1111
desc: "Include all compatible vendor prefixes to reach a wider range of users.",
12+
url: "https://github.com/CSSLint/csslint/wiki/Require-compatible-vendor-prefixes",
1213
browsers: "All",
1314

1415
//initialization

src/rules/display-property-grouping.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CSSLint.addRule({
1212
id: "display-property-grouping",
1313
name: "Require properties appropriate for display",
1414
desc: "Certain properties shouldn't be used with certain display property values.",
15+
url: "https://github.com/CSSLint/csslint/wiki/Require-properties-appropriate-for-display",
1516
browsers: "All",
1617

1718
//initialization

src/rules/duplicate-background-images.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CSSLint.addRule({
88
id: "duplicate-background-images",
99
name: "Disallow duplicate background images",
1010
desc: "Every background-image should be unique. Use a common class for e.g. sprites.",
11+
url: "https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-background-images",
1112
browsers: "All",
1213

1314
//initialization

src/rules/duplicate-properties.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CSSLint.addRule({
99
id: "duplicate-properties",
1010
name: "Disallow duplicate properties",
1111
desc: "Duplicate properties must appear one after the other.",
12+
url: "https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties",
1213
browsers: "All",
1314

1415
//initialization

src/rules/empty-rules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CSSLint.addRule({
88
id: "empty-rules",
99
name: "Disallow empty rules",
1010
desc: "Rules without any properties specified should be removed.",
11+
url: "https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules",
1112
browsers: "All",
1213

1314
//initialization

0 commit comments

Comments
 (0)