diff --git a/.dir-locals.el b/.dir-locals.el deleted file mode 100644 index 2a2af98371b45..0000000000000 --- a/.dir-locals.el +++ /dev/null @@ -1,23 +0,0 @@ -;;; 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. - -((cmake-mode . ((indent-tabs-mode . nil))) - (powershell-mode . ((indent-tabs-mode . nil))) - (sh-mode . ((indent-tabs-mode . nil) - (sh-indentation . 2) - (sh-basic-offset . 2))) - (vala-mode . ((indent-tabs-mode . nil)))) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000000..999f94bae009b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,88 @@ +# 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. + +# This is an EditorConfig file: https://editorconfig.org/ + +# This is the top-most config for this project +root = true + +# General settings + +[*] +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 +spelling_language = en + +# Language-specific settings, in approximate alphabetical order + +[*.{c,cc,cpp,h,hh,hpp}] +indent_size = 2 +indent_style = space + +[*.cmake] +indent_size = 2 +indent_style = space + +[CMakeLists.txt] +indent_size = 2 +indent_style = space + +[*.cs] +indent_size = 4 +indent_style = space + +[*.{fbs,proto,thrift}] +indent_size = 2 +indent_style = space + +[*.go] +indent_size = 8 +indent_style = tab +tab_width = 8 + +[*.{js,ts}] +indent_size = 4 +indent_style = space + +[*.{py,pyx,pxd,pxi}] +indent_size = 4 +indent_style = space + +[*.r] +indent_size = 2 +indent_style = space + +[*.rb] +indent_size = 2 +indent_style = space + +[*.rst] +indent_size = 3 +indent_style = space + +[*.sh] +indent_size = 2 +indent_style = space + +[*.vala] +indent_size = 4 +indent_style = space + +[*.{yml,yaml}] +indent_size = 2 +indent_style = space diff --git a/.github/.dir-locals.el b/.github/.dir-locals.el deleted file mode 100644 index a880e4a6bb697..0000000000000 --- a/.github/.dir-locals.el +++ /dev/null @@ -1,19 +0,0 @@ -;;; 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. - -((js-mode . ((indent-tabs-mode . nil) - (js-indent-level . 2)))) diff --git a/matlab/.editorconfig b/matlab/.editorconfig new file mode 100644 index 0000000000000..f549a4bf17a70 --- /dev/null +++ b/matlab/.editorconfig @@ -0,0 +1,24 @@ +# 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. + +# This is an EditorConfig file: https://editorconfig.org/ + +# See ../.editorconfig for inherited values + +[*.m] +indent_size = 4 +indent_style = space diff --git a/swift/.editorconfig b/swift/.editorconfig new file mode 100644 index 0000000000000..ffaf7e240243c --- /dev/null +++ b/swift/.editorconfig @@ -0,0 +1,28 @@ +# 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. + +# This is an EditorConfig file: https://editorconfig.org/ + +# See ../.editorconfig for inherited values + +[*.{c,cc,cpp,h,hh,hpp}] +indent_size = 4 +indent_style = space + +[*.swift] +indent_size = 4 +indent_style = space