govuk-lint 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73ee5226f4c2a3a682a961afebba4f14a1f12862
4
- data.tar.gz: cc73e584b70482985c0bcc1cb45ced4b288b1e77
3
+ metadata.gz: 25ba5005ed423fceed215a1352eb2466773ca945
4
+ data.tar.gz: 12c4a204245a3b55f9ccab292cda9f1b33ac4fd2
5
5
  SHA512:
6
- metadata.gz: e3d9f70d923caf789d418b2607e5a8234530483df4fa0454eb5fcbc05d40298bc13be5ec7fdd4acc4194e7357a0cef54c056dcb33b471f4cfd763578e6f1aa70
7
- data.tar.gz: 3960d25831e1721979575174bc38979a6e9d9c39487890c9f4cab6e79cec68496585d01e71293286325d61950a4cc1722e19140684fb357ec665a8723dd5139f
6
+ metadata.gz: ab2588d736b6fbe54080d45b4fc587becc89c7e097656063443443e1d61fc8d077e11b2a9ce1863964749ade4a5dd8abedb811a6dcaf4dd07ba1e9ec329e7743
7
+ data.tar.gz: 3f84dd71c4fe7f433f9b579607a4cd1819cefe0c78dcfbea992d7ffbfd9d5d1c96014e5083e1555180d59c3f30601568c33f54d0f30e7d59092572467f1d23f4
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ lib = File.expand_path("../../lib", __FILE__)
4
+ $:.unshift lib unless $:.include?(lib)
5
+
6
+ require 'govuk/lint/sass_cli'
7
+ require 'scss_lint/logger'
8
+
9
+ logger = SCSSLint::Logger.new(STDOUT)
10
+
11
+ cli = Govuk::Lint::SassCLI.new(logger)
12
+ exit cli.run
@@ -0,0 +1,21 @@
1
+ require "govuk/lint"
2
+ require "scss_lint"
3
+ require "scss_lint/cli"
4
+
5
+ module Govuk
6
+ module Lint
7
+ class SassCLI < SCSSLint::CLI
8
+ def run(args = ARGV)
9
+ args += [
10
+ "--config",
11
+ File.join(Govuk::Lint::CONFIG_PATH, "scss_lint/gds-sass-styleguide.yml"),
12
+ "--no-color",
13
+ "--exclude",
14
+ File.join(args.first, "**/vendor/*"),
15
+ ]
16
+
17
+ super(args)
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Lint
3
- VERSION = "0.5.3"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
data/lib/govuk/lint.rb CHANGED
@@ -2,5 +2,6 @@ require "govuk/lint/version"
2
2
 
3
3
  module Govuk
4
4
  module Lint
5
+ CONFIG_PATH = File.expand_path("../../../configs", __FILE__)
5
6
  end
6
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-10 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,16 +80,32 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.35.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: scss_lint
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.44.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.44.0
83
97
  description: Include this in your project to easily validate it against the GDS style
84
98
  guides
85
99
  email:
86
100
  - govuk-dev@digital.cabinet-office.gov.uk
87
101
  executables:
88
102
  - govuk-lint-ruby
103
+ - govuk-lint-sass
89
104
  extensions: []
90
105
  extra_rdoc_files: []
91
106
  files:
92
107
  - bin/govuk-lint-ruby
108
+ - bin/govuk-lint-sass
93
109
  - configs/rubocop/all.yml
94
110
  - configs/rubocop/gds-ruby-styleguide.yml
95
111
  - configs/rubocop/other-lint.yml
@@ -100,6 +116,7 @@ files:
100
116
  - lib/govuk/lint/cli.rb
101
117
  - lib/govuk/lint/config_file.rb
102
118
  - lib/govuk/lint/diff.rb
119
+ - lib/govuk/lint/sass_cli.rb
103
120
  - lib/govuk/lint/version.rb
104
121
  homepage: https://github.com/alphagov/govuk-lint
105
122
  licenses: []