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 82F9FA318B for ; Fri, 18 Oct 2019 10:00:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 294031C033; Fri, 18 Oct 2019 10:00:03 +0200 (CEST) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 9CC931BF84 for ; Fri, 18 Oct 2019 10:00:01 +0200 (CEST) Received: by mail-wr1-f68.google.com with SMTP id o15so4708093wru.5 for ; Fri, 18 Oct 2019 01:00:01 -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:mime-version :content-transfer-encoding; bh=Y0olaYK322RaRmcDHNl89GLcwcuqXzN4RBlo3Bt8Jsc=; b=GUETvWm/7WMBDgKGhrH4PgL7p0apWFJSYAUSlsSSbFROQyA5l2AHnGfPfCb5EjK38j lcJ3gDGpesD+6qMVg5B98grOczRz2iZ2WAjLillNaYJjhDSJnuvBl8IN82oHRseug6/e z7e+fONCDZhGE5C6cjHJunOhCFEK1Qfc+BdZ79IzQHPPa2ahgXQO+WTB6LBEeKF97FVf X6NbjlEU4qo+qCT6iZLGSNrcwhvSNR8XKu9PL7+r6IOrIHxDQCdx1rvdI8S/TGQl1pYR 1YvteYCAIhtZgYLXQSk3GTkG/Zwx1qUg5Q5g2EXIb1nyERR/wti9aZMlZ2ujkdbnYiW9 SG3g== 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:mime-version :content-transfer-encoding; bh=Y0olaYK322RaRmcDHNl89GLcwcuqXzN4RBlo3Bt8Jsc=; b=TQNJkpNxMnhgFOFArmjhMovLCs9Znf2nYT/nZH+Ilo8tPR6LLrJIRyljPHedZbJdUi 9HMIuCy0CedrqeRMQ91ahTsUqghw31lEtmL3JdNBUbKqfXiguVWaHzWrnXWMBC51BAom UtchmtzLsaYDqhnJGoqLfFsF808AsuS53mBYplen+0V6wPlECSZdC6QJSowigTcLYwX3 a0BgXznRiRIYevm7q/qcWiYWW/fa2pZbT0L8tew+lH9q6ZASXmqT/Tr1leUONDwhI6Mw UKOWTdIYJOGHdQ0WSnZs7lG4a+L5GzqMGsa0GL/hffgYc7Gc4UHupJHQ8L7MWD0l37eK XmIg== X-Gm-Message-State: APjAAAXOKwIhjbK91fIwf/vHL+MJoFjwrv1JwzZYht5qWNbgKLXUtZC5 sYSOf6wF738tTiaTxMx0g+/7qYw1JWA= X-Google-Smtp-Source: APXvYqxDCUdFNno6KUSoDNTapQhl8rIl0EkL4MuUrmJNcOQX5Dr1XJFUGOkL3ccbcbHKt02HJYdktA== X-Received: by 2002:a5d:638b:: with SMTP id p11mr6167723wru.372.1571385601247; Fri, 18 Oct 2019 01:00:01 -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 b12sm4537942wrt.21.2019.10.18.01.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 01:00:00 -0700 (PDT) From: Robin Jarry To: Thomas Monjalon Cc: dev@dpdk.org Date: Fri, 18 Oct 2019 09:59:54 +0200 Message-Id: <20191018075954.29715-1-robin.jarry@6wind.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] tools: 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 Signed-off-by: Robin Jarry --- .editorconfig | 23 +++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 24 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..c5704d89b8c6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2019 6WIND S.A. + +root = true + +[*] +end_of_line = lf +insert_final_newline = 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