Sha256: 5ae90a40c06fc9299f1eb7dac6ecf1ec7034d250a89a963e6533d04e6226fead

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

require "govuk/lint"
require "scss_lint"
require "scss_lint/cli"

module Govuk
  module Lint
    class SassCLI < SCSSLint::CLI
      def run(args = ARGV)
        warn "[DEPRECATION] `govuk-scss-lint` is deprecated.  Please use `scss-lint` with `scss-lint-govuk` instead."
        args += [
                  "--config",
                  File.join(Govuk::Lint::CONFIG_PATH, "scss_lint/gds-sass-styleguide.yml"),
                  "--no-color",
                  "--exclude",
                  File.join(args.first, "**/vendor/*"),
                ]

        super(args)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
govuk-lint-4.3.0 lib/govuk/lint/sass_cli.rb