Skip to content

[BUG]: Unable to pass Fortran linter #4755

Closed
@rreusser

Description

@rreusser

Description

I am unable to get Fortran files to pass the linter. It complains "No final newline expected" whether or not there is a final newline. I have been locally removing insert_final_newline from Fortran editorconfig to get things to pass, but this only gets is passing locally and not on CI. See:

https://github.com/rreusser/stdlib/blob/f257760db466ba38810e4fbb9fde4826e21f64ee/.editorconfig#L85-L89

Related Issues

No.

Questions

No.

Demo

No response

Reproduction

Run the linter on a project file:


$ make lint-editorconfig-files FILES="lib/node_modules/@stdlib/blas/base/dscal/src/dscal.f"
Linting files for basic formatting errors...
lib/node_modules/@stdlib/blas/base/dscal/src/dscal.f:
	No final newline expected

1 errors found
make: *** [lint-editorconfig-files] Error 1

A screenshot of cat lib/node_modules/@stdlib/blas/base/dscal/src/dscal.f:

Image

The issue persists whether or not I add a newline. Maybe it's one of those Windows crlf things?

Expected Results

I expect the linter to pass since the file has no trailing newline.

Actual Results

Linter fails due to expecting no final newline.

Version

current develop

Environments

N/A

Browser Version

N/A

Node.js / npm Version

node@22.11.0 / editorconfig-checker@3.1.2

Platform

Mac OS 15.2

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.ToolsIssue or pull request related to project tooling.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions