diff options
| author | Richard Earnshaw <rearnsha@arm.com> | 2025-10-28 15:06:51 +0000 |
|---|---|---|
| committer | Richard Earnshaw <rearnsha@arm.com> | 2025-10-28 15:06:51 +0000 |
| commit | 162ec539a39c0b24eea3e17863499aa3f89d6a64 (patch) | |
| tree | 3e4d00ac196256092467edb35ddefc1818a5f101 /contrib/gcc-changelog/git_commit.py | |
| parent | b6146faae09bbc936d280abb215c30d699b0c1d1 (diff) | |
| download | gcc-162ec539a39c0b24eea3e17863499aa3f89d6a64.zip gcc-162ec539a39c0b24eea3e17863499aa3f89d6a64.tar.gz gcc-162ec539a39c0b24eea3e17863499aa3f89d6a64.tar.bz2 | |
editorconfig: Add explicit tab_width when indent_size != 8
The documentation for editorconfig files says that setting indent_size
changes the default value of tab_width; but the documentation is a
little ambiguous as to what happens if the two values are set via
different match rules. I'd generally expect in this case that the
defaulting behavior would only kick in if there were no setting of
tab_width at all, but it seems that the go implementation (or at least
the way forgejo uses the go implementation) does not do this.
However, it is fairly easy to make this all explicit by explicitly
setting tab_width whenever we have an indent_size that is not 8. I've
deliberately omitted overriding this when the indent style is set to
space, since this should make the presence of a hard tab show up in
the forge UI more clearly as incorrect indentation.
/ChangeLog:
* .editorconfig: Explicitly set tab_width whenever a
config rule has indent_style = tab and indent_size != 8.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions
