Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id F1986781A7F for ; Tue, 23 Jul 2019 19:30:10 +0000 (UTC) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id ABB719E042C; Tue, 23 Jul 2019 19:30:08 +0000 (UTC) Received: from ncopa-desktop.copa.dup.pw (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id B8D2F9E0046; Tue, 23 Jul 2019 19:30:07 +0000 (UTC) Date: Tue, 23 Jul 2019 21:29:59 +0200 From: Natanael Copa To: Olliver Schinagl Cc: alpine-devel@lists.alpinelinux.org Subject: Re: Alpine Linux aports codestyle Message-ID: <20190723212959.316ab849@ncopa-desktop.copa.dup.pw> In-Reply-To: <1c2e99a3-4995-296d-b6e1-6fbad8261ab8@schinagl.nl> References: <1c2e99a3-4995-296d-b6e1-6fbad8261ab8@schinagl.nl> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 23 Jul 2019 08:28:11 +0200 Olliver Schinagl wrote: > Hey list, > > over the past year or so, I've started to contribute to Alpine Linux's > aports, and have met various codestyles. To get to the bottom of what is > 'the' Alpine Linux codestyle, I came up empty handed, there is no > CODESTYLE.md, no search query that finds anything nor on the wiki. > > Now of course, the document could be hiding out of plain site, and if > that is the case, other then saying 'make it findable', I appologize for > even bringing anything up here. > As I was about to do a version bump to community/mtd-utils, I noticed > a lot of activity on the package, a great thing!. Sadly I came to the > realization, that in the 'default' aports workflow, the > maintainers/contributers do not get CC-ed on changes. As I'm mostly > only familiar with Linux, U-Boot and busybox development, I missed > the 'get_maintainers' step, where people involved in abuild's would > be kept in the loop. This can and be improved. > Never the less, what triggered for me to address the mailing list > however was commit 57d39405ad74 ("community/mtd-utils: adhere to > aports code style"). As the subject already states, 'adhere to aports > code style' is mentioned, but as mentioned earlier, I cannot seem to > find this aforementioned code style. It should be obvious then of > course, that when asking people to adhere to a coding style, this > style needed to be documented (and more importantantly rationalized). > It shouldn't needed to be mentioned, by having a guide (that can be > checked with linters/checkers) makes life easier, for both developers > and reviewers (passes automated code checks, no need to argue about > style anymore). > > So in short, where is the style guide that everybody keeps talking > about :) Its still unwritten, sorry. I guess its based on what is common for the majority of the APKBUILDs. It is ofcourse not realistic that everyone read all of the thousands of APKBUILDs to get how things are normally done, so yeah, this should be fixed. I created an issue: https://gitlab.alpinelinux.org/alpine/aports/issues/10689 > > Thank you, > > Olliver