From 948fa481f30f6362768dfe7f2e31ad78f645b83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Britto?= Date: Tue, 26 Apr 2016 14:03:13 -0300 Subject: [PATCH] Fix order-alphabetical rule message From "alphabetical ordered" to "alphabetical order". --- dist/csslint-node.js | 2 +- dist/csslint-rhino.js | 2 +- dist/csslint-tests.js | 4 ++-- dist/csslint-worker.js | 2 +- dist/csslint-wsh.js | 2 +- dist/csslint.js | 2 +- src/rules/order-alphabetical.js | 2 +- tests/rules/order-alphabetical.js | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dist/csslint-node.js b/dist/csslint-node.js index 7e023751..f667be79 100644 --- a/dist/csslint-node.js +++ b/dist/csslint-node.js @@ -1767,7 +1767,7 @@ CSSLint.addRule({ expectedProperties = properties.sort().join(","); if (currentProperties !== expectedProperties) { - reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule); + reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule); } }; diff --git a/dist/csslint-rhino.js b/dist/csslint-rhino.js index 3c93ba1c..28eae1be 100644 --- a/dist/csslint-rhino.js +++ b/dist/csslint-rhino.js @@ -8460,7 +8460,7 @@ CSSLint.addRule({ expectedProperties = properties.sort().join(","); if (currentProperties !== expectedProperties) { - reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule); + reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule); } }; diff --git a/dist/csslint-tests.js b/dist/csslint-tests.js index 6683ab7f..f7936efd 100644 --- a/dist/csslint-tests.js +++ b/dist/csslint-tests.js @@ -3065,14 +3065,14 @@ background: -o-linear-gradient(top, #1e5799 ,#2989d8 ,#207cca ,#7db9e8 ); var result = CSSLint.verify("li { z-index: 2; color: red; }", { "order-alphabetical": 1 }); Assert.areEqual(1, result.messages.length); Assert.areEqual("warning", result.messages[0].type); - Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message); + Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message); }, "Rules with prefixed properties not in alphabetical order (without the prefix) should result in a warning": function() { var result = CSSLint.verify("li { -moz-transition: none; -webkit-box-shadow: none; }", { "order-alphabetical": 1 }); Assert.areEqual(1, result.messages.length); Assert.areEqual("warning", result.messages[0].type); - Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message); + Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message); }, "Rules with properties in alphabetical order should not result in a warning": function() { diff --git a/dist/csslint-worker.js b/dist/csslint-worker.js index f12a05e1..837b4e45 100644 --- a/dist/csslint-worker.js +++ b/dist/csslint-worker.js @@ -8456,7 +8456,7 @@ CSSLint.addRule({ expectedProperties = properties.sort().join(","); if (currentProperties !== expectedProperties) { - reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule); + reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule); } }; diff --git a/dist/csslint-wsh.js b/dist/csslint-wsh.js index 7a66d473..c0e66d8b 100644 --- a/dist/csslint-wsh.js +++ b/dist/csslint-wsh.js @@ -8460,7 +8460,7 @@ CSSLint.addRule({ expectedProperties = properties.sort().join(","); if (currentProperties !== expectedProperties) { - reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule); + reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule); } }; diff --git a/dist/csslint.js b/dist/csslint.js index d229c2d6..f8923496 100644 --- a/dist/csslint.js +++ b/dist/csslint.js @@ -8460,7 +8460,7 @@ CSSLint.addRule({ expectedProperties = properties.sort().join(","); if (currentProperties !== expectedProperties) { - reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule); + reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule); } }; diff --git a/src/rules/order-alphabetical.js b/src/rules/order-alphabetical.js index 597d7c1d..33da6b4d 100644 --- a/src/rules/order-alphabetical.js +++ b/src/rules/order-alphabetical.js @@ -25,7 +25,7 @@ CSSLint.addRule({ expectedProperties = properties.sort().join(","); if (currentProperties !== expectedProperties) { - reporter.report("Rule doesn't have all its properties in alphabetical ordered.", event.line, event.col, rule); + reporter.report("Rule doesn't have all its properties in alphabetical order.", event.line, event.col, rule); } }; diff --git a/tests/rules/order-alphabetical.js b/tests/rules/order-alphabetical.js index b5f1406a..823ebf09 100644 --- a/tests/rules/order-alphabetical.js +++ b/tests/rules/order-alphabetical.js @@ -10,14 +10,14 @@ var result = CSSLint.verify("li { z-index: 2; color: red; }", { "order-alphabetical": 1 }); Assert.areEqual(1, result.messages.length); Assert.areEqual("warning", result.messages[0].type); - Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message); + Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message); }, "Rules with prefixed properties not in alphabetical order (without the prefix) should result in a warning": function() { var result = CSSLint.verify("li { -moz-transition: none; -webkit-box-shadow: none; }", { "order-alphabetical": 1 }); Assert.areEqual(1, result.messages.length); Assert.areEqual("warning", result.messages[0].type); - Assert.areEqual("Rule doesn't have all its properties in alphabetical ordered.", result.messages[0].message); + Assert.areEqual("Rule doesn't have all its properties in alphabetical order.", result.messages[0].message); }, "Rules with properties in alphabetical order should not result in a warning": function() {