2 # Copyright (c) 2017-2019, Arm Limited and Contributors. All rights reserved.
4 # SPDX-License-Identifier: BSD-3-Clause
7 # Trusted Firmware-A Coding style spec for editors.
10 # [EC] http://editorconfig.org/
11 # [CONT] contributing.rst
12 # [LCS] Linux Coding Style
13 # (https://www.kernel.org/doc/html/v4.10/process/coding-style.html)
18 # set default to match [LCS] .c/.h settings.
19 # This will also apply to .S, .mk, .sh, Makefile, .dts, etc.
21 # Not specified, but fits current ARM-TF sources.
24 # Not specified, but implicit for "LINUX coding style".
27 # [LCS] Chapter 1: Indentation
28 # "and thus indentations are also 8 characters"
31 # [LCS] Chapter 1: Indentation
32 # "Outside of comments,...spaces are never used for indentation"
35 # Not specified by [LCS], but sensible
36 insert_final_newline = true
38 # [LCS] Chapter 2: Breaking long lines and strings
39 # "The limit on the length of lines is 80 columns"
40 # This is a "soft" requirement for Arm-TF, and should not be the sole
44 # [LCS] Chapter 1: Indentation
45 # "Tabs are 8 characters"
48 # [LCS] Chapter 1: Indentation
49 # "Get a decent editor and don't leave whitespace at the end of lines."
50 # [LCS] Chapter 3.1: Spaces
51 # "Do not leave trailing whitespace at the ends of lines."
52 trim_trailing_whitespace = true
55 # Adjustment for existing .rst files with different format
60 # 180 only selected to prevent changes to existing text.