That protects me (the software developer/maintainer) to some degree, but does nothing to protect the users of the software I am maintaining.
With local development environment it is a bit different, because unless you are running build/test etc. in a container/vm/sandbox, then attacker has access to all of your files, especially web browser data.