Fortran file extension

I noticed that sometimes GitHub cannot properly identify Fortran files with extension f90 or f95. For instance, GitHub may show that a repo uses 95% of Fortran, but when you click the purple Fortran usage bar only the Fortran files with extension f will show up.

This also makes me wonder what should be the best practice regarding Fortran file extension. I personally prefer the extension f and use a compiler flag to specify the free format, which seems more consistent.

3 Likes

Here is the main issue for this:

@fortran4r and others, if you like it, please upvote it. And if you have time, please help us fix it.

3 Likes