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 1jOSQE-0006nG-Mb for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Apr 2020 20:44:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jOSQD-0003TH-DF for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Apr 2020 20:44:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOSQD-0003T9-5p for pgsql-hackers@lists.postgresql.org; Tue, 14 Apr 2020 20:44:41 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jOSQA-0001Zi-6W for pgsql-hackers@postgresql.org; Tue, 14 Apr 2020 20:44:40 +0000 Received: by mail-qt1-x843.google.com with SMTP id o10so11463105qtr.6 for ; Tue, 14 Apr 2020 13:44:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=rjUpRq7E6iCrFAR7qKGPvO9OFh2xBJvKhqh5b/tDFhE=; b=X0KuyZnAlUhiiCdtITsugBLK1DsPjMd60Anxr59oWuS2xh4TfG0rIrMed20aFUHQPj z0S8Zxr9XMtcX/pfYLtRnL6H0DueUUh0wGLua8qXzAPRuQHlT1COvWAVjNnf/u2gEJ+b uXdzGJ/IXqOe60BfRPCtevsp24YJnjCG9gBybiQ7O8Cp6LxZkYh76Nk2pcMEQHj3B9Hb bEsUGvYy92Bkk3IiQDbAoQnGhosZ7q7RcyPLobiWHrBpyHAkVMVAsGv6/D0NwvSqLniz evFO39XGld3wLFJI11bw40fk9fKuY0id4CUuHS6a/n+b49o3bvPY3jFsIJdXQV1lful8 KIuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=rjUpRq7E6iCrFAR7qKGPvO9OFh2xBJvKhqh5b/tDFhE=; b=YPrYqHnFSP3fjKpWm3+TFjerY33w+JL2gAHXTgSiAb6GFgY/6o7/V+KdFKqnXvHat/ B48ZUhX1edzs/ApoVvmzJty7xSnJj8IFdJjOPMZSm+3V8Gs+nmnIW2fdPWFyjzq+pZlH 1W2lMQJK7dVVwYGQteTTOJibXJNFx4I7K/Db0QAiI1ADO2uhsuTtXej1lJDVB+srf8gB COxwZxjkG8kjP4O67BteHA1fjZTiEqT01dtNZhj17h+1tHv/6B5n5pM6xacsIOnsMyK/ 2XoTovVdFEi/jzeM6v4EVbPRzNnX4lxsSB/6a5HLj7FVU2rHM1Gof5JGGmHSfCSZDvUM Xo0Q== X-Gm-Message-State: AGi0PuaD6q/zsfeYt0CKhYA56mZYQQSRdSGWGZ4qOqAx2HPKsRiu8iIh 764dMFU8hFMLxzlqXhdNLb01BA== X-Google-Smtp-Source: APiQypLFPajFQv7Vfk0PnC+cZTCCN+7Rh+6uGr2/rfkVy1Ll/7fyjf32psQONmcjO84EzKSBi82UGA== X-Received: by 2002:ac8:35e2:: with SMTP id l31mr18235926qtb.104.1586897075358; Tue, 14 Apr 2020 13:44:35 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id i13sm11714051qtj.37.2020.04.14.13.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 13:44:34 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 74A85300945; Tue, 14 Apr 2020 16:44:32 -0400 (-04) Date: Tue, 14 Apr 2020 16:44:32 -0400 From: Alvaro Herrera To: Andrew Dunstan Cc: Noah Misch , PostgreSQL-development Subject: Re: cleaning perl code Message-ID: <20200414204432.GA22922@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Apr-14, Andrew Dunstan wrote: > One of the things that's a bit sad is that perlcritic doesn't generally > let you apply policies to a given set of files or files matching some > pattern. It would be nice, for instance, to be able to apply some > additional standards to strategic library files like PostgresNode.pm, > TestLib.pm and Catalog.pm. There are good reasons as suggested upthread > to apply higher standards to library files than to, say, a TAP test > script. The only easy way I can see to do that would be to have two > different perlcriticrc files and adjust pgperlcritic to make two runs. > If people think that's worth it I'll put a little work into it. If not, > I'll just leave things here. I think being more strict about it in strategic files (I'd say that's Catalog.pm plus src/test/perl/*.pm) might be a good idea. Maybe give it a try and see what comes up. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services