Skip to content

Code Style: Newline at end of file #5823

Description

@jtagscherer

At the moment, there is a new line at the end of each source file. However, the .editorconfig file specifies that there should be no new lines at the end of files:

insert_final_newline = false

Editors that respect this file will remove any final linebreak upon saving a file. For example, that is the case when using Atom. Due to this behaviour, the linter will stumble over any such file without a new line:

error Newline required at end of file but not found eol-last

This is only a minor issue but can get annoying really quickly. We should decide whether files should have a new line at the end, and then adjust either the linter rules or the editor configuration file accordingly.

Given that all existing files do have a final linebreak, I assume that the .editorconfig file is what we should update. Is that correct?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions