Commit graph

7 commits

Author SHA1 Message Date
thiemowmde
f18861eec8 Fix .editorconfig for tests/parser/ directory
My IDE (PHPStorm) started messing the files in this directory up
because the rule in .editorconfig doesn't match. The tests directory
is directly in the root where the .editorconfig file also lives.
There is no directory before `tests/` that would satisfy the `**/`
pattern.

Bug: T278066
Change-Id: Ie6d9c71f169a259475e3f3eae2674d6994e2f264
2024-02-27 17:35:16 +01:00
BrandonXLF
69cd7d01ad
Set .editorconfig to not trim lines in parser tests
Text files that contain parser tests are intended to have whitespace
at the end of some lines to properly test parser output, so this
whitespace should not be trimmed by .editorconfig.

Bug: T278066
Change-Id: I9b4b690e55aaa40e99f335922d131efd053cdd1f
2023-04-30 01:06:11 -04:00
Timo Tijhof
d7a8361ea1 build: Exclude .git/** in .editorconfig
* Without this, editors like Sublime or Atom when using an EditorConfig
  plugin, they will change e.g. two spaces in a commit message (such
  as the second line in a bullet list item) to a tab upon saving
  the commit message.

Change-Id: Ie0c5e1fcfe7853a737c1ccf1880052660f4171e2
2022-06-22 01:53:33 +01:00
Timo Tijhof
fc7e0717ab build: Fix .editorconfig to allow spaces in markdown files
When working on patch Ib90c74de1a153b6a01c3 I found that when using
Atom or Sublime with editorconfig enabled, a line break after
`* foo\n  bar` in a markdown file would often produce a tab instead
of two spaces for the third line.

Change-Id: I0ace4e675a20020a362ac3f29f8c1d8f61a99e1c
2021-04-29 23:56:23 +01:00
David Barratt
9dccdf2edf
Set .editorconfig to use spaces instead of tabs on YAML files
YAML files may be invalid if the indentation is done with tabs.
To prevent this from happening, configure developer's IDE's to
use spaces on these types of files.

Bug: T253594
Change-Id: I0c49c2b476a49508ea1036c1bd71e7de83dbf8b0
2020-05-25 17:56:59 -04:00
Mark A. Hershberger
1ee16d0021 Set tab width to 4
See https://www.mediawiki.org/wiki/Manual:Coding_conventions#Tab_size

This is a follow-up on I8e776665dca255ff5dead1a9874bcd73344e4d20

Bug: T172959
Change-Id: Ifc7ef5e3a095db505bbbff4c09c87213ae7259aa
2020-03-23 13:44:37 +00:00
David Barratt
e7e4e705c3 Add a simple .editorconfig
.editorconfig <http://editorconfig.org/> is a standardized format
that many IDEs support (or have plugins for) to use a project's code
style by default.

Bug: T172959
Change-Id: I8e776665dca255ff5dead1a9874bcd73344e4d20
2017-08-21 18:00:49 +00:00