Skip to content

Add lint rule to require new line at end of file #1870

Closed
@mtrezza

Description

@mtrezza

New Feature / Enhancement Checklist

Current Limitation

Currently, lint rules not require an empty new line at the end of a file.

  • This requirement should be consistent across repos, we currently require it in the the Parse Android SDK.

  • There is a good argument for adding the rule:

    Trailing newlines in non-empty files are a common UNIX idiom. Benefits of trailing newlines include the ability to concatenate or append to files as well as output files to the terminal without interfering with shell prompts.

Feature / Enhancement Description

Add lint rule eol-last.

Example Use Case

n/a

Alternatives / Workarounds

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:ciCI related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions