The full module should follow the indentation standard described here: https://github.com/rapid7/metasploit-framework/wiki/Indentation-Standards

The important thing is: "Using two-space soft tabs" which translates as "one indent level == two-space soft tab" :)