Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCVXn-000641-AK for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Aug 2021 23:15:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mCVXl-0000Uy-Fo for pgsql-hackers@arkaria.postgresql.org; Sat, 07 Aug 2021 23:15:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCVXl-0000Uq-8K for pgsql-hackers@lists.postgresql.org; Sat, 07 Aug 2021 23:15:53 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCVXi-00038K-S5 for pgsql-hackers@lists.postgresql.org; Sat, 07 Aug 2021 23:15:52 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 6382F3200907 for ; Sat, 7 Aug 2021 19:15:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 07 Aug 2021 19:15:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= 1MrkHa4F56nRSVrp50YrUN1U1tVebol9XFnnBdyxDxM=; b=oly4ZFzSX845HcCQ +SZgoyejPZesVE11wsm7hzGkggk+P/6pEym3r2P7Sqo1JA8ICPRpwb0M9WTGPlxf 4asHO8Rw6+XUYEWkE6GvtmgEt4qfWWV6Zn+DWvh6TMDpyccNtQamx+pDVE6kdaDx H6j00KfHfP9PalB/+8hjO8pX9NKTafPhXt1/j7qqILNpGo0sGCwy+PrstWrBAg1p wvtbrmAMUCjnG7AIui1jPK9GLbv9q3pKNfLPZflcPfLWj/sudol9HRJoNJrcXzWZ WdihkGfD4kR2L33pyEu3IGQoiPK1tijpJQue52LmDwbwvT2Bx0fW1jSrnJ0l4Ta6 cvNQVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=1MrkHa4F56nRSVrp50YrUN1U1tVebol9XFnnBdyxD xM=; b=MS8XOI1JuYyoVIPxL6a2NVsZcGVoU3Dfi8kdMgyVtYXtCAp1SYF7ffdyT 7qnXAQyueUQZw7l/GLXVhmI4FWITAqjhg9q1FU5FRYdEX/AVDtH1onh6G9pi61Kb RdgAm1Bxge/x5AgMfgFkGldj3cTRsC8qSsu0EEdZy0o3digrXOQhXTFcc3GAnNVW KMa6/2pTLbEnhSz0PyWJhHfKxyM+mVHEh+keJ60FXBkpEZdjdRJ4qXzs0D/JVv+5 dWDTx6Eqplx8fUFQDE4tInWhWcEQA3ivjKdCIciY61hRp88HL6/Ye24J7zB2fgx1 YsVx47en9bLNKCBqngBXZ6rVFfGWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeeggdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtgfesthekre dttderjeenucfhrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrghculdffrghgfhhi nhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhdmnecuggftrfgrthhtvghrnheptdfgud efieefkefhudfhleeihefhleetfeejleefveehieevhfffhfevjeeijeejnecuffhomhgr ihhnpehmvghtrggtphgrnhdrohhrghdpphhoshhtghhrvghsqhhlrdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgrrhhisehi lhhmrghrihdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 7 Aug 2021 19:15:48 -0400 (EDT) From: ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) To: pgsql-hackers@lists.postgresql.org Subject: Re: perlcritic: prohibit map and grep in void conext References: <87fsvzhhc4.fsf@wibble.ilmari.org> Date: Sun, 08 Aug 2021 00:15:47 +0100 In-Reply-To: <87fsvzhhc4.fsf@wibble.ilmari.org> ("Dagfinn Ilmari \=\?utf-8\?Q\?Manns\=C3\=A5ker\=22's\?\= message of "Tue, 27 Jul 2021 17:06:19 +0100") Message-ID: <87o8a8g82k.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ilmari@ilmari.org (Dagfinn Ilmari Mannsåker) writes: > Hi hackers, > > In the patches for improving the MSVC build process, I noticed a use of > `map` in void context. This is considered bad form, and has a > perlcritic policy forbidding it: > https://metacpan.org/pod/Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap. > > Attached is a patch that increases severity of that and the > corresponding `grep` policy to 5 to enable it in our perlcritic policy, > and fixes the one use that had already snuck in. Added to the 2021-09 commitfest: https://commitfest.postgresql.org/34/3278/ - ilmari