From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B489AA32A4 for ; Fri, 25 Oct 2019 16:04:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D853D1C1F4; Fri, 25 Oct 2019 16:04:18 +0200 (CEST) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by dpdk.org (Postfix) with ESMTP id ADD421C1ED for ; Fri, 25 Oct 2019 16:04:17 +0200 (CEST) Received: by mail-wr1-f45.google.com with SMTP id t16so2508686wrr.1 for ; Fri, 25 Oct 2019 07:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Gz1HK+IkNIQAB1ulW6YxpeQ6Ud1pAdrnrATLkCgZ/Ac=; b=TIvRsw2YnNZ8sMnGPZYZWM8f0ASQC6mk/vN5bAIgy95X9oaz0WvTJEpQYARlrfsnQk wRr04balLleXnTurDxf/iC4kPxNZU/2s6g+4luqVxsKt5BnuZFYS+UKDmFp6D2gxvEYP AYurysBgHQeBrWyJRxU94+H11psDgmNCWceUgUH6Ru9i/xxhUmrHET9FGVDW+e2iCrkP /h5iDnfV1cgpRI9r4oPCi/wDc313K4i+w8PbgXeNctGQuSNSCLSwp8SRHyCrNagcw/LH pJHwb8vpfRX6xzywbwHurP59pDlPKO6nQTtzwpw+BxKeJx6fS6wMDIUsudyYUYkYJH1V lOxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Gz1HK+IkNIQAB1ulW6YxpeQ6Ud1pAdrnrATLkCgZ/Ac=; b=BVqXKEbD/Xh9hPAgu365T8RBi38WBP5TQnJK7g16WZrZwW+MVxVHrs3RD8L3r6oBAu SG5WrLS2x3QZRzNvkSxkjTo3jG8C5l2ayX8Dd2+DuZSOknNPa9i6rpItZboMshs+KxOv Y4K7wWhUe0HHVeSzTTkJ8g3/rccVNB0LydfMcWy3CK/QIx6uxU4/rXV+0VYUf+aRjCyd +EgkZFrr6UXq6U2X+fBLmUcOsotLTssHUSgEsq4UK/vNxl3HZaD3siGK64Ay6hyOwOKm XqmX46cyi9LZfatFeTwLppH89r5B/B1zQ6KZ5A9yL9/yzcp9z1EMqua8Dp9Cfz6bnXKa d71g== X-Gm-Message-State: APjAAAXR/2weAunpwaOzvm4PsXmKIX4HU9HYIOKQV4YlrOAhcuNA0whZ 2en7X19XrbeasSXODZ0DcJlZjg== X-Google-Smtp-Source: APXvYqySld2KkHn1sMg2vqzSg8KlCOJo6RV6KKJKtwkRgj6e5t49UoQ4oKqpt84sdu1siLYTFGImXw== X-Received: by 2002:adf:eed2:: with SMTP id a18mr3442958wrp.273.1572012257313; Fri, 25 Oct 2019 07:04:17 -0700 (PDT) Received: from tom.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id g69sm2231403wme.31.2019.10.25.07.04.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 07:04:16 -0700 (PDT) From: Robin Jarry To: Thomas Monjalon Cc: dev@dpdk.org, Stephen Hemminger , Anatoly Burakov , Keith Wiles , Ray Kinsella , Andrew Rybchenko Date: Fri, 25 Oct 2019 16:04:10 +0200 Message-Id: <20191025140410.1302-1-robin.jarry@6wind.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018075954.29715-1-robin.jarry@6wind.com> References: <20191018075954.29715-1-robin.jarry@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] devtools: add EditorConfig file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs. Initialize the file following the coding rules in doc/guides/contributing/coding_style.rst, doc/guides/contributing/documentation.rst and doc/guides/contributing/patches.rst. In order for this file to be taken into account (unless they use an editor with built-in EditorConfig support), developers will have to install a plugin. Note: The max_line_length property is only supported by a limited number of EditorConfig plugins. It will be ignored if unsupported. Add this new file in MAINTAINERS in the "Developers and Maintainers Tools" section. Link: https://editorconfig.org/ Link: https://github.com/editorconfig/editorconfig-emacs Link: https://github.com/editorconfig/editorconfig-vim Link: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#max_line_length Cc: Thomas Monjalon Cc: Stephen Hemminger Cc: Anatoly Burakov Cc: Keith Wiles Cc: Ray Kinsella Cc: Andrew Rybchenko Signed-off-by: Robin Jarry --- Changelog: v2: - Add link to editorconfig.org in file for syntax reference. - Use [*.EXT] syntax for section headers (as shown on home page). - Add trim_trailing_whitespace option. .editorconfig | 25 +++++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 26 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..d70582557497 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2019 6WIND S.A. +# See https://editorconfig.org/ for syntax reference. + +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 +indent_style = tab +tab_width = 8 +max_line_length = 80 + +[*.py] +indent_style = space +indent_size = 4 + +[*.rst] +indent_style = space +indent_size = 3 + +[COMMIT_EDITMSG] +max_line_length = 72 diff --git a/MAINTAINERS b/MAINTAINERS index f8a56e2e2615..16b4eb18cafa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -82,6 +82,7 @@ F: doc/ Developers and Maintainers Tools M: Thomas Monjalon +F: .editorconfig F: MAINTAINERS F: devtools/check-dup-includes.sh F: devtools/check-maintainers.sh -- 2.23.0