Skip to content

CRLF makes --check report a change while there is nothing to modify #123

@etiennebacher

Description

@etiennebacher

I have two files:

  1. no_crlf.R, created on Linux:
if (TRUE) {
}
> file no_crlf.R
no_crlf.R: ASCII text
  1. with_crlf.R, created on Windows and then opened on Linux:
if (TRUE) {
}
> file with_crlf.R
with_crlf.R: ASCII text, with CRLF line terminators

Both files have identical contents and are already formatted, but (I guess that) the CRLF line terminators make --check report some changes to make:

> air format no_crlf.R && air format no_crlf.R --check
> air format with_crlf.R && air format with_crlf.R --check
Would reformat: <path>/with_crlf.R

Tested with air 0.1.1.

Thanks again for this amazing tool

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions