My experience with WD40 is that it ends up promoting rust when used to wipe down tools. It was developed as a water repellent, not a lubricant.
It's fine to say WD-40 promotes corrosion if that's your experience. But this runs counter to several tests I've seen including this one from
Brownells.
The second sentence is a repetition of unfactual internet folklore. WD -40 may have been designed as a water dispersant, it may be marketed as such, but it is chiefly kerosene, more or less like others of it's grade and is as effective a lubricant as any other.
For those too lazy to read the report, Brownells found WD-40 to be an effective rust inhibitor.
Personally, I find simple household materials most convenient for my tools. For long term storage I use vasoline. For general lubrication and wipe down and cleaning (of automotive nuts, bolts, tools) I use mineral oil from the local drug store. When a spray is needed, typically reach for WD-40, which I buy in gallon jugs and dispense in a plant sprayer.
I do believe WD 40 dries and gets slightly gummy. Mineral oil does not. All oils attract dust, which is proven to promote corrosion, especially wood dust.
My recomendation is to keep tools clean, and stored in a clean environment. Deeply scratched or dinged chrome will permit tool steels to rust, so caring for your tools chrome finish is helpful. Careful usage and storage are the best approach. Mineral oil on unchromed or worn areas is a good preventative step.