Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1spvzR-005aqQ-B1 for pgsql-committers@arkaria.postgresql.org; Sun, 15 Sep 2024 20:37:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1spvzQ-005ntj-Mb for pgsql-committers@arkaria.postgresql.org; Sun, 15 Sep 2024 20:37:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1spvzQ-005ns9-Eg for pgsql-committers@lists.postgresql.org; Sun, 15 Sep 2024 20:37:00 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1spvzN-001MhA-F1 for pgsql-committers@lists.postgresql.org; Sun, 15 Sep 2024 20:36:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=Y5NJw+bqIMBQYwb21GeVlEmESD+0wUl6tm7tOkSkxk8=; b=HoOW0 6+LE4zUV/Bv0fApcKB6Bx/3av4jnbgu2tYgO9z6AHBxwLpnBKrGlKQWrEFQOgF6EJQqg5mzi8rKBx t9TKzghh5j+7RCpVv2vF5Aop+ZZa8j94lw/uJCvsRlax5MH4YaaCY5/WHwpv5ZE9jLAZXY7Gd4qJh q8CsZfmBzgCwgjbaDpefaHEXQ4ynP9FCmN/HovyC4H6pQPcJuZT9sOSxGwHK1/l1uMAS8eX/wve9Z Rx5feADiT4nyfEKOHHnta8VDchHuY7w1g9OP6X+N8iAjngguSvlCrgS+xWAprjXuRHBIRNxrAk0K/ OBs4fQdKCqLKyw3GHP5x8g0yeehfg==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1spvzM-00DOQz-0v; Sun, 15 Sep 2024 16:36:56 -0400 Date: Sun, 15 Sep 2024 16:36:56 -0400 From: Bruce Momjian To: Andrew Dunstan Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Perl scripts: eliminate "Useless interpolation" warnings Message-ID: References: <66b5b1d6-3f2a-4944-91a3-7e40a565ccac@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Sep 15, 2024 at 04:33:49PM -0400, Andrew Dunstan wrote: > I understand perfectly what the warning is about. > > But the project's perlcritic policy is expressed at src/tools/perlcheck/ > perlcriticrc. It's basically severity 5 plus some additions and one exception. > We shouldn't be imposing our personal perlcritic policies on the project. > > The change isn't bad in itself, but there shouldn't be any expectation that we > will keep to this policy, as it's not required by project policy. > > There is a huge mass of perlcritic issues in our perl code at severity 1 (over > 13000 by my count). If we're going to clean them up (which I would oppose) we > should do it in a systematic way. It's hard to see why this one is special. I guess it is special only because my policy is more strict so I wanted my new code to match. Should I revert it? Is the very tiny improvement not worth the churn in the code? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com When a patient asks the doctor, "Am I going to die?", he means "Am I going to die soon?"