PlasmaFAIR/fortitude

Avoid (public) mutable module-scope variables

Ouverte

#681 ouverte le 22 juin 2026

 (0 commentaire) (0 réaction) (0 personne assignée)Rust (33 forks)auto 404
good first issuerule

Métriques du dépôt

Stars
 (207 étoiles)
Métriques de merge PR
 (Merge moyen 9j 9h) (21 PRs mergées en 30 j)

Description

parameters should be okay, but as far as I know everything else should be flagged.

By default, it could flag only public variables, as they could be modified from outside the module, causing a massive headache for testing and debugging. Strict mode could forbid any mutable module variables.

Or perhaps it should be the other way around, flagging any mutable module scope variables by default and allow-private being an option?

For names, I was thinking mutable-module-variable, but I'm not sure if "mutable variable" counts as a redundancy.

Guide contributeur