Skip to content
This repository was archived by the owner on Jan 9, 2018. It is now read-only.

Commit 27a2174

Browse files
committed
Release
1 parent eb03398 commit 27a2174

File tree

9 files changed

+197
-29
lines changed

9 files changed

+197
-29
lines changed

CHANGELOG

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,108 @@
1+
December 4, 2015 - v0.10.0
2+
3+
'* Merge pull request #1 from codeclimate/pb-ignore-minimized (pat brisbin)
4+
* Support --exclude-exts (patrick brisbin)
5+
* Fix license key in package.json (patrick brisbin)
6+
* Make release (GordonDiggs)
7+
* Fix output of read errors (GordonDiggs)
8+
* Change path to cli (GordonDiggs)
9+
* Never return blank name for rule (GordonDiggs)
10+
* Merge pull request #512 from XhmikosR/deps (Nick Schonning)
11+
* Update dependencies. (XhmikosR)
12+
* Merge pull request #545 from CSSLint/fix-yuitest-reporter (Nick Schonning)
13+
* YUITest: Collect the full set of failing tests (Nick Schonning)
14+
* Order Aphabetical: Add listeners for at-rules (Nick Schonning)
15+
* Travis: Node 0.8 NPM fix (Nick Schonning)
16+
* Testing: Update the YUI Test harness for Grunt (Nick Schonning)
17+
* Merge pull request #489 from XhmikosR/demo-split-js (Nick Schonning)
18+
* Tweak CSSLintDemo. (XhmikosR)
19+
* Move demo JS to demo.js. (XhmikosR)
20+
* Specify html lang. (XhmikosR)
21+
* Add @viewport listeners to rules (Derk-Jan Hartman)
22+
* Travis: Update NPM to support new dependency glob (Nick Schonning)
23+
* Documentation: Copy back Wiki Home (Nick Schonning)
24+
* WSH: Remove additional strict statement (Nick Schonning)
25+
* Merge pull request #504 from dmi3y/wsharraymap (Nick Schonning)
26+
* Merge pull request #502 from dmi3y/cliconfig (Nick Schonning)
27+
* Merge pull request #465 from cvrebert/defensive-copy (Nick Schonning)
28+
* fix typos in comments in Gruntfile (Chris Rebert)
29+
* clone ruleset before passing it to applyEmbeddedRuleset; fixes #458 (Chris Rebert)
30+
* Gruntfile: add boilerplate for clone like there is for parserlib (Chris Rebert)
31+
* add `clone` to dependencies in package.json (Chris Rebert)
32+
* add test for #458 (Chris Rebert)
33+
* Merge pull request #511 from cvrebert/patch-1 (Nick Schonning)
34+
* add NPM version badge to README (Chris Rebert)
35+
* Ignore diff files (Nick Schonning)
36+
* Merge pull request #482 from XhmikosR/jshint (Nick Schonning)
37+
* Merge pull request #495 from XhmikosR/selector-newline (Nick Schonning)
38+
* fixing conflict (dmi3y)
39+
* wraping up with cli tests+ (dmi3y)
40+
* Array.prototype.map polyfil+ (dmi3y)
41+
* more tests (dmi3y)
42+
* wraping up with cli tests+ (dmi3y)
43+
* cli config path #449 (dmi3y)
44+
* Fix test failures after the strict comparison changes. (XhmikosR)
45+
* Enable strict mode. (XhmikosR)
46+
* Enable JSHint's `eqeqeq` rule and remove `eqnull`. (XhmikosR)
47+
* Fix selector-newline rule. (XhmikosR)
48+
* Merge pull request #499 from XhmikosR/patch-2 (Nick Schonning)
49+
* Use the new oragnization URL. (XhmikosR)
50+
* Use the simpler `license` property. (XhmikosR)
51+
* Update to new Org URLs (Nick Schonning)
52+
* Merge pull request #488 from XhmikosR/camelcase (Nick Schonning)
53+
* Enable JSHint's `camelcase` rule. (XhmikosR)
54+
* Merge pull request #486 from XhmikosR/testrunner-undef (Nick Schonning)
55+
* Merge pull request #487 from XhmikosR/unused (Nick Schonning)
56+
* Remove unused variables. (XhmikosR)
57+
* Merge pull request #485 from XhmikosR/globals (Nick Schonning)
58+
* testrunner.htm: fix undefined variables. (XhmikosR)
59+
* Fix typo. (XhmikosR)
60+
* Remove global directive from tests; it's set in .jshintrc. (XhmikosR)
61+
* Merge pull request #484 from XhmikosR/quotmark (Nick Schonning)
62+
* Enable JSHint's `quotmark` rule. (XhmikosR)
63+
* Merge pull request #483 from XhmikosR/indent (Nick Schonning)
64+
* Change badges to SVG (Nick Schonning)
65+
* Enable JSHint's `indent` rule. (XhmikosR)
66+
* Update JSHint's rules. (XhmikosR)
67+
* Update URLs for new GitHub org (Nick Schonning)
68+
* Merge pull request #433 from hsablonniere/add-order-alphabetical (Nick Schonning)
69+
* Merge pull request #466 from hartman/test_allrules (Nick Schonning)
70+
* "selector-newline": look for newline characters in selectors (Jos Hirth)
71+
* Removed `"-*-user-select"` checks. (Cristian·Tincu)
72+
* Merge pull request #478 from XhmikosR/testrunner (Nick Schonning)
73+
* Update testrunner.htm. (XhmikosR)
74+
* Merge pull request #427 from XhmikosR/package.json (Nick Schonning)
75+
* Update dependencies. (XhmikosR)
76+
* Normalize package.json. (XhmikosR)
77+
* Merge pull request #434 from nschonni/jshint-cleanup (Nick Schonning)
78+
* Remove CSSLint globals directives (Nick Schonning)
79+
* Move JSHint config to .jshintrc and .jshintignore (Nick Schonning)
80+
* Bump grunt-contrib-jshint to 0.7.2 (Nick Schonning)
81+
* Merge pull request #430 from XhmikosR/gitignore (Nick Schonning)
82+
* Merge pull request #431 from XhmikosR/whitespace (Nick Schonning)
83+
* Merge pull request #468 from malept/singular-problem-grammar (Nick Schonning)
84+
* Merge pull request #428 from XhmikosR/demo (Nick Schonning)
85+
* Merge pull request #429 from XhmikosR/readme (Nick Schonning)
86+
* Text formatter: fix grammatical error with one problem (Mark Lee)
87+
* When testing all, probably best to actually test all and not 25 (Derk-Jan Hartman)
88+
* Add scott gonzalez to the contributors list (Nicole Sullivan)
89+
* Merge pull request #457 from scottgonzalez/jsonrc (Nicole Sullivan)
90+
* Support JSON for .csslintrc files. (Scott González)
91+
* Fix README.md headers. (XhmikosR)
92+
* Add dependency badges to README.md. (XhmikosR)
93+
* Add alphabetical order rule (Hubert SABLONNIÈRE)
94+
* README.md: break long line. (XhmikosR)
95+
* Whitespace cleanup. (XhmikosR)
96+
* Update .gitignore. (XhmikosR)
97+
* Improve demos/CSSLintDemo.htm. (XhmikosR)
98+
* Update demos/CSSLintDemo.htm. (XhmikosR)
99+
* Merge pull request #404 from nschonni/remove-ant-build (Nicole Sullivan)
100+
* Merge pull request #405 from nschonni/add-readme-to-npm (Nicole Sullivan)
101+
* Merge pull request #356 from mo/print_rule_id_in_compact_mode (Nicole Sullivan)
102+
* Add README copy for NPM (Nick Schonning)
103+
* Clean out Ant build files (Nick Schonning)
104+
* Print rule ID for each error/warning in normal and compact modes (Martin Olsson)'
105+
1106
July 7, 2015 - v0.10.0
2107

