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 1jvDbG-0002EP-Ko for pljava-dev@arkaria.postgresql.org; Tue, 14 Jul 2020 05:35:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jvDbE-0004RB-Sm for pljava-dev@arkaria.postgresql.org; Tue, 14 Jul 2020 05:35:28 +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 1jvDbE-0004R2-N0 for pljava-dev@lists.postgresql.org; Tue, 14 Jul 2020 05:35:28 +0000 Received: from mail-lf1-f41.google.com ([209.85.167.41]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jvDbC-00044X-21 for pljava-dev@lists.postgresql.org; Tue, 14 Jul 2020 05:35:28 +0000 Received: by mail-lf1-f41.google.com with SMTP id k15so10625628lfc.4 for ; Mon, 13 Jul 2020 22:35:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=SYAP/KX3FIDU4NSGEhZS6Bueybdti56bfAa7mFPFrqo=; b=sCntXA1wHZDEnHj88t95mwMq4UCfYab/q2rMEu7UXCp8KXgeUldcp/LLPE2R/jJOC8 PMYFfoAQedAB2oYh/tcnEtyvefaETNFlh7hcURlGTUHl+N/9IaKOP+ba6Dn2EFsHmdU3 Juguwcu55M3E7LoEI+zvED5YZOzLyA2iKfhAfyfu3u9ywQ+XL+2YWY75MxsMp/y/392H 9oRPSIB8tYT7uxL/hzka1+4ErR4W5H1roqi+YmiT3WsBb8nTqWCBqwW7643yObs7i7Dz NlGr5d1NflhF7/EWOjVAOlOgYkGtwWL/mGenXyrt5HhH0WC/7M1kNdVSf7zDJzBgD7uv Gj9A== X-Gm-Message-State: AOAM533zzfKL/8Vs4AP6Svyr7vNz8JHCJpicDgtqcH5+SfXCIgmrUrGA 2ojK5/9N6p1o9S01NfzSZp5FNobaIoh0/64p6RpOL75GWzU= X-Google-Smtp-Source: ABdhPJxSa+NswnhYpQkERAWpY9hJDFBZ8vnQ1jRtoAJXjC750CrBSUWxA8MRZeymKMXdQ4XIIhWnhJSIXCRHjwgUZGs= X-Received: by 2002:a19:c194:: with SMTP id r142mr1270103lff.87.1594704925505; Mon, 13 Jul 2020 22:35:25 -0700 (PDT) MIME-Version: 1.0 References: <5F0D3FCB.6040604@anastigmatix.net> In-Reply-To: <5F0D3FCB.6040604@anastigmatix.net> Reply-To: thomas@tada.se From: Thomas Hallgren Date: Tue, 14 Jul 2020 07:35:14 +0200 Message-ID: Subject: Re: I propose to commit a .editorconfig file for PL/Java To: Chapman Flack Cc: "pljava-dev@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000009b3d0705aa602c17" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000009b3d0705aa602c17 Content-Type: text/plain; charset="UTF-8" I think this sounds like a very good idea. Best, Thomas On Tue, 14 Jul 2020 at 07:17, Chapman Flack wrote: > Peter Eisentraut added a .editorconfig in the root of PostgreSQL's > source repository, just last December. [1] > > While it can simplify the process for new contributors getting the > right editor settings for the project's formatting conventions, one > immediate benefit should be that GitHub will display our sources > with the intended indentation on the web. > > I propose to start with the same rules as in the file he committed, but > without the exception for sgml and xml. (We don't have any sgml files, > and the xml files we have are indented the same as other types.) > > Regards, > -Chap > > > [1] > > https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=ecb09cd;hp=2032645 > > > --0000000000009b3d0705aa602c17 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think this sounds like a very good idea.

Best,
Thomas

On Tue, 14 Jul 2020 at 07:17, Chapman Flack <chap@anastigmatix.net> wrote:
Peter Eisentraut added a .editorconfig = in the root of PostgreSQL's
source repository, just last December. [1]

While it can simplify the process for new contributors getting the
right editor settings for the project's formatting conventions, one
immediate benefit should be that GitHub will display our sources
with the intended indentation on the web.

I propose to start with the same rules as in the file he committed, but
without the exception for sgml and xml. (We don't have any sgml files,<= br> and the xml files we have are indented the same as other types.)

Regards,
-Chap


[1]
https:/= /git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommitdiff;h=3Decb09cd;h= p=3D2032645


--0000000000009b3d0705aa602c17--