From 16a4a4693478cb11fa154a90f431e999ff9279a8 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 29 Mar 2021 12:09:38 -0700 Subject: [PATCH] lint: Suppress Ruby warnings from puppet on Ubuntu 20.04. puppet | /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete puppet | /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete puppet | /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete puppet | /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1875848 https://tickets.puppetlabs.com/browse/PUP-10247 See also commit 3971824d041850413fca3a3960a20b391cba9b3e (#14571). Signed-off-by: Anders Kaseorg --- tools/lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint b/tools/lint index 09b4613671..f9353cd1d2 100755 --- a/tools/lint +++ b/tools/lint @@ -67,7 +67,7 @@ def run() -> None: ) linter_config.external_linter( "puppet", - ["puppet", "parser", "validate"], + ["env", "RUBYOPT=-W0", "puppet", "parser", "validate"], ["pp"], description="Runs the puppet parser validator, checking for syntax errors.", )