From patchwork Sun Oct 20 13:33:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 21705 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 4A994C3306 for ; Sun, 20 Oct 2024 13:33:32 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 162686538C; Sun, 20 Oct 2024 15:33:31 +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="IdqCl01x"; 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 A06B565379 for ; Sun, 20 Oct 2024 15:33:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1729431205; cv=none; d=zohomail.com; s=zohoarc; b=iqM+yOpvPmwz2vsqkq0wP+35XKio7e69y5jgsKuOwPpSZhrhUNNcdtTkZz0c6Ftd0jA+ttHqpsZuxNE2wmEeJ2Z0lNMx8C4WJc9HCT4O3o7IobqmbAXRNtQURMAEdE+ktPxeMf7hy7qZmgdEp/iZwVwSKMSWZqZ2BRNzMFSPDz0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729431205; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=XONJZtwE7vXWbpicA4mJzxs3x8b1nYlp0RxqSAG+gls=; b=Z8uQT2b4T1w0MwqypNJEa0KdcFCJc3pfeLWCu479ziRFgARMDbJHONynNsoXusl4lmYhJf1OElsBO8Yi5MXSfqXpbWFZ6oqHy2bFt+KG8MO2AeVTKSr7+3axhTFScY3cqQRLVetbNOW4s8QyJUuojVoZcxXmQPEP/IPPMw5PU94= 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=1729431205; 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=XONJZtwE7vXWbpicA4mJzxs3x8b1nYlp0RxqSAG+gls=; b=IdqCl01xit1SSCsX6MrmJcHsWP4pQEOrxUvPv4bGGTyi/P6vxynaUgUPWGsR1612 cFArPpyPDy3aKMpls44wj2imHJvOU0dCuZaL7YZTY+tZWLhb0vmnigElPc1legWAUbr qjxNGHYbBa8mHU9trIHbYOLrfM83pem8rSpmqHIw= Received: by mx.zohomail.com with SMTPS id 1729431204566689.7348530481421; Sun, 20 Oct 2024 06:33:24 -0700 (PDT) From: Robert Mader To: libcamera-devel@lists.libcamera.org Cc: Robert Mader Subject: [PATCH v2] Add .editorconfig file Date: Sun, 20 Oct 2024 15:33:07 +0200 Message-ID: <20241020133307.180885-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 --- 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..9d60c29f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# 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 + +[*.py] +indent_size = 4 +indent_style = space + +[*.xml] +indent_size = 2 +indent_style = space + +[{meson.build,meson.options,meson_options.txt}] +indent_size = 2 +indent_style = space