Skip to content

Commit 9225d31

Browse files
committed
Merge pull request #655 from britto/fix-order-alphabetical-typo
Fix order-alphabetical rule message
2 parents 9b52bd2 + 948fa48 commit 9225d31

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

dist/csslint-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ CSSLint.addRule({
17671767
expectedProperties = properties.sort().join(",");
17681768

17691769
if (currentProperties !== expectedProperties) {
1770-
reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule);
1770+
reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule);
17711771
}
17721772
};
17731773

dist/csslint-rhino.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8460,7 +8460,7 @@ CSSLint.addRule({
84608460
expectedProperties = properties.sort().join(",");
84618461

84628462
if (currentProperties !== expectedProperties) {
8463-
reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule);
8463+
reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule);
84648464
}
84658465
};
84668466

dist/csslint-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3065,14 +3065,14 @@ background: -o-linear-gradient(top, #1e5799 ,#2989d8 ,#207cca ,#7db9e8 );
30653065
var result = CSSLint.verify("li { z-index: 2; color: red; }", { "order-alphabetical": 1 });
30663066
Assert.areEqual(1, result.messages.length);
30673067
Assert.areEqual("warning", result.messages[0].type);
3068-
Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message);
3068+
Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message);
30693069
},
30703070

30713071
"Rules with prefixed properties not in alphabetical order (without the prefix) should result in a warning": function() {
30723072
var result = CSSLint.verify("li { -moz-transition: none; -webkit-box-shadow: none; }", { "order-alphabetical": 1 });
30733073
Assert.areEqual(1, result.messages.length);
30743074
Assert.areEqual("warning", result.messages[0].type);
3075-
Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message);
3075+
Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message);
30763076
},
30773077

30783078
"Rules with properties in alphabetical order should not result in a warning": function() {

dist/csslint-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8456,7 +8456,7 @@ CSSLint.addRule({
84568456
expectedProperties = properties.sort().join(",");
84578457

84588458
if (currentProperties !== expectedProperties) {
8459-
reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule);
8459+
reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule);
84608460
}
84618461
};
84628462

dist/csslint-wsh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8460,7 +8460,7 @@ CSSLint.addRule({
84608460
expectedProperties = properties.sort().join(",");
84618461

84628462
if (currentProperties !== expectedProperties) {
8463-
reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule);
8463+
reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule);
84648464
}
84658465
};
84668466

dist/csslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8460,7 +8460,7 @@ CSSLint.addRule({
84608460
expectedProperties = properties.sort().join(",");
84618461

84628462
if (currentProperties !== expectedProperties) {
8463-
reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule);
8463+
reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule);
84648464
}
84658465
};
84668466

src/rules/order-alphabetical.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CSSLint.addRule({
2525
expectedProperties = properties.sort().join(",");
2626

2727
if (currentProperties !== expectedProperties) {
28-
reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule);
28+
reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule);
2929
}
3030
};
3131

tests/rules/order-alphabetical.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
var result = CSSLint.verify("li { z-index: 2; color: red; }", { "order-alphabetical": 1 });
1111
Assert.areEqual(1, result.messages.length);
1212
Assert.areEqual("warning", result.messages[0].type);
13-
Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message);
13+
Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message);
1414
},
1515

1616
"Rules with prefixed properties not in alphabetical order (without the prefix) should result in a warning": function() {
1717
var result = CSSLint.verify("li { -moz-transition: none; -webkit-box-shadow: none; }", { "order-alphabetical": 1 });
1818
Assert.areEqual(1, result.messages.length);
1919
Assert.areEqual("warning", result.messages[0].type);
20-
Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message);
20+
Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message);
2121
},
2222

2323
"Rules with properties in alphabetical order should not result in a warning": function() {

0 commit comments

Comments
 (0)