From patchwork Thu May 30 11:23:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 800191 Delivered-To: patch@linaro.org Received: by 2002:a5d:65c4:0:b0:35b:5a80:51b4 with SMTP id e4csp181200wrw; Thu, 30 May 2024 04:24:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUBxnAR6FbK4FY8awCaXgmzWDorClaFyn2Nvad8Rb1yAok/XbYX8GcAchJvbFggdeQqw8kfkA3MdKutaoOK5gXE X-Google-Smtp-Source: AGHT+IE/CDxvKrloCt5RrtEbhyHYP0w7S4wCfq823y/atyCpgm+oG6Yogw7PK8kJvCY3ntMdMhwx X-Received: by 2002:adf:f60a:0:b0:354:fb27:ba42 with SMTP id ffacd0b85a97d-35dc008383emr1616813f8f.11.1717068260799; Thu, 30 May 2024 04:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717068260; cv=none; d=google.com; s=arc-20160816; b=Q3wVrqfo+RDldSN6SP8Lsrdtg7Oa7g+/OFGbePpv3Qxm2ZcxWGSj734lIQPs1R1Lcg tlkKa6ZqX8dqzFQGeRYOMr+UcOyG42DuLPXSL9P1+bY1B0NwPGw9SwkHKngZ+C3zKqCg VBRJ6swBewFmT/64OTDMzYn4/lsLzzxu5avJPfxm36TWhuppaWnjnOM1hPJaaQtVFb+h B5SaQrUaewGeJLZkYaK7y67SqBYX2imQc9UXna6kSe3w8Apbx54HHwtk8yZddduZ0ZIz aCUjfE8Uz1e+diNutrL2RECLLiEvjua3ovARHdlfFT6G3pu+/x8Qy9L0sMcDMGOFaxn+ jROg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oZxIGZlTq6Y3xT2BvJ15fFream5O9L7a1aAvj3sA9CY=; fh=7ACP6O9wC7GFSApcN3rAjcSzzA5b5waVMeKpDczaxgw=; b=viVe5eoxdCly8DegsmTlZNLpVRr0gdF0guV6My0SjotdsHKdXGNHLW8Z7cA/9vLWSM VH1uzQ8uWqVCSOIHcGITiftsJ2g/d5VzLkt9BLvJpo0KakHCV767+HJHOl7yGCnUdkhV 2TLTkaS85zk+ecUE+9w9I8IAqd+WxucwUKoUKVm8rDs48VZzFKHWz7pnQYy22A2pLt6N kw+qJFz7PM8p2BD2KWbUuOUsCl1PnPa6nwd/HQWyagWPjegWg3KKoCyCOq4YQqxhwbiH e+HhIVaKNrHG/E1rzPZez9Yxj5EMo9nIAp43D5WzxDGYfRdb5yykWLlkwna9A4/CcmuN 2/4Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SUSiDT3x; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ffacd0b85a97d-35dbe10606asi1030100f8f.351.2024.05.30.04.24.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2024 04:24:20 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SUSiDT3x; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCdsl-00055v-N2; Thu, 30 May 2024 07:23:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCdsj-0004yz-RS for qemu-devel@nongnu.org; Thu, 30 May 2024 07:23:41 -0400 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCdse-0002gF-Hd for qemu-devel@nongnu.org; Thu, 30 May 2024 07:23:41 -0400 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-52b7ebb2668so685039e87.2 for ; Thu, 30 May 2024 04:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717068214; x=1717673014; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oZxIGZlTq6Y3xT2BvJ15fFream5O9L7a1aAvj3sA9CY=; b=SUSiDT3xEk0RxK9BzlFio2IMaRyfMsRjc3nx6IKbODfUPkSLq8C7V6oGvZITxJeAMF 0szo29diFUBt1/ivOTrGlTvec0RzEy54ZrG6uaHOLQqQImGDe31W4PMfnS36TvpCT5/i nl3OUsIZe6rU9Ljyd7MAg+7BY4/FTog0SIOjtecnJYZtDXFbHY98bxcTpGKgmXD5Ls7m P8FIsepf0xEmaB+Qf9UfLiF52/iVNsfj/zyB7XII0qzAGe5QQzHFJZI4DcCWOzm4KjRF qalmr1f9EXlutComIr89GtkKIJ838kuFJavSlthT56JKkSiJa1zhifxEjVTKFefmvA+L YzlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717068214; x=1717673014; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oZxIGZlTq6Y3xT2BvJ15fFream5O9L7a1aAvj3sA9CY=; b=twmW6+kX96upb34cmU5VO6GMUfenaQLW3isYkP4H+5OhEuhU5FvOsjlNDLZy7g7RKA by0gxjBxtQ5h1aOwxUXQP7qrhQbANYmWTcKeuPgwgCzTj0VQSDI3Ak19F/QmjGbEUcJ6 Z7cIPm4eVGV4hGUV1AGS6P5jqTyGL1eIlKGUyev7w0J+WdAhcMsuKBh9/BssgIZjrJ4g rIjZsvSob6w2dzAoX2oc2azICQVT3zwOREVVtDKyACVoDs+5PLsN93GQmZwRZT1Axuti s8dE6nhMAykvnBKZ68XWCX74oiu0k4X5p3ICUfLqvj3gp64DMWVyO0gOvSyQYPd+faJ4 WFHQ== X-Gm-Message-State: AOJu0Yw0cIlmKhgcl3IU7TjGQfLAnA+PzrTET+Co/IUHx3pgALw3nXeK rEcWlD6Xz27XXuyQ23QX1eLHdiYPAmK2+5wqZNhtp1cbnasUK/6BKiPOcnJ4ZWI= X-Received: by 2002:a19:8c51:0:b0:51f:9549:9c0d with SMTP id 2adb3069b0e04-52b7d49970cmr1427260e87.48.1717068213909; Thu, 30 May 2024 04:23:33 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc8b980sm808318366b.154.2024.05.30.04.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 04:23:33 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id C287C5F8D5; Thu, 30 May 2024 12:23:32 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: Peter Maydell Cc: qemu-devel@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [Semihosting Tests PATCH v2 1/3] .editorconfig: add code conventions for tooling Date: Thu, 30 May 2024 12:23:30 +0100 Message-Id: <20240530112332.1439238-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240530112332.1439238-1-alex.bennee@linaro.org> References: <20240530112332.1439238-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x130.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org It's a pain when you come back to a code base you haven't touched in a while and realise whatever indent settings you were using having carried over. Add an editorconfig and be done with it. Signed-off-by: Alex Bennée --- v2 - drop mention of custom major modes (not needed here) - include section for assembly --- .editorconfig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c72a55c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +# EditorConfig is a file format and collection of text editor plugins +# for maintaining consistent coding styles between different editors +# and IDEs. Most popular editors support this either natively or via +# plugin. +# +# Check https://editorconfig.org for details. +# + +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[Makefile*] +indent_style = tab +indent_size = 8 +emacs_mode = makefile + +[*.{c,h}] +indent_style = space +indent_size = 4 +emacs_mode = c + +[*.{s,S}] +indent_style = tab +indent_size = 8 +emacs_mode = asm