Commit graph

6 commits

Author SHA1 Message Date
Pekka Paalanen
11be42e8ea editorconfig: follow wayland-protocols XML style
It's unlikely that protocols/wayland.xml sees much change anymore, but
files in doc/ might. To make writing documentation easier, stick to an
unsurprising indentation style that is already in use in
wayland-protocols and for the XSL files.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
2026-01-22 11:08:28 +02:00
Pekka Paalanen
5b59b34a27 editorconfig: indent .xsl with 2 spaces
The XSL files are mostly indented with 2 spaces. Using the default
editorconfig rules in VSCode constantly tries to mix in tabs. Add the
2-space rule for .xsl files to fix this.

The .xsl files, like .xml files, use a tab character in place of 8
spaces. This complicates things, and the new rule will prefer just
spaces. To keep the existing sometimes-tab-indented code looking right,
the tab width must be explicitly set to 8.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
2025-12-29 11:15:10 +02:00
Peter Hutterer
94c036d72b editorconfig: add settings for the .gitlab-ci.yml file
Different indentation and we don't want a fixed line length here, wrapping yaml
is prone to introduce bugs.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2020-06-05 08:22:34 +10:00
Peter Hutterer
df969706f4 Replace initial 8 spaces with a tab for all xml files
This is the style used in wayland.xml which is the only file we really
care about for git blame information. So let's adjust all others to that
style for consistency and fix editorconfig to avoid messing this up in
the future.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-04-29 12:21:33 +00:00
Simon Ser
cd9b3ef0cd Update .editorconfig for Python
This uses the idiomatic Python indentation rules.

Signed-off-by: Simon Ser <contact@emersion.fr>
2019-09-06 12:09:22 +00:00
Drew DeVault
790dd9da16 Add .editorconfig
This is copied from Weston
2019-08-05 08:43:45 +00:00