Sha256: c2db7baf6af1bc2bd23d2e173bafeed6f04cc4925ef1edc947b591f29712c1d5
Contents?: true
Size: 365 Bytes
Versions: 3
Compression:
Stored size: 365 Bytes
Contents
require "govuk/lint" require "govuk/lint/diff" require "govuk/lint/config_file" require "rubocop" module Govuk module Lint class CLI < RuboCop::CLI def run(args = ARGV) args += ["--config", ConfigFile.new.config_file_path] Diff.enable!(args) if args.include? "--diff" super(args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
govuk-lint-0.5.0 | lib/govuk/lint/cli.rb |
govuk-lint-0.4.1 | lib/govuk/lint/cli.rb |
govuk-lint-0.4.0 | lib/govuk/lint/cli.rb |