Skip to content

Commit

Permalink
Squish warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Evanczuk committed Oct 28, 2022
1 parent 1bf89ed commit 7dc7e07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/packwerk/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def execute_command(args)
when "detect-stale-violations"
output_result(parse_run(args).detect_stale_violations)
when "update-deprecations"
warning = <<~WARNING
warning = <<~WARNING.squish
DEPRECATION WARNING: `update-deprecations` is deprecated in favor of
`update-todo` or just `update`
`update-todo`.
WARNING

warn(warning)
Expand Down
2 changes: 1 addition & 1 deletion lib/packwerk/offense_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def package_todo_for(package)
sig { params(package: Packwerk::Package).returns(String) }
def package_todo_file_for(package)
if Pathname.new(@root_path).join(package.name, "deprecated_references.yml").exist?
warning = <<~WARNING
warning = <<~WARNING.squish
DEPRECATION WARNING: `deprecated_references.yml` files have been renamed to
`package_todo.yml`. Please see https://github.com/Shopify/packwerk/releases
for help renaming these.
Expand Down

0 comments on commit 7dc7e07

Please sign in to comment.