PlasmaFAIR / fortitude

A Fortran linter, written in Rust and installable with Python.
MIT License
4 stars 1 forks source link

`allocate` with `stat` keyword must check `stat` variable #61

Open ZedThree opened 3 hours ago

ZedThree commented 3 hours ago

See: https://github.com/byornski/castep-linter/blob/main/src/castep_linter/tests/allocate_stat_checked.py

LiamPattinson commented 2 hours ago

I proposed a similar thing for open in https://github.com/PlasmaFAIR/fortitude/issues/16, so if we can figure out the logic for one then the other should follow easily.

(And credit where it's due, I raised that issue after hearing about the rule in castep-linter, but forgot it was for checking allocations instead of IO routines)