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
12root = true
13
14################################
15# Default settings for all files
16[*]
17charset = uft-8
18end_of_line = lf
19indent_size = 4
20tab_width = 4
21indent_style = space
22trim_trailing_whitespace = true
23insert_final_newline = true
24
25################################
26# Assembler
27[*.{S,s}]
28indent_size = 8
29tab_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}]
53