make codesniffer ignore Spyc library
extract validate_role() helper method
fix undefined variable warnings in user.php
ignore undefined variable warnings in post.php
fix undefined variable warnings in wp-settings-cli.php
ignore undefined variable warnings in Runner.php