While I've heard not to dry fire a 22 rimfire revolver, I've always done it when putting away my rifles so they wouldn't be stored in a cocked position. I think I'll add snap caps to them in storage from now on.
I've never heard that you also shouldn't dry fire shotguns. I did the same with them as I did my rifles, doing that final dry fire before storage. I guess I need to add snap caps to my shotguns as well for storage.
If you have bolt action rifles, many of them can be decocked by holding the trigger back as you close the bolt.