css-lint 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +40 -0
- data/Rakefile +1 -0
- data/css-lint.gemspec +23 -0
- data/lib/css-lint.rb +4 -0
- data/lib/css-lint/version.rb +3 -0
- metadata +80 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 752af9671a749140d4e7f17245243a48cd10a925
|
4
|
+
data.tar.gz: 4201bd2655ae1b76314cf71b935b65663c822ec5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 455feb3be81f0b4bb6b765e4f6c8ef76d4619559269755dbac52db77e9ef251deac9c85c033ffe9d70c8e5288592517ac72d00e8c5f86a92a8d8dd27beb94bb2
|
7
|
+
data.tar.gz: c1ac29e288614a100233156d02776d6b8ccace4f3577c0cc2c0e062e7c94ad2ce8dab14aab31b4f6cc93f8f922b184385fd0bd07e219957ac298c4802cd3127d
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Jacob Bednarz
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# CSS Lint
|
2
|
+
|
3
|
+
A CSS linter for the modern day developer. Based on good practices and
|
4
|
+
guidelines mentioned at:
|
5
|
+
|
6
|
+
- [@mdo's code guide](http://mdo.github.io/code-guide)
|
7
|
+
- [Mozilla's Developer Network](https://developer.mozilla.org/en-US/docs/Web/CSS)
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
gem install css-lint
|
12
|
+
|
13
|
+
## Tests
|
14
|
+
|
15
|
+
#### General
|
16
|
+
|
17
|
+
- Each declaration should appear on its own line.
|
18
|
+
- Selectors must be on a new line, multiple selectors on a line are not allowed.
|
19
|
+
- Lowercase all hex values, e.g. #eee.
|
20
|
+
- Closing braces of declaration blocks on a new line.
|
21
|
+
- Must end with a new line.
|
22
|
+
|
23
|
+
#### Whitespace, indentation and spacing
|
24
|
+
|
25
|
+
- Use soft tabs with two spaces.
|
26
|
+
- Include one space after the colon for each declaration.
|
27
|
+
- End all declarations with a semi-colon.
|
28
|
+
|
29
|
+
#### Shorthand notation
|
30
|
+
|
31
|
+
- Use shorthand hex values where available, e.g., #fff instead of #ffffff.
|
32
|
+
|
33
|
+
#### Selector names
|
34
|
+
|
35
|
+
- Must use hyphens to separate words, not underscores or camel casing.
|
36
|
+
|
37
|
+
## Contributing and reporting issues
|
38
|
+
|
39
|
+
If you find a bug, please create a [new issue](https://github.com/jacobbednarz/css-lint/issues/new) or if you are
|
40
|
+
feeling a little more adventurous, pull requests and contributions are welcome!
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/css-lint.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'css-lint/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'css-lint'
|
8
|
+
spec.version = CssLint::VERSION
|
9
|
+
spec.authors = ['Jacob Bednarz']
|
10
|
+
spec.email = ['jacob.bednarz@gmail.com']
|
11
|
+
spec.summary = %q{CSS linter for the modern day developer}
|
12
|
+
spec.description = %q{CSS linter for the modern day developer}
|
13
|
+
spec.homepage = 'http://github.com/jacobbednarz/css-lint'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
|
+
end
|
data/lib/css-lint.rb
ADDED
metadata
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: css-lint
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jacob Bednarz
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: CSS linter for the modern day developer
|
42
|
+
email:
|
43
|
+
- jacob.bednarz@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- css-lint.gemspec
|
54
|
+
- lib/css-lint.rb
|
55
|
+
- lib/css-lint/version.rb
|
56
|
+
homepage: http://github.com/jacobbednarz/css-lint
|
57
|
+
licenses:
|
58
|
+
- MIT
|
59
|
+
metadata: {}
|
60
|
+
post_install_message:
|
61
|
+
rdoc_options: []
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
requirements: []
|
75
|
+
rubyforge_project:
|
76
|
+
rubygems_version: 2.2.0
|
77
|
+
signing_key:
|
78
|
+
specification_version: 4
|
79
|
+
summary: CSS linter for the modern day developer
|
80
|
+
test_files: []
|