guard-scss_lint 0.1.0
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/.coveralls.yml +1 -0
- data/.editorconfig +11 -0
- data/.gitignore +11 -0
- data/.rubocop.yml +993 -0
- data/.travis.yml +10 -0
- data/Gemfile +10 -0
- data/Guardfile +10 -0
- data/LICENSE +21 -0
- data/README.md +77 -0
- data/Rakefile +1 -0
- data/guard-scss_lint.gemspec +34 -0
- data/lib/guard/scss_lint/templates/Guardfile +3 -0
- data/lib/guard/scss_lint/version.rb +5 -0
- data/lib/guard/scss_lint.rb +83 -0
- data/spec/configs/test-config-1.yml +3 -0
- data/spec/configs/test-config-2.yml +7 -0
- data/spec/guard/scss_lint_spec.rb +117 -0
- data/spec/resources/invalid/invalid.scss +5 -0
- data/spec/resources/valid/valid.scss +5 -0
- data/spec/spec_helper.rb +28 -0
- metadata +225 -0
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
2
|
+
watch(%r{^spec/.+_spec\.rb$})
|
3
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
4
|
+
watch('spec/spec_helper.rb') { "spec" }
|
5
|
+
end
|
6
|
+
|
7
|
+
guard :rubocop do
|
8
|
+
watch(%r{.+\.rb$})
|
9
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
10
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Chris Rohr
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
[](http://badge.fury.io/rb/guard-scss_lint)
|
2
|
+
[](https://gemnasium.com/chrisrohr/guard-scss_lint)
|
3
|
+
[](https://travis-ci.org/chrisrohr/guard-scss_lint)
|
4
|
+
[](https://coveralls.io/r/chrisrohr/guard-scss_lint)
|
5
|
+
[](https://codeclimate.com/github/chrisrohr/guard-scss_lint)
|
6
|
+
|
7
|
+
# guard-scss_lint
|
8
|
+
|
9
|
+
A guard to lint your SCSS.
|
10
|
+
|
11
|
+
This guard plugin is a fork of the originally created [guard-scss-lint](https://github.com/chrislopresto/guard-scss-lint) plugin by Chris LoPresto. This version has been modified to conform to the ruby gems naming standard as well as supports the latest versions of Scss Lint.
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
Please make sure you have [Guard](https://github.com/guard/guard) installed before continue.
|
16
|
+
|
17
|
+
Add `guard-scss_lint` to your `Gemfile`:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
group :development do
|
21
|
+
gem 'guard-scss_lint'
|
22
|
+
end
|
23
|
+
```
|
24
|
+
|
25
|
+
and then execute:
|
26
|
+
|
27
|
+
```sh
|
28
|
+
$ bundle install
|
29
|
+
```
|
30
|
+
|
31
|
+
or install it yourself as:
|
32
|
+
|
33
|
+
```sh
|
34
|
+
$ gem install guard-scss_lint
|
35
|
+
```
|
36
|
+
|
37
|
+
Add the default Guard::ScssLint definition to your `Guardfile` by running:
|
38
|
+
|
39
|
+
```sh
|
40
|
+
$ guard init scss_lint
|
41
|
+
```
|
42
|
+
|
43
|
+
## Usage
|
44
|
+
|
45
|
+
Please read the [Guard usage documentation](https://github.com/guard/guard#readme).
|
46
|
+
|
47
|
+
## Options
|
48
|
+
|
49
|
+
You can pass some options in `Guardfile` like the following example:
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
guard :scss_lint, all_on_start: false, config: '.custom-scss-lint.yml' do
|
53
|
+
# ...
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Available Options
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
all_on_start: true # Check all files at Guard startup.
|
61
|
+
# default: true
|
62
|
+
config: 'filename' # Location of custom scss lint configuration file.
|
63
|
+
# default: nil (Uses .scss-lint.yml file or SCSSLint defaults)
|
64
|
+
|
65
|
+
## Contributing
|
66
|
+
|
67
|
+
1. Fork it
|
68
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
69
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
70
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
71
|
+
5. Create new Pull Request
|
72
|
+
|
73
|
+
## License
|
74
|
+
|
75
|
+
Copyright (c) 2015 Chris Rohr
|
76
|
+
|
77
|
+
See the [LICENSE](LICENSE) for details.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'guard/scss_lint/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'guard-scss_lint'
|
8
|
+
spec.version = Guard::ScssLintVersion::VERSION
|
9
|
+
spec.authors = ['Chris Rohr']
|
10
|
+
spec.email = ['rohr.chris@gmail.com']
|
11
|
+
spec.summary = %q{Guard plugin for scss_lint}
|
12
|
+
spec.description = %q{A Guard plugin to lint your .scss files using scss_lint. SCSS Lint changed from scss-lint to scss_lint and this is the guard update for that.}
|
13
|
+
spec.homepage = 'https://github.com/chrisrohr/guard-scss_lint'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^spec/})
|
19
|
+
spec.require_path = 'lib'
|
20
|
+
|
21
|
+
# spec.add_dependency 'guard', '~> 2.2'
|
22
|
+
spec.add_dependency 'guard-compat', '~> 1.1'
|
23
|
+
spec.add_dependency 'scss_lint', '~> 0.42.0'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler'
|
26
|
+
spec.add_development_dependency 'rake'
|
27
|
+
spec.add_development_dependency 'rspec'
|
28
|
+
spec.add_development_dependency 'simplecov'
|
29
|
+
spec.add_development_dependency 'rubocop'
|
30
|
+
spec.add_development_dependency 'pry'
|
31
|
+
spec.add_development_dependency 'pry-nav'
|
32
|
+
spec.add_development_dependency 'guard-rspec'
|
33
|
+
spec.add_development_dependency 'guard-rubocop'
|
34
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'guard/compat/plugin'
|
2
|
+
require 'scss_lint'
|
3
|
+
|
4
|
+
require 'rainbow'
|
5
|
+
require 'rainbow/ext/string'
|
6
|
+
|
7
|
+
module Guard
|
8
|
+
class ScssLint < Plugin
|
9
|
+
|
10
|
+
attr_reader :options, :config
|
11
|
+
|
12
|
+
def initialize(options = {})
|
13
|
+
super
|
14
|
+
|
15
|
+
@options = {
|
16
|
+
all_on_start: true
|
17
|
+
}.merge(options)
|
18
|
+
|
19
|
+
config_file = @options[:config] || '.scss-lint.yml'
|
20
|
+
if File.exist?(config_file)
|
21
|
+
@config = SCSSLint::Config.load config_file
|
22
|
+
else
|
23
|
+
@config = SCSSLint::Config.default
|
24
|
+
end
|
25
|
+
|
26
|
+
@scss_lint_runner = SCSSLint::Runner.new @config
|
27
|
+
@failed_paths = []
|
28
|
+
end
|
29
|
+
|
30
|
+
def start
|
31
|
+
Guard::Compat::UI.info "Guard::ScssLint (SCSSLint version #{SCSSLint::VERSION}) is running"
|
32
|
+
run_all if @options[:all_on_start]
|
33
|
+
end
|
34
|
+
|
35
|
+
def reload
|
36
|
+
end
|
37
|
+
|
38
|
+
def run_all
|
39
|
+
Guard::Compat::UI.info 'Running ScssLint for all .scss files'
|
40
|
+
pattern = File.join '**', '*.scss'
|
41
|
+
paths = Guard::Compat.matching_files(self, Dir.glob(pattern))
|
42
|
+
run_on_changes paths
|
43
|
+
end
|
44
|
+
|
45
|
+
def run_on_changes(paths)
|
46
|
+
run paths.uniq
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
|
51
|
+
def run(paths = [])
|
52
|
+
@scss_lint_runner = SCSSLint::Runner.new @config
|
53
|
+
paths = paths.reject { |p| @config.excluded_file?(p) }
|
54
|
+
@scss_lint_runner.run paths
|
55
|
+
@scss_lint_runner.lints.each do |lint|
|
56
|
+
Guard::Compat::UI.send lint.severity, lint_message(lint)
|
57
|
+
end
|
58
|
+
Guard::Compat::UI.info "Guard::ScssLint inspected #{paths.size} files, found #{@scss_lint_runner.lints.count} errors."
|
59
|
+
Guard::Compat::UI.notify("#{@scss_lint_runner.lints.count} errors found", title: "Guard ScssLint issues found") if @scss_lint_runner.lints.count > 0
|
60
|
+
end
|
61
|
+
|
62
|
+
def lint_message(lint)
|
63
|
+
[lint.filename.color(:cyan),
|
64
|
+
':',
|
65
|
+
lint.location.line.to_s.color(:magenta),
|
66
|
+
':',
|
67
|
+
lint.location.column.to_s.color(:blue),
|
68
|
+
' ',
|
69
|
+
lint_severity_abbrevation(lint),
|
70
|
+
' ',
|
71
|
+
lint.linter.name.color(:green),
|
72
|
+
':'.color(:green),
|
73
|
+
' ',
|
74
|
+
lint.description
|
75
|
+
].join
|
76
|
+
end
|
77
|
+
|
78
|
+
def lint_severity_abbrevation(lint)
|
79
|
+
color = lint.severity == :error ? :red : :yellow
|
80
|
+
['[', lint.severity.to_s[0].upcase, ']'].join.color(color)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'guard/scss_lint'
|
3
|
+
require 'scss_lint'
|
4
|
+
|
5
|
+
describe Guard::ScssLint, exclude_stubs: [Guard::Plugin] do
|
6
|
+
let(:options) { {} }
|
7
|
+
subject(:guard) { Guard::ScssLint.new(options) }
|
8
|
+
|
9
|
+
before do
|
10
|
+
meths = %w(info warning error deprecation debug notify color color_enabled?)
|
11
|
+
meths.each do |type|
|
12
|
+
allow(Guard::Compat::UI).to receive(type.to_sym)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe '#options' do
|
17
|
+
subject { super().options }
|
18
|
+
|
19
|
+
context 'by default' do
|
20
|
+
let(:options) { {} }
|
21
|
+
|
22
|
+
describe '[:all_on_start]' do
|
23
|
+
subject { super()[:all_on_start] }
|
24
|
+
it { should be_truthy }
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '[:keep_failed]' do
|
28
|
+
subject { super()[:keep_failed] }
|
29
|
+
it { should be_falsy }
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '[:config]' do
|
33
|
+
subject { super()[:config] }
|
34
|
+
it 'uses default config from SCSS Lint' do
|
35
|
+
expect(guard.config).to eq(SCSSLint::Config.default)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context 'passed in config file' do
|
41
|
+
let(:options) { { config: File.join(Dir.pwd, 'spec', 'configs', 'test-config-2.yml') } }
|
42
|
+
|
43
|
+
describe '[:config]' do
|
44
|
+
subject { super()[:config] }
|
45
|
+
it 'uses customized config' do
|
46
|
+
expect(guard.config).not_to eq(SCSSLint::Config.default)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe '#start' do
|
53
|
+
context 'when :all_on_start option is enabled' do
|
54
|
+
let(:options) { { all_on_start: true } }
|
55
|
+
|
56
|
+
it 'runs all' do
|
57
|
+
expect(guard).to receive(:run_all)
|
58
|
+
guard.start
|
59
|
+
expect(Guard::Compat::UI).to have_received(:info).with("Guard::ScssLint (SCSSLint version #{SCSSLint::VERSION}) is running")
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
context 'when :all_on_start option is disabled' do
|
64
|
+
let(:options) { { all_on_start: false } }
|
65
|
+
|
66
|
+
it 'does nothing' do
|
67
|
+
expect(guard).not_to receive(:run_all)
|
68
|
+
guard.start
|
69
|
+
expect(Guard::Compat::UI).to have_received(:info).with("Guard::ScssLint (SCSSLint version #{SCSSLint::VERSION}) is running")
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
shared_examples 'processes after running', :processes_after_running do
|
75
|
+
context 'when passes' do
|
76
|
+
it 'prints status message with zero errors' do
|
77
|
+
allow_any_instance_of(SCSSLint::Runner).to receive(:run).and_return(true)
|
78
|
+
subject
|
79
|
+
expect(Guard::Compat::UI).to have_received(:info).with("Guard::ScssLint inspected 1 files, found 0 errors.")
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'does not notify of errors' do
|
83
|
+
allow_any_instance_of(SCSSLint::Runner).to receive(:run).and_return(true)
|
84
|
+
allow_any_instance_of(SCSSLint::Runner).to receive(:failed_paths).and_return([])
|
85
|
+
subject
|
86
|
+
expect(Guard::Compat::UI).not_to have_received(:notify)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
context 'when failed' do
|
91
|
+
it 'prints and notifies status message with non-zero errors' do
|
92
|
+
allow_any_instance_of(SCSSLint::Runner).to receive(:run).and_return(false)
|
93
|
+
allow_any_instance_of(SCSSLint::Runner).to receive(:lints).and_return([
|
94
|
+
SCSSLint::Lint.new(SCSSLint::Linter::PropertySortOrder.new, 'a.scss', SCSSLint::Location.new, 'wrong order')
|
95
|
+
])
|
96
|
+
subject
|
97
|
+
expect(Guard::Compat::UI).to have_received(:info).with("Guard::ScssLint inspected 1 files, found 1 errors.")
|
98
|
+
expect(Guard::Compat::UI).to have_received(:notify).with("1 errors found", title: "Guard ScssLint issues found")
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe '#run_all', :processes_after_running do
|
104
|
+
subject { super().run_all }
|
105
|
+
|
106
|
+
before do
|
107
|
+
allow(Guard::Compat).to receive(:matching_files).and_return(['a.scss'])
|
108
|
+
allow_any_instance_of(SCSSLint::Runner).to receive(:run).and_return(true)
|
109
|
+
allow_any_instance_of(SCSSLint::Runner).to receive(:failed_paths).and_return([])
|
110
|
+
end
|
111
|
+
|
112
|
+
it 'inspects all scss files with scss lint' do
|
113
|
+
expect_any_instance_of(SCSSLint::Runner).to receive(:run).with(['a.scss'])
|
114
|
+
guard.run_all
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'pry'
|
2
|
+
require 'guard/compat/test/helper'
|
3
|
+
|
4
|
+
RSpec.configure do |config|
|
5
|
+
config.expect_with :rspec do |c|
|
6
|
+
c.syntax = :expect
|
7
|
+
end
|
8
|
+
|
9
|
+
config.mock_with :rspec do |c|
|
10
|
+
c.syntax = :expect
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
require 'simplecov'
|
15
|
+
SimpleCov.coverage_dir(File.join('spec', 'coverage'))
|
16
|
+
|
17
|
+
if ENV['TRAVIS']
|
18
|
+
require 'coveralls'
|
19
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
20
|
+
elsif ENV['CI']
|
21
|
+
require 'simplecov-rcov'
|
22
|
+
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
|
23
|
+
end
|
24
|
+
|
25
|
+
SimpleCov.start do
|
26
|
+
add_filter '/spec/'
|
27
|
+
add_filter '/vendor/bundle/'
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,225 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: guard-scss_lint
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chris Rohr
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: guard-compat
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: scss_lint
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.42.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.42.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-nav
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: guard-rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard-rubocop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
description: A Guard plugin to lint your .scss files using scss_lint. SCSS Lint changed
|
168
|
+
from scss-lint to scss_lint and this is the guard update for that.
|
169
|
+
email:
|
170
|
+
- rohr.chris@gmail.com
|
171
|
+
executables: []
|
172
|
+
extensions: []
|
173
|
+
extra_rdoc_files: []
|
174
|
+
files:
|
175
|
+
- ".coveralls.yml"
|
176
|
+
- ".editorconfig"
|
177
|
+
- ".gitignore"
|
178
|
+
- ".rubocop.yml"
|
179
|
+
- ".travis.yml"
|
180
|
+
- Gemfile
|
181
|
+
- Guardfile
|
182
|
+
- LICENSE
|
183
|
+
- README.md
|
184
|
+
- Rakefile
|
185
|
+
- guard-scss_lint.gemspec
|
186
|
+
- lib/guard/scss_lint.rb
|
187
|
+
- lib/guard/scss_lint/templates/Guardfile
|
188
|
+
- lib/guard/scss_lint/version.rb
|
189
|
+
- spec/configs/test-config-1.yml
|
190
|
+
- spec/configs/test-config-2.yml
|
191
|
+
- spec/guard/scss_lint_spec.rb
|
192
|
+
- spec/resources/invalid/invalid.scss
|
193
|
+
- spec/resources/valid/valid.scss
|
194
|
+
- spec/spec_helper.rb
|
195
|
+
homepage: https://github.com/chrisrohr/guard-scss_lint
|
196
|
+
licenses:
|
197
|
+
- MIT
|
198
|
+
metadata: {}
|
199
|
+
post_install_message:
|
200
|
+
rdoc_options: []
|
201
|
+
require_paths:
|
202
|
+
- lib
|
203
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
requirements: []
|
214
|
+
rubyforge_project:
|
215
|
+
rubygems_version: 2.4.5
|
216
|
+
signing_key:
|
217
|
+
specification_version: 4
|
218
|
+
summary: Guard plugin for scss_lint
|
219
|
+
test_files:
|
220
|
+
- spec/configs/test-config-1.yml
|
221
|
+
- spec/configs/test-config-2.yml
|
222
|
+
- spec/guard/scss_lint_spec.rb
|
223
|
+
- spec/resources/invalid/invalid.scss
|
224
|
+
- spec/resources/valid/valid.scss
|
225
|
+
- spec/spec_helper.rb
|