From patchwork Sun Oct 20 16:49:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 21711 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id CE53FC3306 for ; Sun, 20 Oct 2024 16:49:52 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 74F5B65392; Sun, 20 Oct 2024 18:49:52 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=collabora.com header.i=robert.mader@collabora.com header.b="a2O89V3T"; dkim-atps=neutral Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5B02E6538B for ; Sun, 20 Oct 2024 18:49:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1729442988; cv=none; d=zohomail.com; s=zohoarc; b=W1LO5B7qDBFnQIQqUXzf6u9AhNsMkJoorCY6QpwQXZRQfwAfUkBbAeJcHpTVyDLLG2EPsi8rRoPa0DZdSG5Q9yqfo0Uzp19NWwjrR25Na5ZShrzT+CLPmMdEFexbQT1XrofJHYqIDl8bVaaVsjmOamNuJgMy5VE0R1TgFsQtfl4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729442988; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=nZVIdBidLDbx7sjV/ZeCvn6pxb1L8RKjFIZXm7ZdWJc=; b=SgbJ6o0H9Go1PX4F8hx2r6FNhjqgrxw/+rRCZQiajstdXWr/d3RykXZhMBzwnCZz95KlQxQt4PQLEBLSF9B5tYXye2zrO3I343SIryt12EtXRoSLSK/deuSbcrt1Gi3Akq/I/+ltthgHVDDzSfOc40sokjbjsa5Wq/dELrLEfTg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=robert.mader@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1729442988; s=zohomail; d=collabora.com; i=robert.mader@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=nZVIdBidLDbx7sjV/ZeCvn6pxb1L8RKjFIZXm7ZdWJc=; b=a2O89V3TfDGcaCIa+3m6PIHL3La8KTA527bew7zfEiZo+wati9ubbW2Y4Dr3jdun KUe7wUgV8IDLjQ3c/T83ojuYYawqay1Tt9wIoFc28819idnyb/QyDxG8b7QAZVsPpNP 8evOnuCR26A6aLSq3E4OGW6BUoAYe9WcKHtv4nRQ= Received: by mx.zohomail.com with SMTPS id 1729442986620144.72450156166678; Sun, 20 Oct 2024 09:49:46 -0700 (PDT) From: Robert Mader To: libcamera-devel@lists.libcamera.org Cc: Robert Mader , Kieran Bingham Subject: [PATCH v3] Add .editorconfig file Date: Sun, 20 Oct 2024 18:49:26 +0200 Message-ID: <20241020164926.255457-1-robert.mader@collabora.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" To make contributing to libcamera more fun, see https://editorconfig.org/ Signed-off-by: Robert Mader Acked-by: Kieran Bingham --- Changes in version 3: - changed indent_size for meson files to 4 - dropped meson.options from v2 again - added sections for .json and .yaml - dropped section for .xml - collected Acked-by Changes in version 2: - require insert_final_newline for all files, including the file added here - add python config - add more meson file types --- .editorconfig | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..a76b36a7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: CC0-1.0 + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{cpp,h}] +indent_size = 8 +indent_style = tab + +[*.json] +indent_size = 4 +indent_style = space + +[*.py] +indent_size = 4 +indent_style = space + +[*.yaml] +indent_size = 2 +indent_style = space + +[{meson.build,meson_options.txt}] +indent_size = 4 +indent_style = space