Closed
Description
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:
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
:

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.