Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2113856ybt; Fri, 3 Jul 2020 00:52:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybwntjDvExEtVhQxbEVyebiantrtxhxxzClUnDwJP+ykxsYUcfomFpErYb0aQ0eQGCVnJG X-Received: by 2002:a50:ba8b:: with SMTP id x11mr40339455ede.201.1593762749822; Fri, 03 Jul 2020 00:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593762749; cv=none; d=google.com; s=arc-20160816; b=0v8kqZ65z+S66tmD2mrZWX8pVUUv5Gg1oLjvbW2g1CvfgEhBsK8vdo7O37JmR9B5b1 Mli3Rbrd/bZgI6AUXY5OOZMtAJzN0RBim7Ejp7Ze7N3m3VLcCPQny+aV26q7qO0zQl5l qRBdcxAZNSvALkLdH49g5I7qg/BEbddEo3grQXso61vj4LrMn7SvZw5vmY3+zzZ+nsB7 x5ltpE7baZUl5+IQOJIUeM5XJaXC5a+lH5iuKdFadD1jIspMytNeUK4BpGFwaIQot4ZM ihZ4BmYXTRckK7TQWPKSQQ8FGm1QNcZ4FF2izk86jnRtIubycpSikG5eGpHSfO3+OAj0 5Bew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jPH2st2Pqe2VTT1oPxnRHqMVaOG4iEFkIyKYIfsbc+U=; b=PthWYgb4Sxxa2omJD9cUzF8yw1Cxt5a/aPZSqxhWf2krHJYPc7lqsExU7UKnUXye0e qQZbOiVidQUgxVlq2Q4HgzIrTa+AL555wdSNLsNpwuYKxB/xlH1sHrR4R/oMYkbkR7lW fKE/IHlwoW7e0PkshUcQZ6Dw3AYseuwKK+fU23lmhANQS165eNWMvmW51gvK+WY9LwT7 8jyDBjspOuZdWfRmxVwJsw/MdhR1SxJdj7wsXVTRSOdY7WYom4jQDkD8gwyAlnjWVqGu XXLLRBCVueAHL5J8p+Xl1yKsKIDEnT33ti9w3M65sto554V5+2xj9J/twzMA7VTuXRww imhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NTyBfb6M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb18si7278200ejb.534.2020.07.03.00.52.06; Fri, 03 Jul 2020 00:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NTyBfb6M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726802AbgGCHtw (ORCPT + 99 others); Fri, 3 Jul 2020 03:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgGCHtv (ORCPT ); Fri, 3 Jul 2020 03:49:51 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B117C08C5C1; Fri, 3 Jul 2020 00:49:51 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id e8so1589426ljb.0; Fri, 03 Jul 2020 00:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jPH2st2Pqe2VTT1oPxnRHqMVaOG4iEFkIyKYIfsbc+U=; b=NTyBfb6MC/K5Sd6KyVNZKzEbpAik9J+b6aw3s41DDaJeWEtVid9Gy9Mulpo9CQT/qk WlfNGgGBRtzo6y86l+XsTPfiDRqYrrlJPY6Fn86X41UWfKF/6fhmH1iUikQ3qVctS/8Y Y3qNr2/REEG9OU5BtskvsuhN50jOTU9dsU4xwTth1z6rjwPpTO1QEiRA9tUgfH41FaC2 YBXVDlMFkmochv4W7tg2yOy2YABH2d8Pcv4d6jQrbIVCkNn3u6VgMk3Mb4K+Tf83fHxV bhTeIJqut0rRowIe2OO7ZtRqKsFPZysWZ6lubgc8v86cR0t9DFk3ABf3eBEob8xso9+4 kF/A== 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:from:date :message-id:subject:to:cc; bh=jPH2st2Pqe2VTT1oPxnRHqMVaOG4iEFkIyKYIfsbc+U=; b=mBZdU1vdb9JAF+8AFVd4TK8eeFPw3lrWM+HgPf9IWCX9ZlOERbE40fsEvH5pme3I2z K1ZGlQEaAHR59UxjeOMzfqzwmdUMgsCrLAh4tWJj3gN047GH36aW9N4aDjhEIMts3JCX ZhYPQLta2RxlTpCYGzzeCzse4xf0ny3GdYwBt7Xow+8SMtFPuUhuDY2ykmw57wcc7XSI CULdYAGixQnJWiAZJQU6bDuD/2ljud9EBER8RdebVGc2jD80gHZ4Wj0oO+RgYThscjci B61JPWL9AodO2ZJzjwamP0L37gsXaC/uFfxsVYrgPO/cYvajS4+5FD02XQ2KJGVnKWqh NbjA== X-Gm-Message-State: AOAM530VB7qV3yqB4Ugz8PJpKn75okmYgrg3RwE/Spi33iQhRXT4yfOX c8B0bPHHej9YEcS1zZmdphvSlf/SVfoWpR++Klszmcpn9M4= X-Received: by 2002:a2e:b167:: with SMTP id a7mr9779767ljm.83.1593762589556; Fri, 03 Jul 2020 00:49:49 -0700 (PDT) MIME-Version: 1.0 References: <20200703001212.207565-1-danny@kdrag0n.dev> <16043769.gqpzGLO8mG@pinwheel> In-Reply-To: <16043769.gqpzGLO8mG@pinwheel> From: Miguel Ojeda Date: Fri, 3 Jul 2020 09:49:37 +0200 Message-ID: Subject: Re: [PATCH] editorconfig: Add automatic editor configuration file To: Danny Lin Cc: Andrew Morton , Andy Whitcroft , Joe Perches , Jonathan Corbet , Linux Doc Mailing List , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 3, 2020 at 9:31 AM Danny Lin wrote: > > Most of the other exceptions can be accomodated for with more specific > rules below the base [*] section. I just went through most of the > kernel's files and added rules for the vast majority of the exceptinos > to the 8-column tab indent style, though there are still some that > haven't been covered. Very good! That looks much better. Are there too many file types that use tabs? If not, then I think it is best to add a section for "General tab" files like for the others, in order to be explicit and to have the list around. > It looks like some types of files lack consistent indentation, e.g. > arch/mips/*/Platform and some shell scripts in scripts/ tools/testing/ > selftests/ftrace/test.d/kprobe/*.tc. There are also some files that were > highly inconsistent even within themselves (e.g. drivers/gpu/drm/amd/ > amdkfd/cwsr_trap_handler_gfx*.asm), so setting indentation settings to > something sane by default doesn't make them any worse. After all, no > automated code style tooling is perfect and there will be edge cases > where it breaks down. Yeah, do not worry about inconsistencies. For `.clang-format`, I picked the options based on 1) whether there was an official code style guideline and 2) if not, the one that minimizes the number of changes, i.e. the most popular one across files. Cheers, Miguel