3108
'* Fix output of read errors (GordonDiggs)

release/csslint-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build: v0.10.0 07-July-2015 06:12:11 */
24+
/* Build: v0.10.0 04-December-2015 05:13:50 */
2525
var clone = require('clone');
2626
var parserlib = require('parserlib');
2727
/**

release/csslint-rhino.js

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build: v0.10.0 07-July-2015 06:12:11 */
24+
/* Build: v0.10.0 04-December-2015 05:13:50 */
2525
var exports = exports || {};
2626
var CSSLint = (function(){
2727
/*!
@@ -9760,6 +9760,7 @@ function cli(api){
97609760
"warnings" : { "format" : "<rule[,rule]+>", "description" : "Indicate which rules to include as warnings."},
97619761
"ignore" : { "format" : "<rule[,rule]+>", "description" : "Indicate which rules to ignore completely."},
97629762
"exclude-list": { "format" : "<file|dir[,file|dir]+>", "description" : "Indicate which files/directories to exclude from being linted."},
9763+
"exclude-exts": { "format" : "<.ext[,.ext]+>", "description" : "Indicate which extensions to exclude from being linted."},
97639764
"config" : { "format" : "<file>", "description" : "Reads csslint options from specified file."},
97649765
"version" : { "format" : "", "description" : "Outputs the current version number."}
97659766
};
@@ -9768,6 +9769,18 @@ function cli(api){
97689769
// Helper functions
97699770
//-------------------------------------------------------------------------
97709771

9772+
/**
9773+
* Check if a path has any of the given extensions.
9774+
* @param path {String} the path to check.
9775+
* @param exts {Array} a list of extensions.
9776+
* @return {Boolean} if any extensions match the path
9777+
*/
9778+
function hasExtension(path, exts) {
9779+
var regexp = new RegExp("(" + exts.join("|").replace(/\./g, "\\.") + ")$");
9780+
9781+
return regexp.test(path);
9782+
}
9783+
97719784
/**
97729785
* Returns an array of messages for a particular type.
97739786
* @param messages {Array} Array of CSS Lint messages.
@@ -9834,11 +9847,11 @@ function cli(api){
98349847
*/
98359848
function filterFiles(files, options) {
98369849
var excludeList = options["exclude-list"],
9850+
excludeExts = options["exclude-exts"],
98379851
excludeFiles = [],
98389852
filesToLint = files.map(api.getFullPath),
98399853
fullPath;
98409854

9841-
98429855
if (excludeList) {
98439856
// Build up the exclude list, expanding any directory exclusions that were passed in
98449857
excludeList.split(",").forEach(function(value){
@@ -9848,16 +9861,25 @@ function cli(api){
98489861
excludeFiles.push(value);
98499862
}
98509863
});
9864+
}
98519865

9852-
// Remove the excluded files from the list of files to lint
9853-
excludeFiles.forEach(function(value){
9854-
fullPath = api.getFullPath(value);
9855-
if (filesToLint.indexOf(fullPath) > -1) {
9856-
filesToLint.splice(filesToLint.indexOf(fullPath),1);
9866+
if (excludeExts) {
9867+
// Add any extension-based exclusions
9868+
filesToLint.forEach(function(path) {
9869+
if (hasExtension(path, excludeExts.split(","))) {
9870+
excludeFiles.push(path);
98579871
}
98589872
});
98599873
}
98609874

9875+
// Remove the excluded files from the list of files to lint
9876+
excludeFiles.forEach(function(value){
9877+
fullPath = api.getFullPath(value);
9878+
if (filesToLint.indexOf(fullPath) > -1) {
9879+
filesToLint.splice(filesToLint.indexOf(fullPath), 1);
9880+
}
9881+
});
9882+
98619883
return filesToLint;
98629884
}
98639885

release/csslint-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build: v0.10.0 07-July-2015 06:12:11 */
24+
/* Build: v0.10.0 04-December-2015 05:13:50 */
2525
var exports = exports || {};
2626
/*!
2727
Parser-Lib

release/csslint-wsh.js

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build: v0.10.0 07-July-2015 06:12:11 */
24+
/* Build: v0.10.0 04-December-2015 05:13:50 */
2525
var exports = exports || {};
2626
var CSSLint = (function(){
2727
/*!
@@ -9760,6 +9760,7 @@ function cli(api){
97609760
"warnings" : { "format" : "<rule[,rule]+>", "description" : "Indicate which rules to include as warnings."},
97619761
"ignore" : { "format" : "<rule[,rule]+>", "description" : "Indicate which rules to ignore completely."},
97629762
"exclude-list": { "format" : "<file|dir[,file|dir]+>", "description" : "Indicate which files/directories to exclude from being linted."},
9763+
"exclude-exts": { "format" : "<.ext[,.ext]+>", "description" : "Indicate which extensions to exclude from being linted."},
97639764
"config" : { "format" : "<file>", "description" : "Reads csslint options from specified file."},
97649765
"version" : { "format" : "", "description" : "Outputs the current version number."}
97659766
};
@@ -9768,6 +9769,18 @@ function cli(api){
97689769
// Helper functions
97699770
//-------------------------------------------------------------------------
97709771

9772+
/**
9773+
* Check if a path has any of the given extensions.
9774+
* @param path {String} the path to check.
9775+
* @param exts {Array} a list of extensions.
9776+
* @return {Boolean} if any extensions match the path
9777+
*/
9778+
function hasExtension(path, exts) {
9779+
var regexp = new RegExp("(" + exts.join("|").replace(/\./g, "\\.") + ")$");
9780+
9781+
return regexp.test(path);
9782+
}
9783+
97719784
/**
97729785
* Returns an array of messages for a particular type.
97739786
* @param messages {Array} Array of CSS Lint messages.
@@ -9834,11 +9847,11 @@ function cli(api){
98349847
*/
98359848
function filterFiles(files, options) {
98369849
var excludeList = options["exclude-list"],
9850+
excludeExts = options["exclude-exts"],
98379851
excludeFiles = [],
98389852
filesToLint = files.map(api.getFullPath),
98399853
fullPath;
98409854

9841-
98429855
if (excludeList) {
98439856
// Build up the exclude list, expanding any directory exclusions that were passed in
98449857
excludeList.split(",").forEach(function(value){
@@ -9848,16 +9861,25 @@ function cli(api){
98489861
excludeFiles.push(value);
98499862
}
98509863
});
9864+
}
98519865

9852-
// Remove the excluded files from the list of files to lint
9853-
excludeFiles.forEach(function(value){
9854-
fullPath = api.getFullPath(value);
9855-
if (filesToLint.indexOf(fullPath) > -1) {
9856-
filesToLint.splice(filesToLint.indexOf(fullPath),1);
9866+
if (excludeExts) {
9867+
// Add any extension-based exclusions
9868+
filesToLint.forEach(function(path) {
9869+
if (hasExtension(path, excludeExts.split(","))) {
9870+
excludeFiles.push(path);
98579871
}
98589872
});
98599873
}
98609874

9875+
// Remove the excluded files from the list of files to lint
9876+
excludeFiles.forEach(function(value){
9877+
fullPath = api.getFullPath(value);
9878+
if (filesToLint.indexOf(fullPath) > -1) {
9879+
filesToLint.splice(filesToLint.indexOf(fullPath), 1);
9880+
}
9881+
});
9882+
98619883
return filesToLint;
98629884
}
98639885

release/csslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build: v0.10.0 07-July-2015 06:12:11 */
24+
/* Build: v0.10.0 04-December-2015 05:13:50 */
2525
var exports = exports || {};
2626
var CSSLint = (function(){
2727
/*!

release/npm/cli.js

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
THE SOFTWARE.
2323
2424
*/
25-
/* Build: v0.10.0 07-July-2015 06:12:11 *//*
25+
/* Build: v0.10.0 04-December-2015 05:13:50 *//*
2626
* Encapsulates all of the CLI functionality. The api argument simply
2727
* provides environment-specific functionality.
2828
*/
@@ -41,6 +41,7 @@ function cli(api){
4141
"warnings" : { "format" : "<rule[,rule]+>", "description" : "Indicate which rules to include as warnings."},
4242
"ignore" : { "format" : "<rule[,rule]+>", "description" : "Indicate which rules to ignore completely."},
4343
"exclude-list": { "format" : "<file|dir[,file|dir]+>", "description" : "Indicate which files/directories to exclude from being linted."},
44+
"exclude-exts": { "format" : "<.ext[,.ext]+>", "description" : "Indicate which extensions to exclude from being linted."},
4445
"config" : { "format" : "<file>", "description" : "Reads csslint options from specified file."},
4546
"version" : { "format" : "", "description" : "Outputs the current version number."}
4647
};
@@ -49,6 +50,18 @@ function cli(api){
4950
// Helper functions
5051
//-------------------------------------------------------------------------
5152

53+
/**
54+
* Check if a path has any of the given extensions.
55+
* @param path {String} the path to check.
56+
* @param exts {Array} a list of extensions.
57+
* @return {Boolean} if any extensions match the path
58+
*/
59+
function hasExtension(path, exts) {
60+
var regexp = new RegExp("(" + exts.join("|").replace(/\./g, "\\.") + ")$");
61+
62+
return regexp.test(path);
63+
}
64+
5265
/**
5366
* Returns an array of messages for a particular type.
5467
* @param messages {Array} Array of CSS Lint messages.
@@ -115,11 +128,11 @@ function cli(api){
115128
*/
116129
function filterFiles(files, options) {
117130
var excludeList = options["exclude-list"],
131+
excludeExts = options["exclude-exts"],
118132
excludeFiles = [],
119133
filesToLint = files.map(api.getFullPath),
120134
fullPath;
121135

122-
123136
if (excludeList) {
124137
// Build up the exclude list, expanding any directory exclusions that were passed in
125138
excludeList.split(",").forEach(function(value){
@@ -129,16 +142,25 @@ function cli(api){
129142
excludeFiles.push(value);
130143
}
131144
});
145+
}
132146

133-
// Remove the excluded files from the list of files to lint
134-
excludeFiles.forEach(function(value){
135-
fullPath = api.getFullPath(value);
136-
if (filesToLint.indexOf(fullPath) > -1) {
137-
filesToLint.splice(filesToLint.indexOf(fullPath),1);
147+
if (excludeExts) {
148+
// Add any extension-based exclusions
149+
filesToLint.forEach(function(path) {
150+
if (hasExtension(path, excludeExts.split(","))) {
151+
excludeFiles.push(path);
138152
}
139153
});
140154
}
141155

156+
// Remove the excluded files from the list of files to lint
157+
excludeFiles.forEach(function(value){
158+
fullPath = api.getFullPath(value);
159+
if (filesToLint.indexOf(fullPath) > -1) {
160+
filesToLint.splice(filesToLint.indexOf(fullPath), 1);
161+
}
162+
});
163+
142164
return filesToLint;
143165
}
144166

release/npm/lib/csslint-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build: v0.10.0 07-July-2015 06:12:11 */
24+
/* Build: v0.10.0 04-December-2015 05:13:50 */
2525
var clone = require('clone');
2626
var parserlib = require('parserlib');
2727
/**

release/npm/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
"bugs": {
1515
"url": "https://github.com/CSSLint/csslint/issues"
1616
},
17-
"license": {
18-
"type": "MIT",
19-
"url": "https://github.com/CSSLint/csslint/blob/master/LICENSE"
20-
},
17+
"license": "MIT",
2118
"main": "./lib/csslint-node.js",
2219
"bin": {
2320
"csslint": "./release/npm/cli.js"

0 commit comments

Comments
 (0)