Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate using Fortitude: Fortran linter #189

Open
danielhollas opened this issue Nov 26, 2024 · 1 comment
Open

Investigate using Fortitude: Fortran linter #189

danielhollas opened this issue Nov 26, 2024 · 1 comment
Labels
testing Any changes to Github Actions or testing scripts.
Milestone

Comments

@danielhollas
Copy link
Contributor

danielhollas commented Nov 26, 2024

Fortitude is a (very) new Fortran linter inspired by the Python linter Ruff (and actually using some of its code!).

https://fortran-lang.discourse.group/t/fortitude-a-fortran-linter/8834

It's still very early but just quickly playing with it already proved useful.

Ultimately it would be nice to have it run automatically in CI, once they improve the configuration a bit (for example we need to ignore some of the files)

@danielhollas danielhollas added the testing Any changes to Github Actions or testing scripts. label Nov 26, 2024
@danielhollas
Copy link
Contributor Author

danielhollas commented Nov 26, 2024

Whoops 😅

fortitude: 43 files scanned.
Number of errors: 1286

EDIT: Things are not that bad, most of the errors come from a single file

❯ fortitude check src/fftw3.F90 | tail
fortitude: 1 files scanned.
Number of errors: 861

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Any changes to Github Actions or testing scripts.
Projects
None yet
Development

No branches or pull requests

1 participant