From 983bbbd7cd7ad6ab59e4ff0ab67d7fa737706f1b Mon Sep 17 00:00:00 2001 From: ahonn Date: Fri, 14 Apr 2023 15:25:32 +0800 Subject: [PATCH 1/2] chore: add .editorconfig --- .editorconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..ec6e107d547 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 4 + +[*.md] +# double whitespace at end of line +# denotes a line break in Markdown +trim_trailing_whitespace = false + +[*.yml] +indent_size = 2 From d89f27543e4fcefedadb5050f65b679400d4e215 Mon Sep 17 00:00:00 2001 From: ahonn Date: Fri, 14 Apr 2023 15:49:33 +0800 Subject: [PATCH 2/2] chore: add ASF header --- .editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.editorconfig b/.editorconfig index ec6e107d547..64b242b86a0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + # EditorConfig helps developers define and maintain consistent # coding styles between different editors and IDEs # editorconfig.org