Kevin Peng | 8e9b1bb | 2023-10-07 14:49:26 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | # References: |
| 8 | # |
| 9 | # EditorConfig rules https://editorconfig.org/ |
| 10 | # TF-M coding rules https://tf-m-user-guide.trustedfirmware.org/contributing/coding_guide.html |
| 11 | |
| 12 | root = true |
| 13 | |
| 14 | ################################ |
| 15 | # Default settings for all files |
| 16 | [*] |
Anton Komlev | 3b6ec36 | 2024-07-03 10:23:53 +0100 | [diff] [blame] | 17 | charset = utf-8 |
Kevin Peng | 8e9b1bb | 2023-10-07 14:49:26 +0800 | [diff] [blame] | 18 | end_of_line = lf |
| 19 | indent_size = 4 |
| 20 | tab_width = 4 |
| 21 | indent_style = space |
| 22 | trim_trailing_whitespace = true |
| 23 | insert_final_newline = true |
| 24 | |
| 25 | ################################ |
| 26 | # Assembler |
| 27 | [*.{S,s}] |
| 28 | indent_size = 8 |
| 29 | tab_width = 8 |
| 30 | |
| 31 | # The file categories below are left empty intentionally |
| 32 | # for potential customisation in future |
| 33 | |
| 34 | ################################ |
| 35 | # C and C++ |
| 36 | [*.{c,h,cpp,hpp}] |
| 37 | |
| 38 | ################################ |
| 39 | # Python code |
| 40 | [*.py] |
| 41 | |
| 42 | ################################ |
| 43 | #CMake specific settings |
| 44 | [{CMakeLists.txt,*.cmake}] |
| 45 | |
| 46 | ################################ |
| 47 | #Documentation |
| 48 | [*.{rst,md}] |
| 49 | |
| 50 | ################################ |
| 51 | # json,yaml and xml files |
| 52 | [{*.json,*.yaml,*.xml}] |