Comment by rany_
> Hezbollah fighters clearly aren’t doing this
What do you mean? I am not in any way supporting Hezbollah but their soldiers are definitely "wearing uniforms and carrying their weapons openly." Hamas and Hezbollah are not the same. Hamas is more decentralized though so that doesn't happen as often in that case. Hezbollah soldiers are also salaried and more properly equipped by Iran/Syria.
The biggest difference between Hezbollah and Hamas is that in Hezbollah's case, their soldiers are more motivated by money rather than ideology. They treat it more like a "professional" job, work for promotions, and dress accordingly. It's a significantly more top-down structure too.
What's the country of Hezbollah? There's clearly not one. It's Lebanon. Hezbollah is a group inside a State not a State.
There are a bunch of very good reasons why groups doing that are outside the law.