ruby_css_lint 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +71 -0
- data/VERSION +1 -0
- data/csslint/CHANGELOG +286 -0
- data/csslint/LICENSE +20 -0
- data/csslint/README.md +25 -0
- data/csslint/build.xml +242 -0
- data/csslint/demos/CSSLintDemo.htm +105 -0
- data/csslint/demos/demo.css +43 -0
- data/csslint/lib/js.jar +0 -0
- data/csslint/lib/jshint.js +3963 -0
- data/csslint/lib/parserlib.js +6295 -0
- data/csslint/lib/yuitest-rhino-cli.js +3955 -0
- data/csslint/lib/yuitest.js +4561 -0
- data/csslint/npm/package.json +30 -0
- data/csslint/release/csslint-node.js +9125 -0
- data/csslint/release/csslint-rhino.js +9390 -0
- data/csslint/release/csslint-tests.js +1921 -0
- data/csslint/release/csslint-worker.js +9148 -0
- data/csslint/release/csslint-wsh.js +9477 -0
- data/csslint/release/csslint.js +9127 -0
- data/csslint/release/npm/cli.js +307 -0
- data/csslint/release/npm/lib/csslint-node.js +9125 -0
- data/csslint/release/npm/package.json +30 -0
- data/csslint/src/cli/common.js +215 -0
- data/csslint/src/cli/node.js +87 -0
- data/csslint/src/cli/rhino.js +47 -0
- data/csslint/src/cli/wsh.js +134 -0
- data/csslint/src/core/CSSLint.js +181 -0
- data/csslint/src/core/Reporter.js +161 -0
- data/csslint/src/core/Util.js +62 -0
- data/csslint/src/formatters/checkstyle-xml.js +109 -0
- data/csslint/src/formatters/compact.js +59 -0
- data/csslint/src/formatters/csslint-xml.js +68 -0
- data/csslint/src/formatters/lint-xml.js +69 -0
- data/csslint/src/formatters/text.js +64 -0
- data/csslint/src/rules/adjoining-classes.js +45 -0
- data/csslint/src/rules/box-model.js +93 -0
- data/csslint/src/rules/box-sizing.js +28 -0
- data/csslint/src/rules/compatible-vendor-prefixes.js +171 -0
- data/csslint/src/rules/display-property-grouping.js +117 -0
- data/csslint/src/rules/duplicate-background-images.js +37 -0
- data/csslint/src/rules/duplicate-properties.js +46 -0
- data/csslint/src/rules/empty-rules.js +34 -0
- data/csslint/src/rules/errors.js +23 -0
- data/csslint/src/rules/fallback-colors.js +67 -0
- data/csslint/src/rules/floats.js +36 -0
- data/csslint/src/rules/font-faces.js +30 -0
- data/csslint/src/rules/font-sizes.js +35 -0
- data/csslint/src/rules/gradients.js +69 -0
- data/csslint/src/rules/ids.js +50 -0
- data/csslint/src/rules/import.js +23 -0
- data/csslint/src/rules/important.js +37 -0
- data/csslint/src/rules/known-properties.js +29 -0
- data/csslint/src/rules/outline-none.js +73 -0
- data/csslint/src/rules/overqualified-elements.js +63 -0
- data/csslint/src/rules/qualified-headings.js +38 -0
- data/csslint/src/rules/regex-selectors.js +44 -0
- data/csslint/src/rules/rules-count.js +28 -0
- data/csslint/src/rules/shorthand.js +87 -0
- data/csslint/src/rules/star-property-hack.js +27 -0
- data/csslint/src/rules/text-indent.js +53 -0
- data/csslint/src/rules/underscore-property-hack.js +27 -0
- data/csslint/src/rules/unique-headings.js +74 -0
- data/csslint/src/rules/universal-selector.js +35 -0
- data/csslint/src/rules/unqualified-attributes.js +42 -0
- data/csslint/src/rules/vendor-prefix.js +143 -0
- data/csslint/src/rules/zero-units.js +34 -0
- data/csslint/src/worker/Worker.js +26 -0
- data/csslint/tests/all-rules.js +64 -0
- data/csslint/tests/core/CSSLint.js +22 -0
- data/csslint/tests/core/Reporter.js +36 -0
- data/csslint/tests/css/width-100.html +76 -0
- data/csslint/tests/formatters/checkstyle-xml.js +44 -0
- data/csslint/tests/formatters/compact.js +47 -0
- data/csslint/tests/formatters/csslint-xml.js +42 -0
- data/csslint/tests/formatters/lint-xml.js +43 -0
- data/csslint/tests/formatters/text.js +36 -0
- data/csslint/tests/rules/adjoining-classes.js +31 -0
- data/csslint/tests/rules/box-model.js +211 -0
- data/csslint/tests/rules/box-sizing.js +23 -0
- data/csslint/tests/rules/compatible-vendor-prefixes.js +56 -0
- data/csslint/tests/rules/display-property-grouping.js +213 -0
- data/csslint/tests/rules/duplicate-background-images.js +25 -0
- data/csslint/tests/rules/duplicate-properties.js +54 -0
- data/csslint/tests/rules/empty-rules.js +18 -0
- data/csslint/tests/rules/errors.js +17 -0
- data/csslint/tests/rules/fallback-colors.js +162 -0
- data/csslint/tests/rules/floats.js +35 -0
- data/csslint/tests/rules/font-faces.js +28 -0
- data/csslint/tests/rules/font-sizes.js +30 -0
- data/csslint/tests/rules/gradients.js +60 -0
- data/csslint/tests/rules/ids.js +25 -0
- data/csslint/tests/rules/import.js +18 -0
- data/csslint/tests/rules/important.js +27 -0
- data/csslint/tests/rules/known-properties.js +44 -0
- data/csslint/tests/rules/outline-none.js +50 -0
- data/csslint/tests/rules/overqualified-elements.js +41 -0
- data/csslint/tests/rules/qualified-headings.js +19 -0
- data/csslint/tests/rules/regex-selectors.js +52 -0
- data/csslint/tests/rules/shorthand.js +36 -0
- data/csslint/tests/rules/star-property-hack.js +24 -0
- data/csslint/tests/rules/text-indent.js +55 -0
- data/csslint/tests/rules/underscore-property-hack.js +24 -0
- data/csslint/tests/rules/unique-headings.js +47 -0
- data/csslint/tests/rules/universal-selector.js +31 -0
- data/csslint/tests/rules/unqualified-attributes.js +37 -0
- data/csslint/tests/rules/vendor-prefix.js +76 -0
- data/csslint/tests/rules/zero-units.js +44 -0
- data/csslint/tests/testrunner.htm +138 -0
- data/js.jar +0 -0
- data/lib/ruby_css_lint.rb +168 -0
- data/test/helper.rb +17 -0
- data/test/test_ruby_css_lint.rb +7 -0
- metadata +240 -0
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rdoc", "~> 3.12"
|
10
|
+
gem "bundler"
|
11
|
+
gem "jeweler", "~> 1.8.3"
|
12
|
+
gem "rcov", ">= 0"
|
13
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 AppFolio, inc.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= ruby_css_lint
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to ruby_css_lint
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2012 Andrew Mutz. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "ruby_css_lint"
|
18
|
+
gem.homepage = "http://github.com/amutz/ruby_css_lint"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{CSS Lint testing for Ruby}
|
21
|
+
gem.description = %Q{Wraps up the CSS lint tool from https://github.com/stubbornella/csslint into a gem}
|
22
|
+
gem.email = "andrew.mutz@appfolio.com"
|
23
|
+
gem.authors = ["Andrew Mutz"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
|
26
|
+
Dir.glob('lib/**/*').each do |f|
|
27
|
+
gem.files.include f
|
28
|
+
end
|
29
|
+
|
30
|
+
Dir.glob('csslint/**/*').each do |f|
|
31
|
+
gem.files.include f
|
32
|
+
end
|
33
|
+
|
34
|
+
gem.files.include "js.jar"
|
35
|
+
end
|
36
|
+
Jeweler::RubygemsDotOrgTasks.new
|
37
|
+
|
38
|
+
require 'rake/testtask'
|
39
|
+
Rake::TestTask.new(:test) do |test|
|
40
|
+
test.libs << 'lib' << 'test'
|
41
|
+
test.pattern = 'test/**/test_*.rb'
|
42
|
+
test.verbose = true
|
43
|
+
end
|
44
|
+
|
45
|
+
require 'rcov/rcovtask'
|
46
|
+
Rcov::RcovTask.new do |test|
|
47
|
+
test.libs << 'test'
|
48
|
+
test.pattern = 'test/**/test_*.rb'
|
49
|
+
test.verbose = true
|
50
|
+
test.rcov_opts << '--exclude "gems/*"'
|
51
|
+
end
|
52
|
+
|
53
|
+
task :default => :test
|
54
|
+
|
55
|
+
require 'rdoc/task'
|
56
|
+
Rake::RDocTask.new do |rdoc|
|
57
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
58
|
+
|
59
|
+
rdoc.rdoc_dir = 'rdoc'
|
60
|
+
rdoc.title = "ruby_css_lint #{version}"
|
61
|
+
rdoc.rdoc_files.include('README*')
|
62
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
63
|
+
end
|
64
|
+
|
65
|
+
namespace :css_lint do
|
66
|
+
task :compile_rule_set do |t|
|
67
|
+
csslint_working_directory = File.dirname(__FILE__) + "/csslint/"
|
68
|
+
`cd #{csslint_working_directory}`
|
69
|
+
`ant`
|
70
|
+
end
|
71
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
data/csslint/CHANGELOG
ADDED
@@ -0,0 +1,286 @@
|
|
1
|
+
May 14, 2012 - v0.9.8
|
2
|
+
|
3
|
+
* Merge pull request #272 from mahonnaise/text-indent (Nicholas C. Zakas)
|
4
|
+
* Changed the -98px test to -99px (the exact threshold value). Added -99em and -100em tests in order to increase test coverage and to document the current (actually desired) behavior (see #133). (Jos Hirth)
|
5
|
+
* Ensure proper output flushing for Node.js (Nicholas C. Zakas)
|
6
|
+
* Fix output for checkstyle when a file can't be read (fixes #253) (Nicholas C. Zakas)
|
7
|
+
* Merge branch 'master' of github.com:stubbornella/csslint (Nicholas C. Zakas)
|
8
|
+
* Updated parser (fixes #261, fixes #259, fixes #242) (Nicholas C. Zakas)
|
9
|
+
* Merge pull request #269 from mahonnaise/master (Nicholas C. Zakas)
|
10
|
+
* Merge pull request #270 from huangyingjie/master (Nicholas C. Zakas)
|
11
|
+
* cannot find csslint.js (huangyingjie)
|
12
|
+
* use the parser's "hack" property instead of redoing this step again (Jos Hirth)
|
13
|
+
* +2 rules which detected star (IE6/7) and underscore (IE6) property hacks (Jos Hirth)
|
14
|
+
* Merge pull request #268 from frvge/patch-1 (Nicholas C. Zakas)
|
15
|
+
* Fix typo (Frank van Gemeren)
|
16
|
+
* Merge pull request #265 from frvge/patch-1 (Nicholas C. Zakas)
|
17
|
+
* Fix typo (Frank van Gemeren)
|
18
|
+
* Merge pull request #252 from aaronpowell/master (Nicholas C. Zakas)
|
19
|
+
* Merge pull request #260 from mahonnaise/master (Nicholas C. Zakas)
|
20
|
+
* use separate flags for text-indent and direction. fixes #249 (Jos Hirth)
|
21
|
+
* Merge pull request #256 from khoomeister/master (Nicholas C. Zakas)
|
22
|
+
* updated xml formatters to escape ampersand character, updated tests to check ampersand and fixed other tests to check angled brackets as well (Jenkins)
|
23
|
+
* Update npm/package.json (Aaron Powell)
|
24
|
+
|
25
|
+
|
26
|
+
March 2, 2012 - v0.9.7
|
27
|
+
|
28
|
+
* Fix unqualified attribute issue (fixes #237) (Nicholas C. Zakas)
|
29
|
+
|
30
|
+
|
31
|
+
February 10, 2012 - v0.9.6
|
32
|
+
|
33
|
+
* Make sure line numbers are correct for vendor-prefix rule (fixes #238) (Nicholas C. Zakas)
|
34
|
+
* fix line and column numbers for compatible vendor prefixes rule (fixes #236) (Nicholas C. Zakas)
|
35
|
+
* Fixed JavaScript compatibility issues in several places. Everything now works in IE < 9. (Nicholas C. Zakas)
|
36
|
+
* Updated parser (fixes #234) (Nicholas C. Zakas)
|
37
|
+
|
38
|
+
February 3, 2012 - v0.9.5
|
39
|
+
|
40
|
+
* Ensure time values are properly checked (fixes #228) (Nicholas C. Zakas)
|
41
|
+
* Implemented rule to avoid unqualified attribute selectors (fixes 218) (Nicholas C. Zakas)
|
42
|
+
* Ensure 0s, 0ms don't say to omit the units (fixes #224) (Nicholas C. Zakas)
|
43
|
+
* Merge pull request #227 from daniellmb/patch-1 (Nicholas C. Zakas)
|
44
|
+
* This is seems to be a bug with the regex use of split, blank lines are not included so the line number used for evidence don't match up. (Daniel Lamb)
|
45
|
+
* Merge pull request #225 from Zearin/master (Nicholas C. Zakas)
|
46
|
+
* Added 2-space indentation for output of `--list-rules`. (Tony)
|
47
|
+
|
48
|
+
January 5, 2012 - v0.9.2
|
49
|
+
|
50
|
+
* More validations fixes (fixes #219) (Nicholas C. Zakas)
|
51
|
+
|
52
|
+
|
53
|
+
January 4, 2012 - v0.9.1
|
54
|
+
|
55
|
+
* Updated parser to fix validation issues (fixes #219) (Nicholas C. Zakas)
|
56
|
+
* Fixed license info, incorrectly said it was BSD but is actually MIT (Nicholas C. Zakas)
|
57
|
+
|
58
|
+
|
59
|
+
January 4, 2012 - v0.9.0
|
60
|
+
|
61
|
+
* Updated parser color names (fixes #217) (Nicholas C. Zakas)
|
62
|
+
* Updated contributor list. (Nicholas C. Zakas)
|
63
|
+
* Updated compatible vendor prefix rule to support -ms-user-select (Nicholas C. Zakas)
|
64
|
+
* Cleanup of text-indent rule and tests (Nicholas C. Zakas)
|
65
|
+
* More tests for gradients rule (Nicholas C. Zakas)
|
66
|
+
* Updated gradients rule with better messaging on warnings (Nicholas C. Zakas)
|
67
|
+
* Updated compatible vendor prefix rules for IE10 (Nicholas C. Zakas)
|
68
|
+
* Merge fixes (Nicholas C. Zakas)
|
69
|
+
* Updated parser (fixes #212) (Nicholas C. Zakas)
|
70
|
+
* Updated parser to fix a few small parsing bugs (Nicholas C. Zakas)
|
71
|
+
* Fixed issue with extra whitespace being output in quiet mode for CLI (Nicholas C. Zakas)
|
72
|
+
* Added Windows Script Host CLI (fixes #198) (Nicholas C. Zakas)
|
73
|
+
* Updated parser with support for unknown @ rule error recovery (fixes #211) (Nicholas C. Zakas)
|
74
|
+
* Further cleanup of background images rule (Nicholas C. Zakas)
|
75
|
+
* Created rule to check for fallback colors when CSS3 colors are in use (fixes #207) (Nicholas C. Zakas)
|
76
|
+
* Cleanup of hpbuniat's rule (Nicholas C. Zakas)
|
77
|
+
* Merge pull request #200 from hpbuniat/duplicate-background-url (Nicholas C. Zakas)
|
78
|
+
* use the power of parser-lib, as mentioned by nzakas (Hans-Peter Buniat)
|
79
|
+
* added rule to detect multiple usage of the same background-image (Hans-Peter Buniat)
|
80
|
+
|
81
|
+
|
82
|
+
November 15, 2011 - v0.8.5
|
83
|
+
|
84
|
+
* Updated parser (fixes #206 and fixes #209) (Nicholas C. Zakas)
|
85
|
+
* Removed extra file (Nicholas C. Zakas)
|
86
|
+
|
87
|
+
October 25, 2011 - v0.8.1
|
88
|
+
|
89
|
+
* Updated parser and fixed CLI errors (fixes #203 and fixes #205) (Nicholas C. Zakas)
|
90
|
+
|
91
|
+
|
92
|
+
October 24, 2011 - v0.8.0
|
93
|
+
|
94
|
+
* Fixup compact format (Nicholas C. Zakas)
|
95
|
+
* Updated parser to the latest (Nicholas C. Zakas)
|
96
|
+
* Updated test target (Nicholas C. Zakas)
|
97
|
+
* Updated test for duplicate properties rule (Nicholas C. Zakas)
|
98
|
+
* Added validation of values for a subset of properties (refs #30) (Nicholas C. Zakas)
|
99
|
+
* Improved JSHint execution time and added to ant test target (Nicholas C. Zakas)
|
100
|
+
* Created box-sizing compatibility rule (fixes #197) (Nicholas C. Zakas)
|
101
|
+
* Change wording for box model rule (fixes #168) (Nicholas C. Zakas)
|
102
|
+
* Updated names of rules to match web site names (Nicholas C. Zakas)
|
103
|
+
* Added rule for disallowing outline:none (fixes #138) (Nicholas C. Zakas)
|
104
|
+
* Added tests for all rules to check for common problems, fixed Rhino testing issue, updated unit tests (Nicholas C. Zakas)
|
105
|
+
* Merge branch 'master' of github.com:stubbornella/csslint (Nicholas C. Zakas)
|
106
|
+
* Fixed error condition that prevented display from updating (fixes #196) (Nicholas C. Zakas)
|
107
|
+
* Merge pull request #192 from eriwen/master (Nicholas C. Zakas)
|
108
|
+
* Distinguishing between warnings and errors in compact formatter fixing issue #152 (Eric Wendelin)
|
109
|
+
|
110
|
+
October 14, 2011 - v0.7.0
|
111
|
+
|
112
|
+
* Moved docs onto GitHub wiki (Nicholas C. Zakas)
|
113
|
+
* Added check for flush() method on Node.js before attempting to use it (fixes #182) (Nicholas C. Zakas)
|
114
|
+
* Added command-line testing via ant (Nicholas C. Zakas)
|
115
|
+
* Add lint check to release process (Nicholas C. Zakas)
|
116
|
+
* Fixed a bunch of JSHint warnings (Nicholas C. Zakas)
|
117
|
+
* Updated JSHint (Nicholas C. Zakas)
|
118
|
+
* Fix error with Rhino CLI, ensure consistent use of relative paths across output formats (fixes #189) (Nicholas C. Zakas)
|
119
|
+
* Misc bug fixes (Nicholas C. Zakas)
|
120
|
+
* Allow easier identification of syntax unit types (fixes #153) (Nicholas C. Zakas)
|
121
|
+
* Updated parser to reflect better IE filter function handling (fixes #174) (Nicholas C. Zakas)
|
122
|
+
* Updated parser to better handle comments (fixes #184) (Nicholas C. Zakas)
|
123
|
+
* Updated parser, fixed implicitly declared variables (fixes #186) (Nicholas C. Zakas)
|
124
|
+
* Ensure src is recognized as valid CSS property (fixes #173) (Nicholas C. Zakas)
|
125
|
+
* Added contributor info to readme (Nicholas C. Zakas)
|
126
|
+
* Merge pull request #187 from eriwen/master (Nicholas C. Zakas)
|
127
|
+
* Adding --quiet option to fix request #170 (thanks to gtanner) (Eric Wendelin)
|
128
|
+
* Passing relative path and absolute path (in options) to formatters for issue #172 (Eric Wendelin)
|
129
|
+
* Finishing use of relative path in compact format, fixing issue #172 (Eric Wendelin)
|
130
|
+
* Adding working directory methods (Eric Wendelin)
|
131
|
+
* Switching to relative paths for compact format (Eric Wendelin)
|
132
|
+
* Adding options (Eric Wendelin)
|
133
|
+
|
134
|
+
September 8, 2011 - v0.6.1
|
135
|
+
|
136
|
+
* Workaround for Node.js stdout not flushing prior to exit (fixes #176) (Nicholas C. Zakas)
|
137
|
+
* Ensure text-indent rule doesn't throw an error (fixes #179) (Nicholas C. Zakas)
|
138
|
+
* Added documentation for shorthand rule (Nicholas C. Zakas)
|
139
|
+
* Release v0.6.0 (Nicholas C. Zakas)
|
140
|
+
|
141
|
+
September 3, 2011 - v0.6.0
|
142
|
+
|
143
|
+
* Updated changelog task in build script (Nicholas C. Zakas)
|
144
|
+
* Ensure output from Node.js CLI can be captured (fixes #175) (Nicholas C. Zakas)
|
145
|
+
* Merge branch 'master' of github.com:stubbornella/csslint (Nicholas C. Zakas)
|
146
|
+
* Fixed links in the developer guide documentation (Nicholas C. Zakas)
|
147
|
+
* Merge pull request #171 from kasperg/checkstyle-escape-chars (Nicholas C. Zakas)
|
148
|
+
* Updated developer guide documentation (Nicholas C. Zakas)
|
149
|
+
* Escape special characters in error message (Kasper Garnæs)
|
150
|
+
* Defensive coding for source generation if a proper rule is not passed (Kasper Garnæs)
|
151
|
+
* First rev of developer guide (Nicholas C. Zakas)
|
152
|
+
* Update build.xml target names and added changelog generator. (Nicholas C. Zakas)
|
153
|
+
* Copy docs into build directory upon build completion - makes iteasier to bundle docs with releases (Nicholas C. Zakas)
|
154
|
+
* Added IDE documentation (Nicholas C. Zakas)
|
155
|
+
* Added proper escaping to csslint-xml format (Nicholas C. Zakas)
|
156
|
+
* Refactored CLI to make it easier to add other CLI environments (Nicholas C. Zakas)
|
157
|
+
* Removed unused files (Nicholas C. Zakas)
|
158
|
+
* Added CLI option to list all rules (fixes #158) (Nicholas C. Zakas)
|
159
|
+
* CLI no longer outputs extra newlines for compact format (fixes #165) (Nicholas C. Zakas)
|
160
|
+
* Merge branch 'master' of github.com:stubbornella/csslint (Nicholas C. Zakas)
|
161
|
+
* Updated CLI documentation (Nicholas C. Zakas)
|
162
|
+
* Merge pull request #167 from cillianderoiste/master (Nicholas C. Zakas)
|
163
|
+
* Fixed README for 0.5.0, updated other documentation. (Nicholas C. Zakas)
|
164
|
+
* Refactored docs (Nicholas C. Zakas)
|
165
|
+
* Change path.join to path.resolve so that '..', '/', '~' can be used as the filename successfully, fixes #166 (Cillian de Róiste)
|
166
|
+
* Merge pull request #161 from eriwen/master (Nicholas C. Zakas)
|
167
|
+
* Merge pull request #163 from tomasz-oponowicz/issue_141 (Nicholas C. Zakas)
|
168
|
+
* Merge pull request #162 from tomasz-oponowicz/issue_142 (Nicholas C. Zakas)
|
169
|
+
* Fixed returning exit_code when errors exist (Tomasz Oponowicz)
|
170
|
+
* Fixed "the XML output formatter produces '<' and '>' inside attribute's value (XML output)" (Tomasz Oponowicz)
|
171
|
+
* Adding CSSLint XML formatter for Jenkins Violations compatibility (Eric Wendelin)
|
172
|
+
* Updated README (Nicholas C. Zakas)
|
173
|
+
* Updated README (Nicholas C. Zakas)
|
174
|
+
* Added getRules() to CSSLint API (fixes #155) (Nicholas C. Zakas)
|
175
|
+
* Updated README with checkstyle-xml author (Nicholas C. Zakas)
|
176
|
+
* Merge pull request #156 from kasperg/master (Nicholas C. Zakas)
|
177
|
+
* Renamed checkstyle-xml formatter and test according to match id (Kasper Garnæs)
|
178
|
+
* Some rule names contain more than one whitespace. All of these should be stripped to generate the source. (Kasper Garnæs)
|
179
|
+
* Revert "Add release with Checkstyle XML formatter support" (Kasper Garnæs)
|
180
|
+
* Add release with Checkstyle XML formatter support (Kasper Garnæs)
|
181
|
+
* message.rule is not an array is actual use. Reduce complexity accordingly. (Kasper Garnæs)
|
182
|
+
* Add support for Checkstyle XML format (Kasper Garnæs)
|
183
|
+
* Added rule to check for properties that can be replaced by shorthand (fixes #66) (Nicholas C. Zakas)
|
184
|
+
* Check for direction:ltr with text-indent (fixes #147) (Nicholas C. Zakas)
|
185
|
+
* Added better vendor prefix compatibility information (fixes #146) (Nicholas C. Zakas)
|
186
|
+
* Make sure that heading pseudo classes aren't counted as heading definition (fixes #149) (Nicholas C. Zakas)
|
187
|
+
* Ensure messages are properly sorted by line number and rollups (fixes #151) (Nicholas C. Zakas)
|
188
|
+
* Merge pull request #148 from parallel/master (Nicholas C. Zakas)
|
189
|
+
* Added missing properties in the list of known properties (Julien Kernec'h)
|
190
|
+
* updating some language in the readme (Nicole Sullivan)
|
191
|
+
|
192
|
+
July 29, 2011 - v0.5.0
|
193
|
+
|
194
|
+
* Merged in changes for a compact CLI output format (fixes #88)
|
195
|
+
* Added total headings count to unique-headings rule (fixes #108)
|
196
|
+
* Fixed bug with box model rule (fixes #135)
|
197
|
+
* Added rule to check property name against list of known properties (fixes #136)
|
198
|
+
* Ensure consistency across error messages (fixes #89)
|
199
|
+
* Updated parser to handle CSS escaping (fixes #97)
|
200
|
+
* Added a rule to check for high text-indent for RTL (fixes #109)
|
201
|
+
* Add rule to warn for universal selector (fixes #38)
|
202
|
+
* Changed too many !important error to warning (fixes #105)
|
203
|
+
* Updated parser to allow parsing of CSS3 keyframes
|
204
|
+
* Fixed error where Rhino CLI could not read directories (fixes #106)
|
205
|
+
* Added user-select to vendor prefix rule (fixes #98)
|
206
|
+
* Changed wording of !important error to include max usage recommendation (fixes #104)
|
207
|
+
|
208
|
+
July 5, 2011 - v0.4.0
|
209
|
+
|
210
|
+
* Updated parser (fixes #49)
|
211
|
+
* Added rule for compatible vendor prefixes (pull #78)
|
212
|
+
* Added rule for duplicate properties (fixes #51)
|
213
|
+
* Updated error message for display:inline used with float (fixes #16)
|
214
|
+
* Vendor prefix rule only checks for known rules (fixes #93, #54, #27)
|
215
|
+
* Make sure @font-face doesn't break vendor-prefix rule (fixes #90)
|
216
|
+
* Make sure that url() with spaces before the URI works (fixes #94)
|
217
|
+
|
218
|
+
June 25, 2011 - v0.3.2
|
219
|
+
|
220
|
+
* Fixed regression in output format for CLI (fixes #87)
|
221
|
+
|
222
|
+
June 25, 2011 - v0.3.1
|
223
|
+
|
224
|
+
* Fixed EOL issue for Node.js CLI
|
225
|
+
|
226
|
+
June 25, 2011 - v0.3.0
|
227
|
+
|
228
|
+
* Rhino and Node CLIs both exit with code 1 when there are errors (pull #72)
|
229
|
+
* Changed description of adjoining classes to be unsupported in IE6 (fixes #11)
|
230
|
+
* Made license comment important in build files (fixes #46)
|
231
|
+
* Code cleanup (pull #70)
|
232
|
+
* Cleanup of whitespace (pull #74)
|
233
|
+
* Standardization of CLI interface (pull #81)
|
234
|
+
* Switched display-property-grouping to allow padding, margin-left, and margin-right for display: inline (fixes #3)
|
235
|
+
* Changed messaging for float rule (fixes #26)
|
236
|
+
* border:none with width/height is okay (fixes #45)
|
237
|
+
* Updated web worker to accept JSON-encoded input
|
238
|
+
* Allow turning on/off rules in web interface and CLIs (fixes #77)
|
239
|
+
* Introduced release directory that will hold official release version
|
240
|
+
* Build directory will be removed in next release
|
241
|
+
|
242
|
+
June 18, 2011 - v0.2.0
|
243
|
+
|
244
|
+
* Make sure headings are counted correctly (fixes #25)
|
245
|
+
* Make sure float: none doesn't count as a float for rules that care (fixes #10)
|
246
|
+
* Fix erroneous missing standard border warning (fixes #7)
|
247
|
+
* Ensure width: 100% is okay when box-sizing is specified (fixes #5)
|
248
|
+
* Fixed up width/height properties for box model rule (fixes #8)
|
249
|
+
* Incorporated Rhino CLI and updated contributors list
|
250
|
+
* Include build file in Git repo so people can grab directly (fixes #59)
|
251
|
+
* Added rule for tracking using of !important from shinuza (fixes #50)
|
252
|
+
|
253
|
+
June 15, 2011 - v0.1.0
|
254
|
+
|
255
|
+
* Initial release
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
data/csslint/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
CSSLint
|
2
|
+
Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
12
|
+
all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20
|
+
THE SOFTWARE.
|
data/csslint/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# CSSLint
|
2
|
+
|
3
|
+
CSSLint is a tool to help point out problems with your CSS code. It does basic syntax checking as well as applying a set of rules to the code that look for problematic patterns or signs of inefficiency. The rules are all pluggable, so you can easily write your own or omit ones you don't want.
|
4
|
+
|
5
|
+
# Contributors
|
6
|
+
|
7
|
+
## Creators
|
8
|
+
|
9
|
+
1. Nicole Sullivan, http://www.stubbornella.org
|
10
|
+
1. Nicholas C. Zakas, http://www.nczonline.net
|
11
|
+
|
12
|
+
## Contributors
|
13
|
+
|
14
|
+
1. Samori Gorse, https://twitter.com/shinuza (Rules, Non-zero Exit Code for CLI)
|
15
|
+
1. Eitan Konigsburg, https://twitter.com/eitanmk (Rhino CLI)
|
16
|
+
1. Ben Barber (Compatible Vendor Prefix Rule)
|
17
|
+
1. Eric Wendelin, http://eriwen.com (Output formatters)
|
18
|
+
1. Kasper Garnaes, http://reload.dk (Checkstyle XML format)
|
19
|
+
1. Gord Tanner, http://www.tinyhippos.com (CLI quiet option)
|
20
|
+
1. Hans-Peter Buniat, https://github.com/hpbuniat (Duplicate background image rule)
|
21
|
+
1. Dino Chiesa, https://github.com/DinoChiesa (Windows Script Host CLI)
|
22
|
+
1. Tomasz Oponowicz, https://github.com/tomasz-oponowicz (XML format and CLI fixes)
|
23
|
+
1. Julien Kernec'h, https://github.com/parallel (Fixed a rule)
|
24
|
+
1. Cillian de Róiste, https://plus.google.com/116480676247600483573/posts (Node CLI fixes)
|
25
|
+
1. Damien Sennm, https://github.com/topaxi (README fixes)
|