NASA-AMMOS / NASA-AMMOS/MMGIS

[Quality of Life]: Standardize on LF

Open
#954 0 comments 0 reactions 1 assignee View on GitHub

@tariqksoliman is already working on this.

Since May 7, 2026.

quality of life
Dominant language
JavaScript
Stars
232
Forks
77
Avg merge
3d 6h
Merged PRs (30d)
17

Description

From Devin:

CRLF coverage by extension (CRLF / total of that extension):

  • .js: 129 / 453 (~28%)
  • .css: 25 / 81 (~31%)
  • .py: 17 / 39 (~44%)
  • .txt: 9 / 17 (~53%)
  • .pug: 5 / 6 (~83%)
  • .md: 5 / 167 (~3%)
  • .yml: 2 / 11 (~18%)
  • .php: 2 / 2 (100%)
  • Dockerfile, .dockerignore, .eslintignore, .gitignore, .env, .csh, .json — single CRLF files in each.

.gitattributes

Current .gitattributes only enforces LF for one file:

Ensure shell scripts always use LF line endings

_docker-entrypoint.sh text eol=lf
There is no global * text=auto eol=lf rule, which is the reason 201 pre-existing CRLF files are still tracked as CRLF.

Bottom line

201 of 2,721 tracked files (~7.4%) have CRLF terminators on development (HEAD 0977d17e).
The mix is heavily JS (129), CSS (25), and Python (17), plus most of the bundled src/external/* jQuery/Leaflet/three.js vendor scripts and a handful of dotfiles (Dockerfile, .gitignore, .dockerignore, .eslintignore, sample.env).
One file — views/login.pug — has mixed CRLF and LF line terminators.
.gitattributes does not yet enforce LF globally.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.