Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dbus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 253
    • Issues 253
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 31
    • Merge requests 31
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • dbus
  • dbus
  • Merge requests
  • !310

.editorconfig: Automatically configure multiple text editors

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Simon McVittie requested to merge smcv/dbus:editorconfig into master May 18, 2022
  • Overview 2
  • Commits 1
  • Pipelines 4
  • Changes 1

See editorconfig.org for details of the format. This is a first attempt at describing our coding style in editorconfig syntax; please add new file types here as they become relevant.


Inspired by !308 (merged). editorconfig is less powerful than clang-format, but also more universal: basically all programmer-oriented text editors have a concept of toggling settings for indent size and whether to indent with hard tabs or spaces, even if they cannot understand the finer points of GNU-style brace positioning.

This should make it a lot less necessary to add vim modelines and Emacs local variables to source files as we have historically done: vim and emacs both have editorconfig plugins available.

We don't have a Meson build system yet, but the one proposed in !303 (merged) is 4-space-indented (matching most of the Python and CMake scripts), and I think that's a good style to use, so I've included editorconfig for that too.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: editorconfig