Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #133 from alphagov/deprecation-notice
Browse files Browse the repository at this point in the history
Add deprecation notice to repository and CLI
  • Loading branch information
theseanything authored Nov 11, 2019
2 parents fd205d6 + 4f5c4ca commit 8ef29ba
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 4.3.0

* Deprecate govuk-ruby-lint
* Deprecate govuk-scss-lint

# 4.2.0

* Disable the Style/FormatStringToken cop.
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# DEPRECATED

This repository and Gem has been deprecated and is no longer supported.

To lint Ruby and RSpec projects please consider using [rubocop][rubocop] with [rubocop-govuk][rubocop-govuk].

To lint SASS projects please consider using [scss-lint][scss-lint] with [scss-lint-govuk][scss-lint-govuk].

For guidance on upgrading to these tools see the [migrate from govuk-lint][migrate-guide] page in the developer docs.

# GOV.UK Lint

This repo configures various linters to comply with our [style guides][guides].
Expand Down Expand Up @@ -60,4 +70,8 @@ default.
Auto-correction and `--diff` mode are unavailable.

[guides]: https://github.com/alphagov/styleguides
[migrate-guide]: https://docs.publishing.service.gov.uk/manual/migrate-from-govuk-lint.html
[rubocop]: https://github.com/bbatsov/rubocop
[rubocop-govuk]: https://github.com/alphagov/rubocop-govuk
[scss-lint]: https://github.com/sds/scss-lint
[scss-lint-govuk]: https://github.com/alphagov/scss-lint-govuk
1 change: 1 addition & 0 deletions lib/govuk/lint/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Govuk
module Lint
class CLI < RuboCop::CLI
def run(args = ARGV)
warn "[DEPRECATION] `govuk-lint-ruby` is deprecated. Please use `rubocop` with `rubocop-govuk` instead."
config = ConfigFile.new

args += [
Expand Down
1 change: 1 addition & 0 deletions lib/govuk/lint/sass_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ 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"),
Expand Down
2 changes: 1 addition & 1 deletion lib/govuk/lint/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Govuk
module Lint
VERSION = "4.2.0".freeze
VERSION = "4.3.0".freeze
end
end

0 comments on commit 8ef29ba

Please sign in to comment.